Skip to main content
Glama

convert_file

Convert files between formats including documents, images, audio, and video using Bitcoin micropayments. Supports 200+ format conversions with base64 or URL file input.

Instructions

Convert a file from one format to another. Supports 200+ formats: documents (PDF, DOCX, XLSX), images (PNG, JPG, WEBP, SVG), audio (MP3, WAV, FLAC), video (MP4, AVI, MOV), and more. Costs 100 sats. Provide the file as base64 or a public URL (prefer fileUrl for files >5MB). Requires a valid paid payment ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paymentIdYesValid payment ID (must be paid)
fileBase64NoBase64-encoded file content (provide this OR fileUrl)
fileUrlNoPublic URL to the file (provide this OR fileBase64)
extensionFromYesSource format extension without dot (e.g., 'pdf', 'docx', 'png')
extensionToYesTarget format extension without dot (e.g., 'pdf', 'docx', 'png')

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cnghockey/sats4ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server