prepare_media_upload
Prepares a signed upload URL for a local file. Upload the file bytes to that URL, then use the returned media asset ID to generate a 3D world.
Instructions
Prepare a signed GCS upload URL for a local file.
After calling this, PUT the raw file bytes to upload_info.upload_url with the returned upload_info.headers, then pass media_asset.id to generate_world_from_media_asset. For a simpler flow, use upload_and_generate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | Original filename (e.g. 'photo.jpg'). | |
| kind | Yes | 'image' or 'video'. | |
| extension | Yes | File extension without dot (e.g. 'jpg', 'mp4'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||