Skip to main content
POST
cURL
Estimate the cost of a video animation (image-to-video) job before submitting it.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept
enum<string>
default:application/json
required
Available options:
application/json

Body

application/json

Image to video price calculation parameters

width
integer
required

Width of the generated video in pixels

Example:

512

height
integer
required

Height of the generated video in pixels

Example:

512

steps
integer
required

Number of inference steps. The accepted range is model-specific - read info.limits.min_steps / info.limits.max_steps for your model from the Model Selection endpoint before sending the request; a value outside that range is rejected with 422. For the example model Ltxv_13B_0_9_8_Distilled_FP8 the only accepted value is 1.

Required range: x >= 1
Example:

1

frames
integer
required

Number of video frames to generate. The accepted range is model-specific - read info.limits.min_frames / info.limits.max_frames for your model from the Model Selection endpoint before sending the request; a value outside that range is rejected with 422. For the example model Ltxv_13B_0_9_8_Distilled_FP8 the allowed range is 30-120 (default 120).

Required range: x >= 1
Example:

120

fps
integer
required

FPS of generated video. The accepted range is model-specific - read info.limits.min_fps / info.limits.max_fps for your model from the Model Selection endpoint before sending the request; a value outside that range is rejected with 422. For the example model Ltxv_13B_0_9_8_Distilled_FP8 the only accepted value is 30.

Required range: x >= 1
Example:

30

model
string
required

The model to use for video generation. Available models can be retrieved via the GET /api/v2/models endpoint.

Example:

"Ltxv_13B_0_9_8_Distilled_FP8"

Response

Calculated price for img2video inference.

data
object