Create input upload URL
create_upload_urlGet a signed URL to PUT one local image, video or audio file (up to 25 MiB). Upload is free, but requires a positive balance. After PUT succeeds, use publicUrl as a generation input. The upload URL expires in 10 minutes; at most 20 URLs per minute per user.
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": {
"contentLength": "<contentLength>",
"contentType": "<contentType>"
},
"name": "create_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentType | Yes | MIME type of the input file. | |
| contentLength | Yes | Exact file size in bytes. The upload must have this size. |