Skip to main content
GET
TypeScript

Autorizaciones

Authorization
string
header
requerido

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

media:read

Parámetros de ruta

id
string
requerido

Media asset ID, prefixed media_.

Respuesta

Media asset retrieved.

amount_charged
number | null
requerido

USD amount charged to the account's balance for this generation. null if the generation wasn't billed.

Ejemplo:

2.5

completed_at
string | null
requerido

ISO 8601 timestamp when the asset reached a terminal state. null while processing.

Ejemplo:

"2026-01-01T12:00:00.000Z"

created_at
string
requerido

ISO 8601 timestamp when the generation was requested.

Ejemplo:

"2026-01-01T12:00:00.000Z"

currency
string
requerido

Currency of amount_charged. Always usd.

Ejemplo:

"usd"

error_message
string | null
requerido

Why generation failed. null unless status is failed.

Ejemplo:

"The generation provider rejected the prompt. The charge was refunded."

file
object | null
requerido

The produced file, usable anywhere attachments are accepted. null until the asset is ready.

generation
object
requerido

The inputs the asset was generated from.

id
string
requerido

Media asset ID, prefixed media_.

Ejemplo:

"media_xxxxxxxxxxxxxx"

media_type
enum<string>
requerido

The kind of media this asset holds.

Opciones disponibles:
video,
image
Ejemplo:

"video"

source
enum<string>
requerido

How the asset was created. Always generated.

Opciones disponibles:
generated
Ejemplo:

"generated"

status
enum<string>
requerido

Lifecycle state: processing while generation runs, ready when the file is available, failed when generation failed and the charge was refunded.

Opciones disponibles:
processing,
ready,
failed
Ejemplo:

"ready"