Skip to main content
Create a World Labs media asset record and receive an upload URL for an image or video. Upload the binary file to upload_info.upload_url, then reference the returned media_asset.media_asset_id from world_prompt with source: "media_asset". AI Sonar records the asset owner. Only the same organization can retrieve or use this media asset in world generation.

Request Body

string
required
Original file name, up to 64 characters.
string
required
Media type: image or video.
string
Optional extension such as png, jpg, or mp4.
object
Optional metadata stored with the media asset.

Response

object
Prepared World Labs media asset metadata.
string
Signed URL where the binary file should be uploaded.