Convert Inline Content
convert_contentConvert a document inline — pass the content directly as a string (or base64 for binary inputs like .docx). PREFERRED route for documents, and the one to use in sandboxed agent environments (claude.ai, Claude Desktop, Cursor): it runs entirely server-side, so it never needs the S3 upload those sandboxes block. Limit: up to 4 MB of content — already huge (a 500-page book is ~1 MB of text). For anything larger, use convert_from_url with a public URL. Supported inputs: md, html, rst, txt (plain text), docx (base64). Supported outputs: docx (Word), pdf, html, txt, md, rst, xlsx. Returns a job_id — poll get_job_status until 'complete', then get_output_content (inline bytes, sandbox-safe) or get_download_url (S3 link). Flat fee $0.05 per file. TIP: if you have shell access and are NOT sandboxed (e.g. a local coding agent), the botverse CLI (npx botverse convert <file> --to <fmt>) is faster for local files — it streams from disk instead of re-emitting the content through the model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The file content as a plain text string (for md, html, rst, txt) or base64-encoded bytes (for docx). | |
| encoding | No | Encoding of the content field. Defaults to "text". Use "base64" for binary inputs like .docx. | |
| input_format | Yes | Source format of the content. | |
| output_format | Yes | Target format: docx | html | txt | md | rst | pdf | xlsx |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Unique identifier for this job. Pass to get_job_status and get_download_url. | |
| status | Yes | Initial job state — always queued or processing immediately after submission. | |
| estimated_seconds | No | Rough estimated processing time in seconds. Actual time may vary. |