idpath · RequiredVidu task identifier returned by task creation.
/api/v1/vidu/tasks/{id}Authentication · x-api-key
Returns OmnAPI task state and pass-through Vidu resource URLs. The published one-hour window is conservative: standard creation URLs may last 24 hours, while finished outputs may expire sooner.
Scope: task:read
Billing and effects: Free resource read; no generation purchase.
Recovery: Read the current resource before retrying a mutation; do not assume this operation supports Idempotency-Key.
Follow this operation’s workflow → · All permission rulesidpath · RequiredVidu task identifier returned by task creation.
Read the HTTP status and body together. A receipt confirms acceptance; poll the returned Task or product view for terminal execution and media delivery. Example IDs and credit amounts are illustrative, not a price quote.
Complete JSON example (optional fields may be omitted).
{ "success": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API key" }}application/json
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
outputUrlTtlHoursRequiredConservative download window. Some Vidu creation URLs remain valid for 24 hours, but finished outputs may expire after 1 hour.
progressRequiredReported progress from 0 to 100. It is an observation, not an ETA or confirmation that delivery is ready.
Minimum: 0. Maximum: 100.
statusRequiredState of the object containing this field. Use its listed values; operation acceptance, Task completion and media delivery are separate states.
Default: "PENDING".
taskIdRequiredOperation Task identifier. Save it before polling; a receipt does not mean the operation has completed.
errorCodeOptionalMachine-readable failure code. Use this for recovery decisions instead of parsing the message.
May be null.
errorMessageOptionalHuman-readable failure explanation. Do not use message wording as a stable programmatic discriminator.
May be null.
outputOptionalOperation-specific provider result, with no universal nested schema. For stable client consumption use the typed resources in this response. For Vidu choose the resource by type and role; see Vidu operations. For Tasks see Task results.
resourcesOptionalPublic output resources. Select by resource type rather than array position and use returned URLs.
resources[]Each itemA consumable resource produced by the task.
resources[].idRequiredStable resource id (OmnAPI resource id).
resources[].indexRequiredStable zero-based provider result slot. Finalized post-process resources may use a higher reserved slot.
Minimum: 0.
resources[].roleRequiredHow clients should interpret the resource. Prefer final when present; candidate items remain selectable alternatives.
resources[].typeRequiredUppercase resource kind. MUSIC carries a song URL and optional thumbnailUrl; TEXT carries inline content. Optional fields depend on the operation.
resources[].assetIdOptionalStable OmnAPI-owned asset id when available.
resources[].assetStatusOptionalLifecycle of the retained media object. READY permits access; EXPIRED, DELETING and DELETED must not be treated as downloadable.
resources[].byteLengthOptionalResource size in bytes.
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — numberOptionResource size in bytes.
Option 2 — nullOptionresources[].contentOptionalInline text content (e.g. lyrics).
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — stringOptionInline text content (e.g. lyrics).
Option 2 — nullOptionresources[].contentTypeOptionalResource content type.
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — stringOptionResource content type.
Option 2 — nullOptionresources[].durationOptionalDuration of this output media resource in seconds, or null/absent when unknown or not applicable (for example text output).
May be null.
resources[].durationSecOptionalResource duration in seconds.
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — numberOptionResource duration in seconds.
Option 2 — nullOptionresources[].heightOptionalImage or video height in pixels.
May be null.
resources[].metadataOptionalOpen extension metadata. Keys are operation-specific and may change. Preserve unknown values if forwarding; do not use these keys instead of typed status, billing or resource fields.
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — objectOptionresources[].metadata[key]Each valueKey pattern: ^(.*)$.
Option 2 — nullOptionresources[].retainedUntilOptionalRetention deadline for this stored copy, separate from URL expiry. Null can indicate active subscription protection; check asset status.
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — stringOptionFormat: date-time.
Option 2 — nullOptionresources[].thumbnailUrlOptionalThumbnail access URL when available. Use it as returned; it is not the full media download.
May be null.
resources[].titleOptionalTitle recorded for this output resource, such as a generated song title; null/absent when no title is available.
May be null.
resources[].urlOptionalPresigned/public URL.
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — stringOptionPresigned/public URL.
Option 2 — nullOptionresources[].urlExpiresAtOptionalISO 8601 timestamp when this access URL expires. Refresh the owning resource for a new URL; URL lifetime is separate from retention.
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — stringOptionFormat: date-time.
Option 2 — nullOptionresources[].widthOptionalImage or video width in pixels.
May be null.
application/json
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
errorRequiredStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
application/json
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
errorRequiredStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
application/json
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
errorRequiredStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
application/json
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
errorRequiredStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
Request allowance or task admission capacity exceeded. Follow Retry-After when present; otherwise wait for active tasks and use bounded backoff. Limits do not guarantee throughput. For SSE, this is the HTTP connection response, not an event.
application/json
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
errorRequiredStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
error.codeRequiredRATE_LIMITED for request and task admission rejections.
error.messageRequiredHuman-readable explanation. Wording may change; use the machine-readable code for programmatic decisions.
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details.currentOptionalCurrent count for the rate-limit window identified by policy and scope.
Minimum: 0.
error.details.inFlightOptionalCurrent accepted tasks counted against the relevant account or API-key admission limit.
Minimum: 0.
error.details.limitOptionalMaximum count allowed by this response context. A limit is not a throughput guarantee.
Minimum: 0.
error.details.policyOptionalAllowance bucket: query for resource reads, operation for task-producing or operation requests. See the rate-limit response headers.
error.details.retryAfterSecOptionalSuggested delay in seconds before another request. Honor the Retry-After header when present; use bounded backoff.
Minimum: 1.
error.details.scopeOptionalEntity whose allowance was exceeded, such as the user, API key or IP address.
error.details.tierOptionalAccount allowance tier used for this admission or rate-limit decision.
error.details.typeOptionalAdmission limit that rejected the request: rps (continuously refilled requests-per-second bucket), daily or monthly UTC request budget. Interpret with policy, scope and retryAfterSec.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredWhether this response reports a successful action; false accompanies the structured error object.
Default: false.
application/json
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
errorRequiredStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
application/json
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
errorRequiredStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses