Skip to main content
POST
/
api
/
v1
/
client
/
img2video
/
price-calculation
cURL
curl --request POST \
  --url https://api.deapi.ai/api/v1/client/img2video/price-calculation \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "width": 512,
  "height": 512,
  "steps": 20,
  "frames": 20,
  "model": "Ltxv_13B_0_9_8_Distilled_FP8",
  "fps": 30
}
'
{
  "data": {
    "price": 0.15
  }
}

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

Example:

20

frames
integer
required

Number of video frames to generate

Example:

20

model
string
required

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

Example:

"Ltxv_13B_0_9_8_Distilled_FP8"

fps
integer

FPS of generated video

Example:

30

Response

Calculated price for img2video inference.

data
object