a84d4905fdbb
latestOpenAPI 3.1.02026-08-143874115.7 MBMedia
Retrieve Media Asset
Retrieves a media asset by ID. Poll this while the asset is processing.
get/media/{id}
Path parameters
idstring required
Media asset ID, prefixed media_.
Response
Media asset retrieved.
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://assets-2-rough.whop.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"
}