Tokenify
Get API keyConsole
Menu

The task submission format

A video takes minutes, so this surface hands back an id and you poll it. Three calls: submit, poll, delete.

View as markdown

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

FieldRequiredWhat it does
modelyesA video model id from the catalogue.
contentyesAn array of parts. A text part is the prompt; an image part makes it an image-to-video request.
durationnoSeconds of output. Priced per second, so this is the field that decides the bill.
ratioconditionalAspect ratio for a prompt-only request. Refused on an image-to-video one — see below.
resolutionnoOutput height band, where the model offers more than one.
generate_audionoAsk for sound. Refused on a model that always produces it and on one that never does.
watermarknoWhether 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.

CodeWhenRetryable
unsupported_parameterA 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_allowedThe key is scoped to a set of models that does not include this one.No.
invalid_requestThe 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_foundVideo 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.

A queue is not a refusal. When the supplier has no room the task waits rather than coming back 429, because a video you will be charged for in two minutes is worth waiting thirty seconds to start.

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.