Seedance 2.5 · Cancel a task
POST /generations/:id/cancel asks the provider to stop a running task. Once the provider confirms, the task ends as failed with error "Canceled by user" and its credits are refunded. Supported on fal (while still queued) and Replicate; other providers, or tasks already finished, answer 409 not_cancelable.
/api/v1/generations/{id}/cancelBearer API keyEndpoints for this model
/generationsCreate a generationGET/generations/{id}Get the resultPOST/generations/{id}/cancelCancel a taskPOST/quoteQuoteGET/models/{slug}Get one modelSelect a provider to see its effective parameter limits. Automatic routing chooses a provider that supports your input. Examples include defaults and required inputs; replace example media URLs with accessible files.
Request
curl -X POST 'https://01router.com/api/v1/generations/gen_example/cancel' \
-H "Authorization: Bearer $API_KEY"Input parameters
Query / path parametersidstring · pathRequiredGeneration ID returned by the create request.
Response example
{
"id": "gen_example",
"object": "generation",
"model": "seedance-2.5",
"type": "video",
"provider": "fal",
"status": "failed",
"input": {
"prompt": "A cinematic landscape at sunrise.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": true
},
"outputs": [],
"error": "Canceled by user",
"credits": 0,
"price_usd": 0,
"created_at": "2026-10-25T08:00:00.000Z",
"completed_at": "2026-10-25T08:01:00.000Z"
}Responses are illustrative. IDs, usage, prices and results depend on the actual request.
Response fields
idstringGeneration ID returned by the create request.
object"generation"generation
modelstringModel slug from the catalog. Project keys may use a project-specific model slug.
typevideo | image | audio | chatproviderstringOptional provider slug. Omit for automatic routing; project settings may pin the provider.
statusstringqueued / processing / succeeded / failed. Stop polling on succeeded or failed.
inputobjectModel-specific input object. See the selected model reference for required fields, defaults and limits.
outputsstring[]Result file URLs. Empty until available; download promptly because URLs may expire.
errorstring | nullError message on failure; null otherwise.
creditsnumberCredits charged for this generation; zero after a refund.
price_usdnumberPrice of this generation in USD; zero after a refund.
created_atstringCreation time in ISO 8601 format.
completed_atstring | nullCompletion time in ISO 8601 format, or null while running.
Use with AI
Give your coding assistant the documentation index or the full API reference, including live model parameters.