cURL
curl --request GET \ --url https://api.rendernet.ai/pub/v1/generations/media/{media_id} \ --header 'X-API-KEY: <x-api-key>'
{ "data": { "id": "media_01", "dim": { "height": 512, "width": 512 }, "type": "image", "status": "success", "url": "object-url" }, "err": {} }
The get media endpoint lets users fetch the details for a particular generated media using its id.
API key needed to access our public endpoints. You can find yours under the 'Account' section of the website
The id of the media
Details of a media generation.
Show child attributes
"media_01"
The height of the media
512
The width of the media
The type of the media
image
video
"image"
The status of the media
pending
success
failed
"success"
The url of the media. In case of success, contains the media url. In case of failed, it is empty. In case of pending, this field will not be sent.
"object-url"
The error if the request was not successful
Was this page helpful?