API reference
Create a video generation task
/v1/videosExisting /v1 supports JSON/multipart; references are quoted internally and processed in the background. Never resend an unknown request.
Ordinary and persistent workflows
Ordinary videos use the model's public HTTPS inputs. Persistent videos use retention=persistent, a complete preset from the capability catalog, managed frames, and a valid quote. Do not mix workspace frame fields into ordinary requests or assemble parameters from different presets into a new combination.
Background processing advances execution, settlement, and saving; client queries only observe records. Estimated reservations may require an additional charge or a refund. If saving fails after success, retry archival of the original result rather than generating again. Recover unknown submissions with the original request key first; see Asynchronous tasks and idempotency.
Authentication and permissions
Use your current GloopAPI key. Available models, capabilities and permissions depend on its catalog and the endpoint documentation.
Authorization: Bearer $GLOOP_API_KEYAuthentication schemes: BearerAuth
Request
Request headers
Idempotency-KeystringOptionalUse a stable idempotency key; omission cannot deduplicate requests. Reference keys allow 1–128 letters, digits, underscores or hyphens.
- Minimum length
1- Maximum length
191- Pattern
"^[\\x20-\\x7E]{1,191}$"
GloopAPI-Video-VersionstringOptionalDefault: 2026-10-26. Other versions are rejected.
- Enum
["2026-10-26"]
Request body · application/json
- Type
- object
- Required fields
modelprompt- Additional properties
- false
Request body required
modestringOptionalRequired for persistent.
- Enum
["text_to_video","image_to_video"]
retentionstringOptionalpersistent uses the persistent workspace; omission creates an ordinary task.
quote_idstringOptionalNew persistent requests must first confirm a valid quote returned by video-quotes.
start_frameobjectOptionalRequired for persistent image-to-video: a managed file belonging to the same key. Prohibited for text-to-video.
start_frame child fields (1)
file_idstringRequiredPublic ID of a managed file for the same account and key.
allOf branch 1
Type: object
Required in this branch: file_id
file_idstringRequiredPublic ID of a managed file for the same account and key.
end_frameobjectOptionalOptional final frame for persistent; the capability must support it.
end_frame child fields (1)
file_idstringRequiredPublic ID of a managed file for the same account and key.
allOf branch 1
Type: object
Required in this branch: file_id
file_idstringRequiredPublic ID of a managed file for the same account and key.
webhook_endpoint_idstringOptionalOrdinary tasks may reference a receiver configured in the console; prohibited for persistent.
modelstringRequiredPublic model ID from the current key's catalog; does not guarantee that a historical model remains available.
promptstringRequiredGeneration prompt.
- Minimum length
1- Maximum length
2500
durationintegerOptionalModel-specific duration in seconds. Use the complete combination from video-models mode.presets, not a Cartesian product. Wan Turbo does not support this field; there is no uniform default.
image_urlstringOptionalHTTPS first frame or PNG/JPEG Data URL; mutually exclusive with input_reference.
end_image_urlstringOptionalModel-specific public HTTPS final frame for ordinary tasks only; prohibited for persistent.
resolutionstringOptionalResolution value in the model preset.
aspect_ratiostringOptionalAspect ratio value in the model preset.
generate_audiobooleanOptionalModel-dependent; use the mode's audio policy and presets. Do not assume every model generates audio.
secondsunionOptionalPositive integer seconds, equal to duration when both are provided, and valid for the model preset.
oneOf branch 1
Type: string
Pattern:
"^[1-9][0-9]*$"oneOf branch 2
Type: integer
Minimum:
1sizestringOptionalExact dimensions must match a model preset; conflicts with resolution/aspect_ratio are rejected.
- Enum
["1280x720","720x1280","720x720","1920x1080","1080x1920","1080x1080"]
input_referenceobjectOptionalChoose file_id or image_url. Quoting is internal; do not combine with other first-frame fields, retention or quote_id.
- Additional properties
false
fpsintegerOptionalOptional exact frame-rate constraint: 24 is supported only for resolved Seedance 2.0 text-to-video/image-to-video routes. Other models reject it; it is never silently ignored.
- Enum
[24]
Request body · multipart/form-data
- Type
- object
- Required fields
modelprompt
Request body required
modelstringRequiredpromptstringRequiredsecondsstringOptionalsizestringOptionalExact dimensions must match a model preset; conflicts with resolution/aspect_ratio are rejected.
- Enum
["1280x720","720x1280","720x720","1920x1080","1080x1920","1080x1080"]
input_referencestringOptional- Format
"binary"
generate_audiobooleanOptional
Responses and errors
HTTP 202
The task was accepted; this does not mean it is complete.
application/json
- Type
- object
- Required fields
idmodelstatuscreated_at
updated_atintegerOptionalLast update time in Unix seconds.
retentionstringOptionalTask result retention policy; persistent is the persistent workspace.
inputobjectOptionalOriginal task input or tool contract input.
input child fields (18)
modestringOptionalRequired for persistent.
- Enum
["text_to_video","image_to_video"]
retentionstringOptionalpersistent uses the persistent workspace; omission creates an ordinary task.
quote_idstringOptionalNew persistent requests must first confirm a valid quote returned by video-quotes.
start_frameobjectOptionalRequired for persistent image-to-video: a managed file belonging to the same key. Prohibited for text-to-video.
start_frame child fields (1)
file_idstringRequiredPublic ID of a managed file for the same account and key.
allOf branch 1
Type: object
Required in this branch: file_id
file_idstringRequiredPublic ID of a managed file for the same account and key.
end_frameobjectOptionalOptional final frame for persistent; the capability must support it.
end_frame child fields (1)
file_idstringRequiredPublic ID of a managed file for the same account and key.
allOf branch 1
Type: object
Required in this branch: file_id
file_idstringRequiredPublic ID of a managed file for the same account and key.
webhook_endpoint_idstringOptionalOrdinary tasks may reference a receiver configured in the console; prohibited for persistent.
modelstringRequiredPublic model ID from the current key's catalog; does not guarantee that a historical model remains available.
promptstringRequiredGeneration prompt.
- Minimum length
1- Maximum length
2500
durationintegerOptionalModel-specific duration in seconds. Use the complete combination from video-models mode.presets, not a Cartesian product. Wan Turbo does not support this field; there is no uniform default.
image_urlstringOptionalHTTPS first frame or PNG/JPEG Data URL; mutually exclusive with input_reference.
end_image_urlstringOptionalModel-specific public HTTPS final frame for ordinary tasks only; prohibited for persistent.
resolutionstringOptionalResolution value in the model preset.
aspect_ratiostringOptionalAspect ratio value in the model preset.
generate_audiobooleanOptionalModel-dependent; use the mode's audio policy and presets. Do not assume every model generates audio.
secondsunionOptionalPositive integer seconds, equal to duration when both are provided, and valid for the model preset.
oneOf branch 1
Type: string
Pattern:
"^[1-9][0-9]*$"oneOf branch 2
Type: integer
Minimum:
1sizestringOptionalExact dimensions must match a model preset; conflicts with resolution/aspect_ratio are rejected.
- Enum
["1280x720","720x1280","720x720","1920x1080","1080x1920","1080x1080"]
input_referenceobjectOptionalChoose file_id or image_url. Quoting is internal; do not combine with other first-frame fields, retention or quote_id.
- Additional properties
false
fpsintegerOptionalOptional exact frame-rate constraint: 24 is supported only for resolved Seedance 2.0 text-to-video/image-to-video routes. Other models reject it; it is never silently ignored.
- Enum
[24]
allOf branch 1
Type: object
Required in this branch: model, prompt
Additional properties:
falsemodestringOptionalRequired for persistent.
- Enum
["text_to_video","image_to_video"]
retentionstringOptionalpersistent uses the persistent workspace; omission creates an ordinary task.
quote_idstringOptionalNew persistent requests must first confirm a valid quote returned by video-quotes.
start_frameobjectOptionalRequired for persistent image-to-video: a managed file belonging to the same key. Prohibited for text-to-video.
start_frame child fields (1)
file_idstringRequiredPublic ID of a managed file for the same account and key.
allOf branch 1
Type: object
Required in this branch: file_id
file_idstringRequiredPublic ID of a managed file for the same account and key.
end_frameobjectOptionalOptional final frame for persistent; the capability must support it.
end_frame child fields (1)
file_idstringRequiredPublic ID of a managed file for the same account and key.
allOf branch 1
Type: object
Required in this branch: file_id
file_idstringRequiredPublic ID of a managed file for the same account and key.
webhook_endpoint_idstringOptionalOrdinary tasks may reference a receiver configured in the console; prohibited for persistent.
modelstringRequiredPublic model ID from the current key's catalog; does not guarantee that a historical model remains available.
promptstringRequiredGeneration prompt.
- Minimum length
1- Maximum length
2500
durationintegerOptionalModel-specific duration in seconds. Use the complete combination from video-models mode.presets, not a Cartesian product. Wan Turbo does not support this field; there is no uniform default.
image_urlstringOptionalHTTPS first frame or PNG/JPEG Data URL; mutually exclusive with input_reference.
end_image_urlstringOptionalModel-specific public HTTPS final frame for ordinary tasks only; prohibited for persistent.
resolutionstringOptionalResolution value in the model preset.
aspect_ratiostringOptionalAspect ratio value in the model preset.
generate_audiobooleanOptionalModel-dependent; use the mode's audio policy and presets. Do not assume every model generates audio.
secondsunionOptionalPositive integer seconds, equal to duration when both are provided, and valid for the model preset.
oneOf branch 1
Type: string
Pattern:
"^[1-9][0-9]*$"oneOf branch 2
Type: integer
Minimum:
1sizestringOptionalExact dimensions must match a model preset; conflicts with resolution/aspect_ratio are rejected.
- Enum
["1280x720","720x1280","720x720","1920x1080","1080x1920","1080x1080"]
input_referenceobjectOptionalChoose file_id or image_url. Quoting is internal; do not combine with other first-frame fields, retention or quote_id.
- Additional properties
false
fpsintegerOptionalOptional exact frame-rate constraint: 24 is supported only for resolved Seedance 2.0 text-to-video/image-to-video routes. Other models reject it; it is never silently ignored.
- Enum
[24]
billingobjectOptionalIndependent billing status; do not substitute generation status.
billing child fields (7)
currencystringRequiredQuote/billing currency.
error_codestringOptionalPublic error code usable for branching logic.
statusstringRequiredCurrent object status; evaluate separately from billing and the saving stage.
reserved_quotaintegerRequiredReserved quota in platform quota units, not a USD amount.
Final charge in platform quota units; null means not yet determined.
reserved_amountstringRequiredMaximum reservation amount as a string in the quote currency.
Final charge as a string; null means not settled.
allOf branch 1
Type: object
Required in this branch: currency, status, reserved_quota, final_quota, reserved_amount, final_amount
currencystringRequiredQuote/billing currency.
error_codestringOptionalPublic error code usable for branching logic.
statusstringRequiredCurrent object status; evaluate separately from billing and the saving stage.
reserved_quotaintegerRequiredReserved quota in platform quota units, not a USD amount.
Final charge in platform quota units; null means not yet determined.
reserved_amountstringRequiredMaximum reservation amount as a string in the quote currency.
Final charge as a string; null means not settled.
storageobjectOptionalIndependent file saving status.
storage child fields (3)
file_idstringOptionalPublic ID of a managed file for the same account and key.
statusstringRequiredNew tasks use not_stored and do not reserve output files. Historical files report their actual storage state; billing must be checked separately.
error_codestringOptionalPublic error code usable for branching logic.
allOf branch 1
Type: object
Required in this branch: status
file_idstringOptionalPublic ID of a managed file for the same account and key.
statusstringRequiredNew tasks use not_stored and do not reserve output files. Historical files report their actual storage state; billing must be checked separately.
error_codestringOptionalPublic error code usable for branching logic.
availabilityobjectOptionalCurrent available actions.
availability child fields (4)
can_cancelbooleanRequiredWhether the current task allows requesting cancellation.
can_deletebooleanRequiredWhether the current task allows deletion.
can_retry_storagebooleanRequiredWhether the current task allows retrying a save.
reasonstringOptionalPublic reason for an unavailable action or billing review.
allOf branch 1
Type: object
Required in this branch: can_cancel, can_delete, can_retry_storage
can_cancelbooleanRequiredWhether the current task allows requesting cancellation.
can_deletebooleanRequiredWhether the current task allows deletion.
can_retry_storagebooleanRequiredWhether the current task allows retrying a save.
reasonstringOptionalPublic reason for an unavailable action or billing review.
idstringRequiredPublic identifier of this object, used for its corresponding detail path.
modelstringRequiredPublic model ID from the current key's catalog.
statusstringRequiredStandard states: queued/in_progress/completed/failed.
- Enum
["queued","in_progress","completed","failed"]
created_atintegerRequiredCreation time in Unix seconds.
resultobjectOptionalMetadata for prepared results; may be absent before completion.
result child fields (8)
file_idstringOptionalPublic ID of a managed file for the same account and key.
storage_statusstringOptionalHistorical file archive status. New generated results are not stored automatically; use the provider results directly.
deliverystringOptionalauthenticated_content means the content path must be used; do not assume a direct URL exists.
content_pathstringOptionalPlatform-authenticated content path; request binary content with the same key.
urlstringOptionalAccess URL for a result or reference; signed URLs are only valid briefly.
content_typestringOptionalResult MIME type.
file_namestringOptionalPublic download filename.
file_sizeintegerOptionalResult file size in bytes.
allOf branch 1
Type: object
file_idstringOptionalPublic ID of a managed file for the same account and key.
storage_statusstringOptionalHistorical file archive status. New generated results are not stored automatically; use the provider results directly.
deliverystringOptionalauthenticated_content means the content path must be used; do not assume a direct URL exists.
content_pathstringOptionalPlatform-authenticated content path; request binary content with the same key.
urlstringOptionalAccess URL for a result or reference; signed URLs are only valid briefly.
content_typestringOptionalResult MIME type.
file_namestringOptionalPublic download filename.
file_sizeintegerOptionalResult file size in bytes.
Structured failure category; cancelled means cancellation.
objectstringOptional- Enum
["video"]
progressintegerOptionalUnknown progress is 0 with progress_known=false; settled success is 100.
progress_knownbooleanOptionalsecondsstringOptionalKnown duration; omitted when unknown or automatically determined.
sizestringOptionalExact dimensions when known; otherwise omitted.
execution_statusstringOptionalunknown requires reconciliation; do not regenerate.
diagnosticobjectOptionalurlstringOptionalDownload URL for a settled video: a public result.url alias or a task-scoped signed content URL valid for 10 minutes. Treat the link as a read credential; do not publish it.
- Format
"uri"
HTTP 400
Invalid request parameters.
application/json
- Type
- object
- Required fields
error
errorobjectRequired
HTTP 401
The key is missing, invalid, expired, or revoked.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 402
Insufficient available account or key quota.
application/json
- Type
- object
- Required fields
error
errorobjectRequired
HTTP 403
The current key lacks permission.
application/json
- Type
- object
- Required fields
error
errorobjectRequired
HTTP 409
Request conflict, not ready, or submission unknown. Query the original record first; never blindly resend.
application/json
- Type
- object
- Required fields
error
errorobjectRequired
HTTP 429
Request/queue rate limit.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 500
Internal authentication or data storage failure.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 503
Service, storage, pricing, or model temporarily unavailable.
application/json
- Type
- object
- Required fields
error
errorobjectRequired