/v1/modelsno key neededList models
Models, resolutions, duration limits and current prices in credits and USD per second.
Response 200
object- object
data- object[]
Status codes
- 200The model list.
Documentation
Send a prompt, get a job id, collect an MP4. Everything here is plain HTTPS and JSON, so any language with an HTTP client works. The base URL is https://api.llms.sale.
Create a key in the dashboard, export it as VIDEO_API_KEY, and run one of these. New accounts start with 500 trial credits once the email is verified, which covers one short clip on the cheaper tiers.
curl https://api.llms.sale/v1/videos \
-H "Authorization: Bearer $VIDEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.5",
"resolution": "720p",
"duration_seconds": 8,
"aspect_ratio": "16:9",
"prompt": "Aerial shot over forested ridgelines at sunrise, fog filling the valley",
"webhook_url": "https://example.com/hooks/video"
}'The create call answers 202 straight away with the job. Generation takes from under a minute to a few minutes depending on the tier and length.
{
"id": "vid_01JEQ4M8Z2T7K9XN3B5VHD6RCW",
"object": "video.job",
"status": "queued",
"model": "seedance-2.5",
"resolution": "720p",
"duration_seconds": 8,
"credits_held": 1520,
"credits_charged": 0,
"result": null,
"error": null
}Send your key as a Bearer token on every request: Authorization: Bearer sk_live_…. Keys are shown once when you create them and stored only as a keyed hash, so a lost key cannot be recovered: revoke it and create another. Call the API from a server. A key shipped in a browser or mobile app can be copied by anyone.
GET /v1/models is public. Every other endpoint needs a key and answers 401 invalid_api_key without one.
Prices are per second of generated video, in credits. 1,000 credits are always $1.00. This table is read from the live price book, the same one GET /v1/models and the quote endpoint use.
| Model id | Resolution | Credits / s | USD / s | Notes |
|---|---|---|---|---|
seedance-2.5 | 480p | 88 | $0.088 | Native resolution |
seedance-2.5 | 720p | 190 | $0.19 | Native resolution |
seedance-2.5 | 1080p | 460 | $0.46 | Native resolution |
seedance-2.5-flash | 480p | 65 | $0.065 | Native resolution |
seedance-2.5-flash | 720p | 140 | $0.140 | Native resolution |
seedance-2.5-upscaled-1080p | 1080p | 150 | $0.15 | Generated at 480p, AI-upscaled. Not native. |
If you leave out resolution, native models default to 720p and the upscaled model is always 1080p. Price changes are announced at least 7 days ahead and never apply to jobs already created.
POST /v1/videos takes a JSON body. Only model, duration_seconds and prompt are required.
| Field | Type | Description |
|---|---|---|
model | string | One of the model ids above. |
resolution | string | 480p, 720p or 1080p, where the model offers it. |
duration_seconds | integer | 4 to 30. You are billed for exactly this many seconds. |
aspect_ratio | string | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9. Default 16:9. |
audio | boolean | Generate sound with the video. Default true. Same price either way. |
prompt | string | What to generate, up to 4,000 characters. |
image_url | string | Optional first frame. See image inputs. |
reference_image_urls | string[] | Optional, up to 8 reference images. |
consent_attested | boolean | Must be true when any image is sent. |
webhook_url | string | Optional https URL to notify when the job settles. |
idempotency_key | string | Optional. Makes a retry return the first job instead of creating a second. |
Unknown fields are rejected with 422 validation_error rather than ignored, so a typo in a field name never turns into a silently different video. Reference video input is not available yet.
Poll GET /v1/videos/{id} every few seconds, or use a webhook and skip polling. The job moves through these states. progress is a coarse percentage tied to the state, not a frame count.
| Status | Progress | Meaning |
|---|---|---|
queued | 0 | Accepted. The price is held. |
moderating | 5 | The prompt and any input images are being checked. |
submitted | 15 | Sent to a supplier. |
running | 45 | The supplier is generating. |
upscaling | 75 | Upscaled tier only: the 480p result is being enlarged to 1080p. |
mirroring | 92 | The file is being copied to our storage. |
succeeded | 100 | Done. The hold became a charge and result.url is set. |
failed | 100 | Did not finish. The hold was released: cost 0. See error. |
canceled | 100 | You canceled it. The hold was released: cost 0. |
{
"id": "vid_01JEQ4M8Z2T7K9XN3B5VHD6RCW",
"object": "video.job",
"status": "succeeded",
"progress": 100,
"model": "seedance-2.5",
"resolution": "720p",
"duration_seconds": 8,
"aspect_ratio": "16:9",
"audio": true,
"credits_held": 0,
"credits_charged": 1520,
"cost_usd": 1.52,
"result": {
"url": "https://media.llms.cheap/v/…/vid_01JEQ4M8….mp4?X-Amz-Signature=…",
"expires_at": "2026-12-05T09:41:07.000Z",
"width": 1280,
"height": 720,
"duration_seconds": 8,
"has_audio": true
},
"error": null,
"created_at": "2026-12-04T09:39:52.000Z",
"completed_at": "2026-12-04T09:41:07.000Z"
}result.url is a signed link that works for 24 hours. Reading the job again returns a fresh link for as long as the file exists. Files are deleted 7 days after the job completes, after which result.url is null and result.expired is true. Download what you want to keep.
To stop a job that has not finished, call POST /v1/videos/{id}/cancel. The hold is released and the job costs nothing.
Pass webhook_url with a request, or set a default endpoint in the dashboard. When the job settles we POST a video.succeeded or video.failed event to it. The URL must be public https.
{
"id": "evt_01JEQ4QH3N8V5R2M7XKD9T6BCY",
"type": "video.succeeded",
"created_at": "2026-12-04T09:41:07.000Z",
"data": {
"id": "vid_01JEQ4M8Z2T7K9XN3B5VHD6RCW",
"status": "succeeded",
"credits_charged": 1520,
"result": { "url": "https://…", "width": 1280, "height": 720 }
}
}Each delivery carries an X-Signature header of the form t=timestamp,v1=signature, where the signature is HMAC-SHA256 of {timestamp}.{raw body} using your signing secret from the dashboard. Verify it against the raw bytes before parsing, and reject timestamps older than five minutes.
import { createHmac, timingSafeEqual } from "node:crypto";
// rawBody must be the exact bytes we sent, before any JSON parsing.
export function verify(rawBody: string, header: string, secret: string, toleranceSeconds = 300) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const timestamp = Number(parts.t);
if (!timestamp || Math.abs(Date.now() / 1000 - timestamp) > toleranceSeconds) return false;
const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest("hex");
const a = Buffer.from(expected);
const b = Buffer.from(String(parts.v1));
return a.length === b.length && timingSafeEqual(a, b);
}id and the X-Webhook-Id header stay the same across retries: use one of them to deduplicate.Start from a first frame with image_url, guide the look with up to 8 reference_image_urls, or both. Each must be a public https link to a JPEG, PNG or WebP of at most 10 MB. We fetch the image ourselves, so links that need cookies or sit on a private network will fail.
Any request with images must include "consent_attested": true. By sending it you confirm that every real person shown has agreed to this use. Without it the request is refused with 422 consent_required.
curl https://api.llms.sale/v1/videos \
-H "Authorization: Bearer $VIDEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.5",
"resolution": "1080p",
"duration_seconds": 6,
"prompt": "The camera pushes in as she turns toward the window",
"image_url": "https://example.com/first-frame.jpg",
"reference_image_urls": ["https://example.com/character-sheet.png"],
"consent_attested": true,
"idempotency_key": "order-8841-shot-3"
}'seedance-2.5-upscaled-1080p is a cheaper way to get a 1080p file. It generates with Seedance 2.5 at 480p and enlarges the result to 1080p with an AI upscaler. It is not native 1080p. Fine detail, small text and faces at a distance will be softer than the native tier. It suits social feeds, ad variants and previews. For a hero shot, use seedance-2.5 at 1080p.
Every response for this model carries "upscaled_from": "480p", so the label travels with the file through your own pipeline.
{
"id": "vid_01JEQ5A1C8P4M2YH7T9KZ3WQXD",
"status": "succeeded",
"model": "seedance-2.5-upscaled-1080p",
"resolution": "1080p",
"upscaled_from": "480p",
"duration_seconds": 10,
"credits_charged": 1500,
"cost_usd": 1.5,
"result": { "width": 1920, "height": 1080, "url": "https://…" }
}POST /v1/videos/quote prices a request without creating it. The price is always credits per second times duration_seconds.
curl https://api.llms.sale/v1/videos/quote \
-H "Authorization: Bearer $VIDEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "seedance-2.5", "resolution": "1080p", "duration_seconds": 10 }'402 insufficient_credits and nothing is held.GET /v1/balance returns spendable credits and the credits currently held. Buy credits in the dashboard; packs and rates are on the pricing page.
Networks fail in the middle of requests. Send an idempotency_key in the body, or an Idempotency-Key header, with every create call. If the same key arrives again with the same body, you get the original job back with an Idempotent-Replayed: true header and no second hold. The same key with a different body is refused with 409 idempotency_conflict. Keys are scoped to your account.
Errors use ordinary HTTP status codes and one JSON shape. Branch on error.code; the message is written for people and may change.
{
"error": {
"code": "insufficient_credits",
"type": "billing_error",
"message": "This request costs 4600 credits ($4.60) and the balance is 1250 credits. Add credits and try again.",
"details": { "required_credits": 4600, "balance_credits": 1250 }
}
}| HTTP | Code | What it means |
|---|---|---|
| 400 | validation_error | The request body is not valid JSON. |
| 401 | invalid_api_key | The key is missing, malformed or revoked. |
| 402 | insufficient_credits | The balance cannot cover the quoted price. Nothing was held. |
| 403 | account_suspended | The account or key is suspended, for example during a payment dispute. |
| 404 | not_found | No job with that id on this account. |
| 409 | idempotency_conflict | The idempotency key was already used with a different body. |
| 409 | not_cancelable | The job already finished. |
| 422 | validation_error | A field is missing or out of range. The message names it. |
| 422 | consent_required | Input images were sent without "consent_attested": true. |
| 429 | rate_limited | Too many requests. Wait for the Retry-After seconds. |
| 429 | concurrency_limit | Too many jobs in progress on this key. Wait for one to finish. |
| 451 | content_blocked | The request breaks the content rules. Nothing was held. |
| 503 | capacity_unavailable | No supplier can serve this tier right now. Nothing was held. Retry shortly. |
| 500 | internal_error | Our fault. Safe to retry with the same idempotency key. |
A job that was accepted and later fails does not return an HTTP error. It ends with status: "failed" and an error object whose code is upstream_failed, capacity_unavailable or content_blocked. In every case the cost is 0.
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.Need higher limits? Email support@llms.cheap with your expected volume.
Prompts and input images are checked before anything is sent to a supplier. Requests for sexual content, anything sexual involving minors, graphic violence, real people without their consent, deceptive deepfakes or copyrighted characters and brands are refused with 451 content_blocked and cost nothing. Repeated blocks suspend the account automatically. The full list is in the Acceptable Use Policy.
Generated from the OpenAPI 3.1 document the API serves, so it cannot drift from the running service. Load that file into Postman, Insomnia or a client generator if you prefer.
/v1/modelsno key neededModels, resolutions, duration limits and current prices in credits and USD per second.
Response 200
objectdataStatus codes
/v1/videos/quoteReturns what a request would cost without creating it. Nothing is held or charged.
Request body
modelrequiredresolutionduration_secondsrequiredResponse 200
objectmodelresolutionupscaled_fromduration_secondscredits_per_secondusd_per_secondcreditscost_usdStatus codes
/v1/videosCreates a job and holds its price in credits. The job runs asynchronously: poll it or pass a webhook_url. If it fails for any reason the hold is released in full.
Parameters
Idempotency-KeyheaderRequest body
modelrequiredresolutionduration_secondsrequiredaspect_ratioaudiopromptrequiredimage_urlreference_image_urlsconsent_attestedwebhook_urlidempotency_keyResponse 202
idobjectstatusprogressmodelresolutionupscaled_fromduration_secondsaspect_ratioaudiopromptcredits_heldcredits_chargedcost_usdresulterrorcreated_atcompleted_atStatus codes
/v1/videosParameters
limitquerybeforequeryResponse 200
objectdatahas_moreStatus codes
/v1/videos/{id}Status, progress, credits charged and, once succeeded, a result URL signed for 24 hours.
Parameters
idpathrequiredResponse 200
idobjectstatusprogressmodelresolutionupscaled_fromduration_secondsaspect_ratioaudiopromptcredits_heldcredits_chargedcost_usdresulterrorcreated_atcompleted_atStatus codes
/v1/videos/{id}/cancelCancels a job that has not completed and releases its hold.
Parameters
idpathrequiredResponse 200
idobjectstatusprogressmodelresolutionupscaled_fromduration_secondsaspect_ratioaudiopromptcredits_heldcredits_chargedcost_usdresulterrorcreated_atcompleted_atStatus codes
/v1/balanceResponse 200
objectcreditsusdheld_creditsheld_usdStatus codes