API reference
Get a persistent video quote
/v1/video-quotesretention=persistent; quotes use catalog-supported modes and managed frames. When the switch is off, the route returns 404 directly. Reconfirm if the quote expires or prices change.
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 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_urlstringOptionalModel-specific public HTTPS first frame for ordinary tasks only; prohibited for persistent.
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.
Model-dependent; use the mode's audio policy and presets. Do not assume every model generates audio.
Responses and errors
HTTP 200
Persistent video quote retrieved successfully
application/json
- Type
- object
- Required fields
idexpires_atrequest_hashpricing_kindcurrencyreserved_quotareserved_amountestimated_final_amountsettlement_note
idstringRequiredPublic identifier of this object, used for its corresponding detail path.
expires_atintegerRequiredExpiration in Unix seconds; 0 means no fixed expiration.
request_hashstringRequiredNormalized request digest binding quote and creation; not the idempotency request key.
pricing_kindstringRequiredPricing method actually used for this quote.
currencystringRequiredQuote/billing currency.
reserved_quotaintegerRequiredReserved quota in platform quota units, not a USD amount.
reserved_amountstringRequiredMaximum reservation amount as a string in the quote currency.
Estimated final amount as a string; null means it cannot be determined before generation.
settlement_notestringRequiredActual metering and settlement description.
HTTP 400
Invalid request fields or parameters.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 401
The key is missing, invalid, expired, or revoked.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 403
Insufficient IP, account, model, or tool permissions.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 404
Object/capability unavailable, or feature switch disabled.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 409
Idempotency/quote conflict, object not ready, or still referenced.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
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, pricing, or storage unavailable.
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
Endpoint notes
These parameters only illustrate a complete preset. Copy the entire preset (duration, resolution, aspect_ratio, generate_audio) for your selected model/mode from the current key's video-models catalog; do not just replace the model or mix presets.