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
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | Valid payment ID (must be paid) | |
| fileBase64 | No | Base64-encoded file content (provide this OR fileUrl) | |
| fileUrl | No | Public URL to the file (provide this OR fileBase64) | |
| extensionFrom | Yes | Source format extension without dot (e.g., 'pdf', 'docx', 'png') | |
| extensionTo | Yes | Target format extension without dot (e.g., 'pdf', 'docx', 'png') |