Skip to main content
POST
Estimate a generation's cost

Path Parameters

id
string
required

Model ID (UUID) or name

Body

application/json

Estimate request

input_image_height
integer

Height in pixels of the input image

Required range: 1 <= x <= 65535
input_image_width
integer

Width in pixels of the input image; with input_image_height, prices an image model billed by output size exactly

Required range: 1 <= x <= 65535
input_video_seconds
number

Length of the longest input video; prices a video edit, which runs at that length

Required range: x >= 0
num_generations
integer
default:1
Required range: 1 <= x <= 100
params
object

The model's request parameters, per its json_request_schema

Response

Cost estimate

estimate
object
model
string