Video modelsAPI referenceGet a video quote

Get a video quote

Get the credits required and the rate version for a model, mode, references, resolution and duration. Quoting does not create a job or reserve credits. When generating, pass the returned quote_id and rate_version as quote_id and quote_version; get a new quote whenever the request or its references change.

Authentication

API Key: X-API-Key: <API Key> or Authorization: Bearer <API Key>.

Credentials in the examples are placeholders. Replace them and run the examples on your server.

Code examples

curl -X POST 'https://shixux.com/api/v1/video/quote' \  -H 'X-API-Key: yb_xxx_yyy' \  -H 'Content-Type: application/json' \  -d '{"operation":"generate","request":{"model":"seedance-2.5-flash","mode":"t2va","prompt":"A lighthouse by the sea, a slow camera move.","duration":5,"ratio":"16:9","resolution":"720p","seed":42,"references":[]}}'
{  "model": "example",  "resolution": "example",  "billable_seconds": 1,  "credits_per_second": 1,  "credits": 1,  "rate_version": 1}

Request Body

application/json
  1. body
estimated_reference_seconds?number

Optional estimate of reference media length for an early cost estimate. A quote using this field has no quote_id and cannot be used to submit a generation.

Range0 <= value <= 30
operation*"generate"
Value in"generate"
request*

Response Body

Quote

application/json
  1. response
estimated_tokens?integer

Estimated total billable tokens for a token-priced model.

credits_per_million_tokens?number

Token rate that applies to this request, in credits per million tokens.

model*string

Model ID. For image and video models, use the corresponding settings endpoint for current availability, resolutions and rates. Speech synthesis and audio composition accept indextts-2 (default) or indextts-2.5.

resolution*string

Video resolution. minmax-h3-flash and minmax-h3-pro accept 768p or 2k (2k output is automatically enhanced). For other models, use the resolutions returned by GET /v1/video/config.

billable_seconds*number
credits_per_second*number
credits*number
rate_version*integer

Rate version. For image generation, send billing.version from the settings endpoint. If the rate has changed, the submission is rejected; read the settings or quote again.

quote_id?string

Quote ID returned by POST /v1/video/quote, bound to the model, media, duration and other parameters of the quoted request. Get a new quote whenever the request changes.

input_video_seconds?number
output_credits?number
input_video_credits?number

On this page