The task submission format
A video takes minutes, so this surface hands back an id and you poll it. Three calls: submit, poll, delete.
Submitting
A generation is submitted as a task and answered with an id. The request is priced and the balance reserved before the task is accepted, so a submission that comes back with an id is one you will be billed for when it completes.
curl https://api.tokenify.dev/api/v3/contents/generations/tasks \
-H "Authorization: Bearer $TOKENIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/minimax-h3",
"content": [{ "type": "text", "text": "a paper boat on a still canal" }],
"duration": 5,
"ratio": "16:9",
"resolution": "720p"
}'The reply carries the task id. Nothing else about it is final: a task that has only just been accepted may not have reached the supplier yet.
The fields
| Field | Required | What it does |
|---|---|---|
model | yes | A video model id from the catalogue. |
content | yes | An array of parts. A text part is the prompt; an image part makes it an image-to-video request. |
duration | no | Seconds of output. Priced per second, so this is the field that decides the bill. |
ratio | conditional | Aspect ratio for a prompt-only request. Refused on an image-to-video one — see below. |
resolution | no | Output height band, where the model offers more than one. |
generate_audio | no | Ask for sound. Refused on a model that always produces it and on one that never does. |
watermark | no | Whether the maker’s mark is burned in, where the model allows a choice. |
The values a request is refused for
A field that exists but cannot be honoured is a refusal rather than a quiet default, because a video is priced before it runs: accepting a parameter we then ignore is a bill for something other than what was asked for.
| Code | When | Retryable |
|---|---|---|
unsupported_parameter | A field the model cannot honour: a ratio on an image-to-video request, where the shape follows the image; audio asked of a model that has no choice about it either way. | No — change the request. |
model_not_allowed | The key is scoped to a set of models that does not include this one. | No. |
invalid_request | The body parsed but a value is outside what the model accepts — a duration it does not offer, a resolution it does not have. | No. |
not_found | Video generation is not configured on the deployment you are talking to. | No. |
Every code we can send is listed on the errors page, with the same meanings.
Polling
curl https://api.tokenify.dev/api/v3/contents/generations/tasks/$TASK_ID \
-H "Authorization: Bearer $TOKENIFY_API_KEY"Poll at a few seconds. A task is queued while it waits for room at the supplier, running once submitted, and then succeeded or failed.
Cancelling
curl -X DELETE https://api.tokenify.dev/api/v3/contents/generations/tasks/$TASK_ID \
-H "Authorization: Bearer $TOKENIFY_API_KEY"An accepted task cannot be cancelled. DELETE answers 409 running_task_deletion for any task that has not settled — queued as well as running — and removes only one that has already finished. A submission that came back with an id will be generated and billed.
The reason is the reservation: a queued task already holds credit for the video it will produce, and releasing that on request would make the queue a free place to park work. If you need a task not to run, do not submit it.
Models
13 video models are served through this surface. Prices are per second of output; see the video overview for the rate card and the length each model accepts.
Last updated 2026-11-21.