Botverse Transcode

Convert video and audio between formats. Submit a job, poll for completion, get a download URL.

MCP endpoint
https://botverse.cloud/mcp
Auth
X-API-Key header
Max upload size
2 GB
Inline content
4 MB
Starting price
$0.25/job (5 min included), +$0.08/min after

Input formats

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):

FormatExtensioncontent_typeNotes
MP4.mp4video/mp4H.264 or H.265 source — most common
QuickTime.movvideo/quicktimeApple devices, Final Cut, camera raw
MKV.mkvvideo/x-matroskaOpen container, any codec
WebM.webmvideo/webmVP8/VP9 source
AVI.avivideo/x-msvideoLegacy Windows format
M4V.m4vvideo/x-m4vApple/iTunes video
WMV.wmvapplication/octet-streamWindows Media Video — input only, not royalty-free to output
WMA.wmaapplication/octet-streamWindows Media Audio — input only, not royalty-free to output
MP3.mp3audio/mpegAudio source
M4A / AAC.m4aaudio/mp4Audio source (use application/octet-stream for raw .aac)
WAV.wavapplication/octet-streamUncompressed audio
MXF.mxfapplication/octet-streamBroadcast/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 formats

output_formatContainerCodecUse caseStatus
mp4MP4H.264 — Main profileWeb delivery, broad device compatibilityLive
mp4MP4H.264 — Baseline profileMobile, streaming, legacy hardware (options.h264_profile: 'baseline')Live
mp4MP4H.264 — High profileMaximum quality, modern devices (options.h264_profile: 'high')Live
webmWebMVP9Web video, Chrome/Firefox nativeLive
mov_proresMOVProRes 422Post-production, colour grading, editorialLive
mp3MP3MP3Audio-only extraction from videoLive
gifGIFPalette-optimisedShort loops, social media previewsLive
mp4_h265MP4H.265 (libx265)Smaller files, streaming, modern devicesComing 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.

Tools

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
NameTypeReqDescription
source_urlstringyesPublic 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_formatstringyesOne of: mp4, webm, mov_prores, mp3, gif.
optionsobjectnoOptional encoding parameters. Same fields as transcode_video. Key option for mp4: h264_profile ('baseline' | 'main' | 'high').
Response fields
FieldTypeDescription
job_idstringUnique job identifier. Poll get_job_status with this.
statusstring"pending" on success.
source_urlstringThe resolved source URL.
estimated_cost_usdnumberCost estimate at submit time (the base price when the duration isn't known yet).
held_usdnumberAmount held from your wallet until the job finishes.
messagestringHuman-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
NameTypeReqDescription
filenamestringyesOriginal filename including extension. Used to set the object key suffix.
content_typestringyesMIME type, e.g. "video/mp4". Use "application/octet-stream" for formats not in the table above.
Response fields
FieldTypeDescription
upload_urlstringPresigned POST URL. Expires in 15 minutes.
upload_fieldsobjectForm fields to include, before the file, in the multipart POST.
object_keystringObject key. Pass this to transcode_video.
expires_innumberSeconds 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
NameTypeReqDescription
object_keystringyesObject key from get_upload_url.
output_formatstringyesOne of: mp4, webm, mov_prores, mp3, gif.
options.h264_profilestringnoH.264 profile for mp4 output: 'baseline' (max compatibility — mobile, streaming, legacy hardware), 'main' (balanced, default), 'high' (best quality, modern devices).
options.start_timestringnoTrim start position, e.g. '00:01:30' or '90' seconds.
options.durationnumbernoEncode only N seconds after start_time.
options.width / heightnumbernoResize output. Single dimension scales proportionally.
options.bitratestringnoVideo bitrate override, e.g. '2M'.
options.frameratenumbernoOutput frame rate, e.g. 24 or 30.
options.audio_bitratestringnoAudio bitrate, e.g. '128k'.
Response fields
FieldTypeDescription
job_idstringUnique job identifier. Use for polling and download.
statusstring"pending" on success.
estimated_cost_usdnumberCost estimate at submit time.
cost_notestringPresent when the estimate is a minimum (duration not known yet).
held_usdnumberAmount 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
NameTypeReqDescription
contentstringyesBase64-encoded video or audio bytes.
input_formatstringyesmp4 | mov | webm | avi | mkv | m4v
output_formatstringyesOne of: mp4, webm, mov_prores, mp3, gif.
encodingstringyesMust be "base64".
optionsobjectnowidth, height, bitrate, framerate, audio_bitrate, start_time, duration.
Response fields
FieldTypeDescription
job_idstringPoll get_job_status with this.
statusstring"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
NameTypeReqDescription
frame_urlsarrayyesPublic HTTPS URLs of the frames, in playback order.
output_formatstringyesmp4 | webm | gif
options.frameratenumbernoFrames per second. Default 24.
options.width / heightnumbernoResize output.
options.bitratestringnoVideo bitrate, e.g. '2M'.
Response fields
FieldTypeDescription
job_idstringPoll get_job_status with this.
statusstring"pending" on success.
framesnumberNumber of frames accepted.
estimated_cost_usdnumberCost 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
NameTypeReqDescription
job_idstringyesJob ID from transcode_video response.
Response fields
FieldTypeDescription
job_idstringThe job ID.
statusstring"pending" | "processing" | "complete" | "failed".
output_formatstringThe requested output format.
source_resolutionstringe.g. 2880x1704
source_durationnumberSource video duration in seconds.
job_costnumberCost in USD. Present only when complete.
errorstringError message. Present only when failed.
created_atstringISO 8601 timestamp.
completed_atstringISO 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
NameTypeReqDescription
job_idstringyesJob ID from any transcode tool.
Response fields
FieldTypeDescription
download_urlstringPresigned download URL. Expires in 24 hours.
expires_innumberSeconds until the URL expires (86400).
job_idstringThe 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
NameTypeReqDescription
job_idstringyesJob ID of a completed job.
Response fields
FieldTypeDescription
content_base64stringOutput bytes, base64-encoded.
mimestringMIME type of the output.
formatstringOutput file extension.
size_bytesnumberDecoded 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
FieldTypeDescription
balance_usdnumberBalance free to spend now, in USD (holds already taken out).
held_usdnumberAmount held for jobs still running.
jobs_in_progressnumberJobs currently holding funds (limit 2 on trial credit, 10 after a top-up).
auto_refill_enabledbooleanWhether automatic top-up is on.
refill_threshold_usdnumberBalance that triggers a refill, if enabled.
refill_amount_usdnumberAmount added on each refill, if enabled.

Which workflow to use

SituationRecommended 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 videoassemble_sequence
Running inside a sandboxed chat — the direct upload is network-blockedtranscode_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.