Upload attached files
upload_filesCopy files the user attached in the chat to Revid and get a public cdn.revid.ai URL for each, to use wherever Revid takes a media URL (render_video media and references, generate_media references and frames, create_character, clone_voice). In ChatGPT, use this for attached images, videos and audio rather than create_upload_url. Up to 10 files per call, 200 MB each; call it again for more. Use only the url values it returns. If nothing is attached, ask the user to attach the files or give a public link. Uses no credits.
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": {
"files": "<files>"
},
"name": "upload_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The files the user attached. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| method | Yes | ||
| status | Yes | ||
| endpoint | Yes | ||
| retryAfterSeconds | No |