Asset library
Get asset
GET /v1/assets/ — get an asset’s review status
GET
Get one of the account’s assets. When
status is active, the response includes asset_url for use in generation requests.
Authorizations
string
required
Bearer YOUR_API_KEY. Also works when the API key’s quota is exhausted.Request parameters
string
required
Asset ID starting with
ast_ (the id from the upload response).Response
string
Asset ID, starting with
ast_.string
Always
asset.string
The
model sent at upload.string
image, video or audio.string
The label; an empty string if not sent.
string
processing: under reviewactive: approved and referenceablefailed: review failed; upload again
number
Duration of a video or audio asset in seconds, read at upload. Absent for images.
integer
Creation time (Unix seconds).
integer
Last update time (Unix seconds).
string
asset://<asset ID>, returned only when active. Put it as-is into a media field of a generation request.object
Returned only when
failed. message is the failure reason; see Asset library for the values.