Live
Botverse Transcode
Convert video and audio between formats. Submit a job, poll for completion, get a download URL.
MCP endpoint
https://botverse.cloud/mcp
Starting price
$0.25/job (5 min included), +$0.08/min after
Botverse accepts a wide range of video and audio input formats. Common inputs and the content_type to pass to get_upload_url (transcode_from_url needs no content type):
| Format | Extension | content_type | Notes |
|---|
| MP4 | .mp4 | video/mp4 | H.264 or H.265 source — most common |
| QuickTime | .mov | video/quicktime | Apple devices, Final Cut, camera raw |
| MKV | .mkv | video/x-matroska | Open container, any codec |
| WebM | .webm | video/webm | VP8/VP9 source |
| AVI | .avi | video/x-msvideo | Legacy Windows format |
| M4V | .m4v | video/x-m4v | Apple/iTunes video |
| WMV | .wmv | application/octet-stream | Windows Media Video — input only, not royalty-free to output |
| WMA | .wma | application/octet-stream | Windows Media Audio — input only, not royalty-free to output |
| MP3 | .mp3 | audio/mpeg | Audio source |
| M4A / AAC | .m4a | audio/mp4 | Audio source (use application/octet-stream for raw .aac) |
| WAV | .wav | application/octet-stream | Uncompressed audio |
| MXF | .mxf | application/octet-stream | Broadcast/professional camera formats |
ℹget_upload_url accepts a fixed list of content types. For anything else, passapplication/octet-stream— Botverse detects the codec when the job starts. The job fails with a clear error (and its hold is refunded) if the format isn't supported.
| output_format | Container | Codec | Use case | Status |
|---|
| mp4 | MP4 | H.264 — Main profile | Web delivery, broad device compatibility | Live |
| mp4 | MP4 | H.264 — Baseline profile | Mobile, streaming, legacy hardware (options.h264_profile: 'baseline') | Live |
| mp4 | MP4 | H.264 — High profile | Maximum quality, modern devices (options.h264_profile: 'high') | Live |
| webm | WebM | VP9 | Web video, Chrome/Firefox native | Live |
| mov_prores | MOV | ProRes 422 | Post-production, colour grading, editorial | Live |
| mp3 | MP3 | MP3 | Audio-only extraction from video | Live |
| gif | GIF | Palette-optimised | Short loops, social media previews | Live |
| mp4_h265 | MP4 | H.265 (libx265) | Smaller files, streaming, modern devices | Coming soon |
⚠ProRes 422 output generates large files. ProRes 422 encodes at ~229 Mbps for 1080p — about 1.7 GB per minute of source. This is expected (ProRes is a near-lossless intermediate codec), but confirm your downstream storage can handle the size before submitting batch jobs. Output is capped at 10 GB, so a 1080p source longer than about 6 minutes is rejected at submit; use the duration option to trim to a safe segment.
Validation
Botverse checks the request when you submit it (format, options, URL safety, wallet balance) and returns an error straight away if anything is wrong — nothing is charged. The source file itself is probed when the job starts; if it fails there, the job ends as failed and its hold is refunded in full.
Jobs fail validation if:
- A smaller source runs longer than 10 minutes and isn't trimmed with
options.duration (large files and ProRes jobs run on a long-job tier with no duration cap) - An upload exceeds 2 GB
- No valid video stream is detected (unless output format is
mp3) - File appears corrupted or unreadable
- Codec is not in the supported set (very rare with common formats)
✓Once the source is probed, get_job_status reports source_resolution and source_duration— useful for your agent to report back to the user.
transcode_from_url
Fetch a video or audio file from a public HTTPS URL and submit it as a transcode job — no separate upload step required. The Botverse backend fetches the file server-side and queues the job immediately. Use this when the source file is already accessible online (CDN, S3 public URL, or a Dropbox, Google Drive, OneDrive, SharePoint or Box share link, which resolve automatically). Limited to 2 GB.
Parameters
| Name | Type | Req | Description |
|---|
| source_url | string | yes | Public HTTPS URL of the source file: a direct download link or a supported cloud share link. Private/internal hosts (localhost, 192.168.x.x, cloud metadata endpoints) are rejected. |
| output_format | string | yes | One of: mp4, webm, mov_prores, mp3, gif. |
| options | object | no | Optional encoding parameters. Same fields as transcode_video. Key option for mp4: h264_profile ('baseline' | 'main' | 'high'). |
Response fields
| Field | Type | Description |
|---|
| job_id | string | Unique job identifier. Poll get_job_status with this. |
| status | string | "pending" on success. |
| source_url | string | The resolved source URL. |
| estimated_cost_usd | number | Cost estimate at submit time (the base price when the duration isn't known yet). |
| held_usd | number | Amount held from your wallet until the job finishes. |
| message | string | Human-readable status message. |
get_upload_url
Get a presigned upload form for a source file. It expires in 15 minutes. This is a presigned POST, not a PUT: send multipart/form-data to upload_url with every upload_fields key/value first, then the file as the last field named 'file'. Uploads are limited to 2 GB. Sandboxed chat environments often block this upload; use transcode_from_url or transcode_content there.
Parameters
| Name | Type | Req | Description |
|---|
| filename | string | yes | Original filename including extension. Used to set the object key suffix. |
| content_type | string | yes | MIME type, e.g. "video/mp4". Use "application/octet-stream" for formats not in the table above. |
Response fields
| Field | Type | Description |
|---|
| upload_url | string | Presigned POST URL. Expires in 15 minutes. |
| upload_fields | object | Form fields to include, before the file, in the multipart POST. |
| object_key | string | Object key. Pass this to transcode_video. |
| expires_in | number | Seconds until the form expires (900). |
transcode_video
Submit a transcode job for an uploaded file. Returns immediately with a job_id. Poll get_job_status until status is 'complete' or 'failed'.
Parameters
| Name | Type | Req | Description |
|---|
| object_key | string | yes | Object key from get_upload_url. |
| output_format | string | yes | One of: mp4, webm, mov_prores, mp3, gif. |
| options.h264_profile | string | no | H.264 profile for mp4 output: 'baseline' (max compatibility — mobile, streaming, legacy hardware), 'main' (balanced, default), 'high' (best quality, modern devices). |
| options.start_time | string | no | Trim start position, e.g. '00:01:30' or '90' seconds. |
| options.duration | number | no | Encode only N seconds after start_time. |
| options.width / height | number | no | Resize output. Single dimension scales proportionally. |
| options.bitrate | string | no | Video bitrate override, e.g. '2M'. |
| options.framerate | number | no | Output frame rate, e.g. 24 or 30. |
| options.audio_bitrate | string | no | Audio bitrate, e.g. '128k'. |
Response fields
| Field | Type | Description |
|---|
| job_id | string | Unique job identifier. Use for polling and download. |
| status | string | "pending" on success. |
| estimated_cost_usd | number | Cost estimate at submit time. |
| cost_note | string | Present when the estimate is a minimum (duration not known yet). |
| held_usd | number | Amount held from your wallet until the job finishes. |
transcode_content
Transcode a short clip passed inline as base64 — no upload step. Suited to sandboxed agent environments that can't make their own uploads. The whole request body must stay under 4 MB; for larger files use transcode_from_url or get_upload_url + transcode_video.
Parameters
| Name | Type | Req | Description |
|---|
| content | string | yes | Base64-encoded video or audio bytes. |
| input_format | string | yes | mp4 | mov | webm | avi | mkv | m4v |
| output_format | string | yes | One of: mp4, webm, mov_prores, mp3, gif. |
| encoding | string | yes | Must be "base64". |
| options | object | no | width, height, bitrate, framerate, audio_bitrate, start_time, duration. |
Response fields
| Field | Type | Description |
|---|
| job_id | string | Poll get_job_status with this. |
| status | string | "pending" on success. |
assemble_sequence
Assemble an ordered list of image frames (PNG or JPG, as public HTTPS URLs) into a video — the render-frames-to-movie step. No audio track. Up to 3,000 frames per job. Priced at $0.15 base, plus $0.08/min of output past 5 minutes.
Parameters
| Name | Type | Req | Description |
|---|
| frame_urls | array | yes | Public HTTPS URLs of the frames, in playback order. |
| output_format | string | yes | mp4 | webm | gif |
| options.framerate | number | no | Frames per second. Default 24. |
| options.width / height | number | no | Resize output. |
| options.bitrate | string | no | Video bitrate, e.g. '2M'. |
Response fields
| Field | Type | Description |
|---|
| job_id | string | Poll get_job_status with this. |
| status | string | "pending" on success. |
| frames | number | Number of frames accepted. |
| estimated_cost_usd | number | Cost estimate from frame count and framerate. |
get_job_status
Poll the status of a job. Call every 5 seconds until status is 'complete' or 'failed'. Large files can take 5–15 minutes or more — keep polling until a terminal status.
Parameters
| Name | Type | Req | Description |
|---|
| job_id | string | yes | Job ID from transcode_video response. |
Response fields
| Field | Type | Description |
|---|
| job_id | string | The job ID. |
| status | string | "pending" | "processing" | "complete" | "failed". |
| output_format | string | The requested output format. |
| source_resolution | string | e.g. 2880x1704 |
| source_duration | number | Source video duration in seconds. |
| job_cost | number | Cost in USD. Present only when complete. |
| error | string | Error message. Present only when failed. |
| created_at | string | ISO 8601 timestamp. |
| completed_at | string | ISO 8601 timestamp. Present only when complete. |
get_download_url
Get a presigned URL to download the transcoded file. The URL expires in 24 hours; output files are deleted 7 days after creation. Call this after get_job_status returns 'complete'. Sandboxed chat environments often block this download; use get_output_content there.
Parameters
| Name | Type | Req | Description |
|---|
| job_id | string | yes | Job ID from any transcode tool. |
Response fields
| Field | Type | Description |
|---|
| download_url | string | Presigned download URL. Expires in 24 hours. |
| expires_in | number | Seconds until the URL expires (86400). |
| job_id | string | The job ID. |
get_output_content
Return a completed job's output inline as base64, over the same tool channel — no separate download. Use it in sandboxed agent environments. Outputs up to 4 MB; use get_download_url for larger files.
Parameters
| Name | Type | Req | Description |
|---|
| job_id | string | yes | Job ID of a completed job. |
Response fields
| Field | Type | Description |
|---|
| content_base64 | string | Output bytes, base64-encoded. |
| mime | string | MIME type of the output. |
| format | string | Output file extension. |
| size_bytes | number | Decoded size in bytes. |
get_wallet_balance
Check the current wallet balance and auto-refill settings for your account. Callable by bots — no dashboard login needed.
Response fields
| Field | Type | Description |
|---|
| balance_usd | number | Balance free to spend now, in USD (holds already taken out). |
| held_usd | number | Amount held for jobs still running. |
| jobs_in_progress | number | Jobs currently holding funds (limit 2 on trial credit, 10 after a top-up). |
| auto_refill_enabled | boolean | Whether automatic top-up is on. |
| refill_threshold_usd | number | Balance that triggers a refill, if enabled. |
| refill_amount_usd | number | Amount added on each refill, if enabled. |
| Situation | Recommended tool |
|---|
| File is on a public URL (CDN, Dropbox, Google Drive, S3 public link) | transcode_from_url — one call, no upload step |
| File is on the user's machine and the agent can upload it (up to 2 GB) | get_upload_url → POST → transcode_video |
| Short clip already in memory (request under 4 MB) | transcode_content — inline base64, no upload |
| Ordered image frames to turn into a video | assemble_sequence |
| Running inside a sandboxed chat — the direct upload is network-blocked | transcode_from_url or transcode_content; get_output_content for the result |
Example — transcode from URL
Use transcode_from_url when the source file is already hosted online. Botverse fetches it server-side — no upload step needed.
Step 1 — submit the job
Agent calls transcode_from_url
// Agent calls:
{
"name": "transcode_from_url",
"arguments": {
"source_url": "https://cdn.example.com/footage/interview-raw.mp4",
"output_format": "webm"
}
}
// Botverse returns:
{
"job_id": "job_3e8c4a12",
"status": "pending",
"source_url": "https://cdn.example.com/footage/interview-raw.mp4",
"estimated_cost_usd": 0.25,
"held_usd": 0.25,
"message": "Job queued. Poll get_job_status with job_id."
}Step 2 — poll for completion
Agent polls get_job_status every 5 seconds
{
"job_id": "job_3e8c4a12",
"status": "complete",
"source_duration": 187.4,
"source_resolution": "3840x2160",
"job_cost": 0.25,
"completed_at": "2026-05-20T10:14:38Z"
}Step 3 — get download URL
Agent calls get_download_url
{ "name": "get_download_url", "arguments": { "job_id": "job_3e8c4a12" } }
// Returns:
{
"download_url": "https://…/outputs/…?signature=…",
"expires_in": 86400,
"job_id": "job_3e8c4a12"
}⚠source_urlmust be a direct download link or a share link from Dropbox, Google Drive, OneDrive, SharePoint or Box — share links are resolved to the file automatically. A plain webpage URL won't work. Private networks, localhost, and cloud metadata endpoints (169.254.169.254) are blocked.
Full example — upload and transcode
Use this flow when your agent has the file locally (up to 2 GB). The agent calls each tool in sequence, passing the output of one call as the input to the next.
Step 1 — get an upload URL
Agent calls get_upload_url
// Agent calls:
{ "name": "get_upload_url", "arguments": { "filename": "keynote-march.mp4", "content_type": "video/mp4" } }
// Botverse returns:
{
"upload_url": "https://…",
"upload_fields": { "key": "inputs/…/keynote-march.mp4", "Content-Type": "video/mp4", "…": "…" },
"object_key": "inputs/…/keynote-march.mp4",
"expires_in": 900
}Step 2 — upload the file
multipart POST to the presigned URL
# every upload_fields entry first, then the file as "file"
curl -X POST "$UPLOAD_URL" \
-F "key=inputs/…/keynote-march.mp4" \
-F "Content-Type=video/mp4" \
-F "…=…" \
-F "file=@keynote-march.mp4"
# Response: 204 No Content
Step 3 — submit the transcode job
Agent calls transcode_video
// Agent calls:
{
"name": "transcode_video",
"arguments": {
"object_key": "inputs/…/keynote-march.mp4",
"output_format": "webm"
}
}
// Botverse returns (job queued):
{
"job_id": "job_7f3a1b9c",
"status": "pending",
"estimated_cost_usd": 0.25,
"cost_note": "Minimum charge. $0.08/min applies for sources over 5 minutes.",
"held_usd": 1.00
}Step 4 — poll for completion
Agent polls get_job_status every 5 seconds
// After ~45 seconds of polling:
{
"job_id": "job_7f3a1b9c",
"status": "complete",
"output_format": "webm",
"source_resolution": "1920x1080",
"source_duration": 342.7,
"job_cost": 0.31,
"created_at": "2026-05-16T14:22:10Z",
"completed_at": "2026-05-16T14:23:02Z"
}Step 5 — get download URL
Agent calls get_download_url
// Agent calls:
{ "name": "get_download_url", "arguments": { "job_id": "job_7f3a1b9c" } }
// Botverse returns:
{
"download_url": "https://…/outputs/…?signature=…",
"expires_in": 86400,
"job_id": "job_7f3a1b9c"
}✓The agent can pass the download URL directly to the user, or use it as input to the next step in a multi-service pipeline. See the
Workflows guide for how to chain Botverse services.