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
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}application/json- body
estimated_reference_seconds?numberOptional 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.
0 <= value <= 30operation*"generate""generate"request*Quote
application/json- response
estimated_tokens?integerEstimated total billable tokens for a token-priced model.
credits_per_million_tokens?numberToken rate that applies to this request, in credits per million tokens.
model*stringModel 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*stringVideo 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*numbercredits_per_second*numbercredits*numberrate_version*integerRate 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?stringQuote 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?numberoutput_credits?numberinput_video_credits?number