Video and Asynchronous Task Interfaces
Video generation is typically an asynchronous task: after submitting a request, you first receive a task ID, then poll the task status, and retrieve the video or task output upon success.
Use the full endpoint paths under https://api.corerouter.cloud and your CoreRouter API Key. The site administrator installs and configures video adapters; callers do not need a local plugin or a Novita Key. Query or download an existing task to retrieve its output; do not submit another generation.
Verified Models
The following input combinations passed generation, polling, download and user playback checks. Access depends on your account group, Key permissions and console configuration. Other parameter combinations have not been established by these samples.
| Model ID | Verified Inputs | Tested Output Settings |
|---|---|---|
kling-v3.0-std-t2v | Text-to-video, legacy Kling adapter | 3 seconds, 720p, no audio track |
kling-3.0 | Text-to-video | 3 seconds, 720p, audio off |
kling-3.0-turbo | Text-to-video | 3 seconds, 720p; silence is not guaranteed |
kling-3.0-omni | One reference image | 3 seconds, 720p, audio off |
doubao-seedance-2-0-260128 | Text-to-video, one first-frame image | 5 seconds, 480p, audio off |
MiniMax-H3 | Text-to-video, one first frame, two reference images | Text/first frame: 5 seconds, 768P; two images: 4 seconds, 768P |
MiniMax-H3-Max | Text-to-video, one reference video | 5 seconds, 480P |
veo-3.1-generate-001 | Text-to-video, JPEG/PNG first frame, JPEG first and last frames | 8 seconds, 720p, audio generation enabled |
veo-3.1-fast-generate-001 | Text-to-video | 8 seconds, 720p, audio generation enabled |
veo-3.1-lite-generate-001 | Text-to-video | 8 seconds, 720p, audio generation enabled |
These durations and resolutions are requested settings; actual files may differ in duration or dimensions. Legacy Kling, Kling 3.0, Turbo and Omni are different models, with distinct Model IDs. Reference-media fields also differ between adapters; use the matching example below.
Video Interface Selection
| Interface | Description | Recommendation |
|---|---|---|
/v1/videos | OpenAI-style video task submission | Priority for new integrations, requires matching video task adapter |
/v1/videos/{task_id} | OpenAI-style video task query | Used with /v1/videos |
/v1/videos/{task_id}/content | Get video content or output proxy | Depends on whether channel provides output |
/v1/video/generations | Compatible video task submission path | Legacy client compatibility |
/v1/video/generations/{task_id} | Compatible video task query path | Legacy client compatibility |
/v1/videos/{video_id}/remix | Regenerate based on existing video | Not provided by the Novita plugins tested here; not a substitute for reference-video input |
Choose a model from the table that is visible to your Key, and use its matching input format. Other models still require a matching task channel or plugin even when the video route exists; otherwise requests may return an unsupported capability, a missing model, or only a generic task receipt rather than a complete video object.
OpenAI-Style Video Submission
export COREROUTER_API_KEY="sk-xxxxxxxxxxxxxxxx"
curl https://api.corerouter.cloud/v1/videos \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
-d '{
"model": "kling-3.0-turbo",
"prompt": "A white sailboat glides slowly across a calm blue lake.",
"seconds": 3,
"metadata": { "resolution": "720p", "aspect_ratio": "16:9" }
}'This example uses the tested Turbo text-to-video settings. Image-to-video needs the matching adapter's fields shown below; adding a generic image field is not sufficient. Do not reuse this request unchanged for H3-Max or Seedance.
Use multipart/form-data only when the selected channel explicitly supports file uploads. The custom Novita Kling Native and Novita H3 Max plugins in this page accept JSON and do not support the multipart example below; see the Seedance section for its input format, and use the dedicated 8-second example below for Veo. Channels that support uploads typically use model, prompt, input_reference, seconds, and size:
curl https://api.corerouter.cloud/v1/videos \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
-F "model=video-model-id" \
-F "prompt=Make the subject in the image slowly turn around" \
-F "[email protected]" \
-F "seconds=4" \
-F "size=1280x720"Image Input Differences Between Plugins
Image fields and file uploads depend on the task plugin. A model supporting image-to-video does not guarantee that it accepts the examples above. With Doubao Video v1.0.1 (Seedance), top-level image and input_reference URLs are not converted into upstream image content, and local file uploads are rejected. Put an image URL accessible to the upstream service in metadata.content; use role: "first_frame" for a first-frame image:
{
"model": "doubao-seedance-2-0-260128",
"prompt": "Preserve the composition and let the sailboat glide slowly, with gentle ripples on the water",
"seconds": "5",
"metadata": {
"resolution": "480p",
"ratio": "16:9",
"generate_audio": false,
"content": [
{
"type": "image_url",
"image_url": { "url": "https://example.com/input.jpg" },
"role": "first_frame"
}
]
}
}Replace the example image URL and confirm that your model supports the input role, duration, and resolution. One live test of this model with a single public first-frame image, 5 seconds, 480p, and audio disabled completed successfully and preserved the input subject and composition. Other input roles and parameter combinations require separate validation. After generation, download the result and check that the image was actually used.
Novita Veo Text-to-Video
Veo uses metadata.generate_audio; do not substitute Kling's metadata.audio field. Submit this JSON to POST /v1/videos:
{
"model": "veo-3.1-generate-001",
"prompt": "A small sailboat moving slowly across a calm lake in daylight. Gentle water sounds, steady camera, no speech or music.",
"seconds": 8,
"metadata": {
"resolution": "720p",
"generate_audio": true
}
}The standard model, veo-3.1-fast-generate-001 and veo-3.1-lite-generate-001 each completed a text-to-video test with 8 seconds, 720p and audio generation enabled. A no-music prompt is not a strict audio switch: an existing standard sample still generated music, as detailed below. These text-to-video samples do not verify Fast/Lite image-to-video support.
Novita Veo First-Frame and First/Last-Frame Input
The current Veo plugin accepts local JPEG/PNG uploads from 1 byte to 20 MiB per file. JSON input may use a complete image data URI or a {mimeType, bytesBase64Encoded} object; direct HTTPS image URLs are not accepted. This example uses the tested standard-model first-frame settings. Save your local JPEG as input-first-frame.jpg:
curl --fail-with-body --show-error https://api.corerouter.cloud/v1/videos \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
-F 'model=veo-3.1-generate-001' \
-F 'prompt=Keep the sailboat and lake composition. The boat moves slowly to the right, gentle water sounds, no speech or music.' \
-F 'seconds=8' \
-F 'size=1280x720' \
-F 'metadata={"aspect_ratio":"16:9","resolution":"720p","generate_audio":true}' \
-F '[email protected];type=image/jpeg'For first/last-frame input, add -F '[email protected];type=image/jpeg' to the same command before submitting, and change the prompt to request a natural transition to the last frame. last_frame requires input_reference. For a PNG first frame, use a real .png file and type=image/png; changing only the filename or MIME does not convert an image. Single JPEG/PNG first frames and two JPEG first/last frames have been tested; PNG last frames and Fast/Lite image-to-video have not.
The current plugin fixes output at 8 seconds, 720p, 16:9 with audio generation enabled. generate_audio: false, other durations and other output specifications are rejected. The POST starts one billable generation; reuse its returned task ID for queries and downloads. A no music prompt does not guarantee no music; the playback limitations below still apply.
Novita Kling 3.0 and Turbo Text-to-Video
With the custom Novita Kling Native task plugin, submit JSON as follows; this plugin does not accept multipart uploads. Use the exact model ID kling-3.0-turbo, without surrounding whitespace. Administrators must use the same name in model metadata and pricing: a leading space was observed to cause has no task plugin usage schema when saving a per-second expression.
{
"model": "kling-3.0-turbo",
"prompt": "A white sailboat glides slowly across a calm blue lake.",
"seconds": 3,
"metadata": {
"resolution": "720p",
"aspect_ratio": "16:9"
}
}On 2026-10-20, one 3-second, 720p, 16:9 text-to-video sample completed generation, polling, download and full decoding. Its output was 1280×720 with an actual file duration of about 3.04 seconds. This does not cover standard Kling 3.0, Omni, Turbo image-to-video or other tiers. Sampled frames retained the sailboat and lake, but a later close-up did not fully follow the test prompt's fixed-camera instruction.
The Turbo engineering protocol exposes no audio switch, and the plugin does not send an upstream audio field. Even metadata.audio: "off" does not guarantee silent output. This file contained an AAC track with a nonzero measured signal. After full playback, the user confirmed continuous video, a moving sailboat and audible water sounds; the presence or absence of music and human voices was not separately confirmed. Remove audio after download if silence is required.
A separate standard-model request used kling-3.0, 3 seconds, 720p and 16:9, with explicit metadata.audio: "off" and metadata.multi_shot: false. Its task progressed through queued, in progress and completed. Download and full decoding passed; output was 1280×720, about 3.04 seconds, with no audio stream. Sampled frames maintained the same camera view while the boat moved slowly. To reuse the JSON above with the tested standard-model settings, change the model name and add both fields. See the next section for the separate Omni image-reference result; image-to-video, native audio and other specifications still need their own validation.
Novita Kling 3.0 Omni Image References
Provide Omni references in metadata.contents. The url below is a placeholder: replace it with a complete JPEG data URI and do not send it literally or log the full image encoding.
{
"model": "kling-3.0-omni",
"prompt": "Preserve the white sail, wooden hull and lake landscape. Move the boat slowly to the right with gentle ripples, fixed camera.",
"seconds": 3,
"metadata": {
"resolution": "720p",
"aspect_ratio": "16:9",
"audio": "off",
"multi_shot": false,
"contents": [
{ "type": "refer_image", "url": "data:image/jpeg;base64,<complete image Base64>" }
]
}
}On 2026-10-20, one request with these settings and an existing 1280×720 JPEG completed generation, polling, download and full decoding. Output was 1280×720, about 3.04 seconds, with no audio stream. Sampled frames retained the white-sailed wooden boat and lake scenery as the boat moved right, but the composition changed and the opening view cropped part of the subject. A refer_image supplies a reference; it is not a first_frame constraint or a promise of pixel fidelity. This sample does not cover reference videos, multiple images, element IDs, first/last frames, native audio or other specifications.
MiniMax-H3 Multiple Reference Images
With the current Hailuo Video plugin, place reference images in metadata.content with role: "reference_image". Reference mode cannot be mixed with first_frame / last_frame mode. Two reference images do not impose first/last-frame constraints.
{
"model": "MiniMax-H3",
"prompt": "Use both images to preserve the white sailboat and lake style. The boat moves slowly right, fixed camera.",
"seconds": 4,
"metadata": {
"resolution": "768P",
"ratio": "1:1",
"content": [
{ "type": "image_url", "image_url": { "url": "data:image/jpeg;base64,REPLACE_WITH_FIRST_IMAGE_BASE64" }, "role": "reference_image" },
{ "type": "image_url", "image_url": { "url": "data:image/jpeg;base64,REPLACE_WITH_SECOND_IMAGE_BASE64" }, "role": "reference_image" }
]
}
}On 2026-10-20, one live request used two JPEG references from existing video assets, 4 requested seconds, 768P and 1:1. It completed with a 768×768 video whose actual file duration was about 4.46 seconds. Download and full decoding passed; sampled frames retained the sailboat and lake theme. This verifies the input combination, without measuring each image’s independent influence or guaranteeing an exact file duration. Site billing logs recorded 4 requested seconds and 2 images; supplier usage and billing seconds were not independently obtained. After full playback, the user confirmed continuous video, a moving sailboat and audible water sounds; the presence or absence of music and human voices was not separately confirmed.
This result does not cover reference videos, charges for more than 5 input images, 2K or H3-Max. The engineering PDF specifies 5–15 seconds and 480P/768P for H3-Max, versus 4–15 seconds and 768P/2K for regular H3. The current Hailuo plugin does not declare H3-Max; use the separate Novita H3 Max plugin and pricing, with its tested example in the next section. Check billing expressions before testing other tiers, reference videos or excess images. An unconfigured zero site price is not evidence of a free supplier capability.
MiniMax-H3-Max Minimum Text-to-Video Sample
H3-Max uses the separate custom Novita H3 Max task plugin. Its minimum duration and resolution options differ from regular H3. A minimal JSON request is:
{
"model": "MiniMax-H3-Max",
"prompt": "A white sailboat glides slowly across a calm blue lake, fixed camera.",
"seconds": 5,
"metadata": { "resolution": "480P", "ratio": "16:9" }
}On 2026-10-20, one request with these settings completed generation, polling, download and full decoding. It requested 5 seconds, 480P and 16:9; the file was 832×480, about 5.18 seconds, with an AAC track. Its actual aspect ratio of about 1.733 differs slightly from exact 16:9 (about 1.778). Sampled frames showed the sailboat moving, with the top of the sail cropped. After full playback, the user confirmed continuous video, a moving sailboat and audible water sounds; the presence or absence of music and human voices was not separately confirmed. Check and process the downloaded file if exact dimensions, aspect ratio or no audio track are required.
The plugin settles using upstream usage.output_seconds; file duration is not automatically the billable duration. The site log recorded seconds: 5 for this sample. Raw supplier usage and the supplier bill were not independently obtained, so settlement adjustments when usage changes remain unverified. This text-to-video sample does not cover 768P, image references, other durations or production failure refunds. The next section documents the tested single-reference-video input.
MiniMax-H3-Max Reference Video
A reference video provides appearance, scene or motion cues for a new generation. The output is not a direct return of the input file, and its audio need not copy the input. H3-Max uses type: "video_url" with role: "reference_video" inside metadata.content. Reference mode cannot be mixed with first_frame / last_frame mode.
Name your local MP4 reference.mp4, encode it locally as a complete data URI, then submit one generation. Do not put a local file path in video_url.url:
python3 - <<'PY'
import base64
import json
from pathlib import Path
video = base64.b64encode(Path("reference.mp4").read_bytes()).decode("ascii")
request = {
"model": "MiniMax-H3-Max",
"prompt": "Use the reference video to preserve the white sailboat design and calm blue lake scenery. The boat continues gliding slowly to the right. Fixed camera, natural daylight, gentle water ripples. No text, no music, no speech.",
"seconds": 5,
"metadata": {
"resolution": "480P",
"ratio": "16:9",
"content": [{
"type": "video_url",
"video_url": {"url": "data:video/mp4;base64," + video},
"role": "reference_video"
}]
}
}
Path("video-request.json").write_text(json.dumps(request))
PY
curl --fail-with-body --show-error https://api.corerouter.cloud/v1/videos \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @video-request.jsonLocal encoding does not call a model; the final POST starts one paid generation. Adapt the prompt to your source, then query and download using the returned task ID.
On 2026-10-20, one approximately 3.04-second, 1280×720 MP4 without an audio track completed generation, download and full decoding with requested output settings of 5 seconds, 480P and 16:9. The output was 832×480, about 5.18 seconds, with AAC audio. After comparing both files, the user confirmed the white sailboat was preserved, playback was continuous and the boat moved. The silent input became an output with water sounds, no music and no human voice, satisfying this sample's two audio exclusion requirements. Reference-video input does not automatically make the output silent.
The provider protocol allows up to 3 reference clips, each 2–15 seconds, with a combined duration of at most 15 seconds. Only one MP4 data URI was verified here. HTTPS video URLs, multiple clips, mixed image/video references, 768P and other models' reference-video modes require separate confirmation. Under the supplier protocol, H3-Max input images and reference videos have no additional input charge; output is billed by resolution and seconds. Regular H3 has different reference-video input billing. Refer to the console for your actual price.
Query Video Task
After successful submission, the response typically includes id or task_id. Use the returned task ID to query:
curl https://api.corerouter.cloud/v1/videos/task_xxxxxxxxxxxxxxxx \
-H "Authorization: Bearer $COREROUTER_API_KEY"Poll every 5–10 seconds and increase the interval if rate limited. Stop on completed or failed and set an overall waiting limit. Reaching that limit only stops local waiting; it does not cancel the task or prove generation failed. Resume using the original task ID instead of submitting generation again.
Common statuses:
| Status | Meaning |
|---|---|
queued | Submitted, awaiting processing |
in_progress | Generating |
completed | Completed |
failed | Failed, check error |
These status names apply to the OpenAI-style response from /v1/videos/{task_id}. The compatible query /v1/video/generations/{task_id} may return {"code":"success","data":{...}}, with the task ID and status in data.task_id and data.status. The generic query /v1/tasks/{task_id} returns task_id and status directly. On this instance, both returned SUCCESS and a string progress of "100%" for the same completed Veo task, while the OpenAI-style query returned completed and numeric 100. Parse the response shape and status values for the endpoint you use.
Get Video Content
If the task channel supports output proxy, you can access:
curl --fail --show-error https://api.corerouter.cloud/v1/videos/task_xxxxxxxxxxxxxxxx/content \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
--output output.mp4Whether content can be directly downloaded depends on the video channel and task plugin. Some channels only return a result URL, which needs to be read from the query result.
Check playback and prompt compliance separately. On 2026-10-20, the user played an existing standard veo-3.1-generate-001 sample in full (8 seconds, 720p, generate_audio: true) and reported continuous video, water sounds and music, with no human voice. The original prompt specified no speech or music, so playback, water sounds and no speech passed for this sample; the no-music requirement did not. generate_audio: true requests audio generation and does not establish that its contents follow the prompt. This observation applies only to this sample.
On the same day, the user compared two JPEG references with another standard Veo sample using first and last frames (8 seconds, 720p). Its opening and closing views were reported as close to the respective references, with a continuous transition, music, water sounds and birdsong. The endpoint views and transition passed this visual check, but the prompt's no music requirement did not. The presence or absence of human voices was not separately confirmed; pixel equality and quantitative similarity were not assessed.
As of 2026-10-20, all 16 existing test videos had user feedback after full playback, with continuous playback confirmed. Reference-image samples also received feedback on subject preservation or proximity to their endpoint images, as applicable. A separate H3-Max single-reference-video sample also received the user playback confirmation described above. These results do not establish that every prompt requirement, other reference-video model or input combination, other specification, production failure refund, cancellation/deletion or concurrent generation has passed. The music, audio-switch, dimension and composition limitations described above still apply.
On 2026-10-20, after the user confirmed activating [email protected], public API checks reused an existing standard Veo video. HEAD returned 200, video/mp4, the correct Content-Length, and no body on both Bearer-authenticated content endpoints and the signed artifact link. Signed HEAD with Range: bytes=0-1023 returned 206, the correct Content-Range, and no body. Bearer and signed range GET requests both returned 206 with exactly the original file’s first 1024 bytes; a complete signed GET also matched the original SHA-256. The previous Bearer HEAD 502 and signed HEAD 404 no longer occurred in this retest. No new video was generated. This does not verify HEAD for every model or channel.
The previous plugin forwarded client HEAD to the upstream S3 signed URL, which accepted GET but returned 403 for HEAD. The host also masks internal proxy errors as 404 for signed access. Version 0.2.1 uses upstream GET; for a client HEAD, the host returns only headers and closes the upstream response. Some upstream body bytes may already be buffered, so this is not a claim of zero network transfer. For other channels without HEAD support, use GET with Range and check whether the server returns partial content (206) or a full response (200). Do not submit another generation to resolve a download problem with an existing artifact.
Compatible Video Interface
Existing clients using /v1/video/generations can continue to call this way:
curl https://api.corerouter.cloud/v1/video/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
-d '{
"model": "video-model-id",
"prompt": "City night timelapse photography",
"seconds": "5",
"size": "1280x720"
}'Compatible paths primarily read generic fields: model, prompt, seconds, duration, size, image, images, input_reference, and metadata. Fields like width, height, fps, seed will not automatically convert to size; don't pass only these fields expecting server-side video dimension inference.
Query:
curl https://api.corerouter.cloud/v1/video/generations/task_xxxxxxxxxxxxxxxx \
-H "Authorization: Bearer $COREROUTER_API_KEY"Generic Task Interface
/v1/tasks/{key} is a lower-level generic task submission entry point. key represents a task plugin or task type; regular users don't need to guess this value directly.
curl https://api.corerouter.cloud/v1/tasks/task-plugin-key \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
-d '{
"model": "task-model-id",
"prompt": "Generate a demo task",
"metadata": {
"quality": "standard"
}
}'Query generic task:
curl https://api.corerouter.cloud/v1/tasks/task_xxxxxxxxxxxxxxxx \
-H "Authorization: Bearer $COREROUTER_API_KEY"The generic query uses the status format described above; it does not return an OpenAI-style video object.
Query task artifacts:
curl https://api.corerouter.cloud/v1/tasks/task_xxxxxxxxxxxxxxxx/artifacts \
-H "Authorization: Bearer $COREROUTER_API_KEY"Download specific artifact:
Replace video below with the matching item's key from the artifact list. Artifact names can differ between plugins.
curl --fail --show-error https://api.corerouter.cloud/v1/tasks/task_xxxxxxxxxxxxxxxx/artifacts/video/content \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
--output artifact.binFor the same Veo task, this API download had the same SHA-256 as /v1/videos/{task_id}/content. The artifact list also provides a content_url. On 2026-10-19, setting the public address to media.corerouter.cloud produced a link that returned 404 and XML NoSuchKey. After changing the admin setting “Async Task Public Address” to https://api.corerouter.cloud, a newly queried signed link successfully downloaded the complete file with the same hash using only the link itself. On 2026-10-20, after the user confirmed activating [email protected], HEAD returned 200 on the same task’s signed link and both Bearer-authenticated content endpoints. Complete and range GET checks also passed. For a similar public-link failure, use the API address with your token as shown above and check the public artifact domain and routing configuration. Links containing an access parameter carry an access credential; do not write complete links to public logs.
Current Cancellation and Deletion Limits
Supplier support does not establish that CoreRouter exposes the same operation. On 2026-10-20, tests using fictional task IDs returned 404 Invalid URL for DELETE /v1/videos/{id} and 405 for DELETE /doubao/api/v3/contents/generations/tasks/{id}. Together with the current plugin and route definitions, these results show that cancellation/deletion cannot currently be verified through those entries. No real video was deleted; cancellation refunds were not tested.
The Seedance engineering PDF describes upstream behavior: queued tasks can be cancelled, running tasks cannot, and terminal task records can be deleted. Operation forwarding, task ownership checks and local state/refund handling are required before advertising support. Submitting another generation does not cancel an existing task.
Common Issues
Video errors currently use either {"error":{"message":"..."}} or {"code":"...","message":"...","data":null}. Clients should handle both error.message and the top-level message, and retain the x-oneapi-request-id response header for troubleshooting. Some plugin parameter errors have an empty error.code; use the HTTP status and message rather than requiring a fixed structured error code.
Content download errors may also be non-JSON. Earlier tests returned 416 with XML InvalidRange for an out-of-bounds Range, XML NoSuchKey for the old public address, and HTML for public HEAD 502 responses before the fix. The public-address and Veo HEAD issues have since passed the configuration and plugin retests described above. Check the HTTP status and Content-Type before parsing JSON or saving the body as an MP4.
The following behaviors were tested on the current instance. The HTTP status alone does not identify the cause:
| HTTP | Scenario | Error or action |
|---|---|---|
400 | Missing model | Model name not specified, model name cannot be empty; supply model |
400 | Incomplete JSON | Invalid task protocol request; correct the request body |
400 | MiniMax-H3 duration of 3 seconds | plugin_request_invalid, with a message requiring an integer duration of 4–15 seconds |
400 | Kling Turbo missing prompt, duration of 2 or 16 seconds, or 4k resolution | error.message requires a nonempty prompt, an integer duration of 3–15 seconds, or a supported resolution, respectively |
400 | H3-Max missing prompt, duration of 4 or 16 seconds, or 720p resolution | error.message requires one nonempty text item, an integer duration of 5–15 seconds, or 480P/768P, respectively |
400 | Turbo/H3-Max reference set to not-a-media-url | Requires an HTTPS URL or supported media data URI; this string check does not verify the file contents |
400 | Turbo PNG data URI containing non-image bytes | Top-level code: fail_to_fetch_task, with an upstream image-format error inside message; check the decoded file |
400 | Seedance duration of 0 | seconds must be between 1 and 3600; this is the plugin validation range, and the model may impose stricter limits |
400 | Local image upload to the Doubao plugin | The message requires URLs inside metadata.content; use a public image reference as shown above |
400 | Querying a nonexistent video task | Top-level code and message are both task_not_exist |
404 | Downloading /content for a nonexistent task | error.message is Task not found |
401 | Missing authorization header | Invalid token; check Authorization: Bearer ... |
Task queries and content downloads currently use different statuses for a missing task, so do not handle only 404. Correct these input, task ID, and authentication errors before trying again; do not automatically retry video generation requests.
prompt is required: Video tasks typically requireprompt.- Submitted successfully but still queued: Keep querying the same task. Switching models and submitting again can create a second billable task while the original is still active.
- Cannot query task: Confirm you're using the task ID from the submission response, and API Key still has permission to access that task.
- Content download failed: Current task channel may only provide result URL, doesn't support
/contentproxy download.
