Ir para a navegação

List Generations

List your organization’s generations. Filter by status, id, source or project, and set limit to page through them newest first.

Autenticação

x-api-keystring
Autenticação de chave de API via cabeçalho

Parâmetros de consulta

statuslist of enumsOpcional

Filter generations by status. Accepts multiple statuses as a comma-separated list.

idslist of stringsOpcional

Filter generations by ID. Accepts multiple IDs as a comma-separated list.

sourcelist of stringsOpcional

Filter generations by source. Accepts multiple sources as a comma-separated list.

projectIdstringOpcional
Return only generations in this project. Must be a UUID. A project you can't access returns an empty list.
limitintegerOpcional

Maximum number of generations to return (1-100). When set, results are ordered newest first and can be paged with cursor.

cursorstringOpcional

ID of the last generation on the previous page. Requires limit.

Resposta

Generations retrieved successfully
createdAtdatetime
The date and time the generation was created.
idstring
A unique identifier for the generation.
inputlist of objects
An array of input objects used for generation.
modelenum
The name of the model used for generation.
Valores permitidos:
statusenum
The status of the generation.
errorstringOpcional

The error message if the generation failed, was rejected or lip-synced nothing (NO_OP).

errorCodestringOpcional

Stable, machine-readable error code if the generation failed, was rejected or lip-synced nothing (NO_OP) (e.g. generation_input_video_inaccessible). The full catalog of codes, messages and suggested fixes is served unauthenticated at GET /v2/errors.

optionsobjectOpcional
Options for the generation.
outputDurationdoubleOpcional
The duration of the output media.
outputUrlstringOpcional
The URL of the output media.
outputFileNamestringOpcional
The sanitized filename applied to the output media. Characters outside letters, numbers, dashes and underscores are stripped and spaces become underscores, so this can differ from the value submitted. Null when no name was provided.
segmentslist of objectsOpcional
The segments of the generation.
segmentOutputUrlstringOpcional
The URL of the segment output media.
dubAudioUrlstring or nullOpcional

Dubbed audio URL. Omitted for generations without dubParams; null until the dubbed track is available.

dubAudioAssetIdstring or nullOpcional

Reusable AUDIO asset for the dubbed track. Omitted without dubParams; null until available, or when retention settings or a custom output bucket prevent saving an asset.

synthesizedAudioUrlstringOpcional

The URL of the audio synthesized from a text (TTS) input. Only present for generations created with a TTS text input; reuse it as an audio input to keep the same take across generations.

webhookUrlstringOpcional
The URL to the webhook endpoint.
projectIdstringOpcional
The id of the project this generation is attached to, or null when it belongs to no project. Set via the projectId field on the create request.
generationEstimateobjectOpcional

Finish-time estimate recorded when the generation was accepted. Only set for generations made in sync’s own apps, such as Studio. For any generation, request include=progress and read progress.estimatedFinishAt.

progressobjectOpcional

Render progress and expected finish. Only included when the generation is requested with include=progress.

Erros

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error