Upload media
upload_mediaGet somewhere to upload the user's own image, video or audio files, so they can be used as frames or references in generate_video / generate_image (which take public https URLs). With files: one presigned PUT URL per file (valid an hour) — PUT the bytes with exactly the declared Content-Type and length (e.g. curl -T file -H "Content-Type: …" ""), then use its url. Always also returns a POST endpoint and ticket (valid 30 minutes) for when the size is not known: POST the raw bytes with "Authorization: Bearer ", "Content-Type" and optionally "X-File-Name"; the answer's url is the file. Limits: images 20 MB, video 100 MB, audio 50 MB. Only for clients that can send local files (Codex, Claude Code, Cursor, scripts); a file already at a public https URL needs no upload. Never spends credits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No |