Skip to main content
GET
TypeScript

인증

Authorization
string
header
필수

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

경로 매개변수

id
string
필수

Media asset ID, prefixed media_.

응답

Media asset retrieved.

amount_charged
number | null
필수

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

예시:

2.5

completed_at
string | null
필수

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

예시:

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

created_at
string
필수

ISO 8601 timestamp when the generation was requested.

예시:

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

currency
string
필수

Currency of amount_charged. Always usd.

예시:

"usd"

error_message
string | null
필수

Why generation failed. null unless status is failed.

예시:

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

file
object | null
필수

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

generation
object
필수

The inputs the asset was generated from.

id
string
필수

Media asset ID, prefixed media_.

예시:

"media_xxxxxxxxxxxxxx"

media_type
enum<string>
필수

The kind of media this asset holds.

사용 가능한 옵션:
video,
image
예시:

"video"

source
enum<string>
필수

How the asset was created. Always generated.

사용 가능한 옵션:
generated
예시:

"generated"

status
enum<string>
필수

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

사용 가능한 옵션:
processing,
ready,
failed
예시:

"ready"