upload_reference_media
Prepare an external direct HTTPS MP4/MOV or WAV/MP3 reference for generate_video. Select modelId/tier from list_models. Returns mediaUrl and measured duration.
Instructions
Prepare an external direct HTTPS MP4/MOV or WAV/MP3 reference for generate_video. Select modelId/tier from list_models. Returns mediaUrl and measured duration. Public links are scheduled for cleanup seven days after upload; reuse on retries, not for permanent hosting. Does not generate or spend credits; requires positive purchased credits. This local compatibility path uses an existing API key; new connections use remote OAuth. Local files can be passed directly to generate_video.
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": {
"kind": "<kind>",
"modelId": "<modelId>",
"sourceUrl": "<sourceUrl>"
},
"name": "upload_reference_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| tier | No | ||
| modelId | Yes | ||
| sourceUrl | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| kind | No | ||
| bytes | No | ||
| error | No | ||
| success | Yes | ||
| mediaUrl | No | ||
| mimeType | No | ||
| nextAction | No | ||
| retentionDays | No | ||
| durationSeconds | No | ||
| retryAfterSeconds | No | ||
| publiclyAccessible | No |