Retrieve Media Asset
Changed onRetrieves a media asset by ID. Poll this while the asset is processing.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
Media asset ID, prefixed media_.
Response
Media asset retrieved.
USD amount charged to the account's balance for this generation. null if the generation wasn't billed.
ISO 8601 timestamp when the asset reached a terminal state. null while processing.
ISO 8601 timestamp when the generation was requested.
Currency of amount_charged. Always usd.
Why generation failed. null unless status is failed.
The inputs the asset was generated from.
Media asset ID, prefixed media_.
The kind of media this asset holds.
How the asset was created. Always generated.
Lifecycle state: processing while generation runs, ready when the file is available, failed when generation failed and the charge was refunded.
Example response
{
"amount_charged": 2.5,
"completed_at": "2026-01-01T12:00:00.000Z",
"created_at": "2026-01-01T12:00:00.000Z",
"currency": "usd",
"error_message": "The generation provider rejected the prompt. The charge was refunded.",
"file": {
"id": "file_xxxxxxxxxxxxxx",
"url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"generation": {
"duration_seconds": 5,
"prompt": "A 9:16 product showcase of a cordless power scrubber",
"reference_media": [
"file_xxxxxxxxxxxxxx"
],
"resolution": "1080p"
},
"id": "media_xxxxxxxxxxxxxx",
"media_type": "video",
"source": "generated",
"status": "ready"
}Changes
- info
added the required property
generation/ad_videoto the response with the status
- info
- info
added the optional property
error/codeto the response with the status
- info