Create upload URL
create_uploadGet a presigned PUT URL to upload an image, video or audio file directly, plus the public URL it will have. Upload the bytes with HTTP PUT to uploadUrl (same Content-Type), then pass publicUrl to a generation call or the returned key as an r2Key (transcribe_media, create_voice_clone samples, voice_enhance). Prefer import_asset_from_url when you already have a URL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"contentType": "<contentType>"
},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| contentType | Yes | MIME type, e.g. image/png, video/mp4 or audio/mpeg |