convert_file
Get a purchase quote for a supported file conversion. Inspect the returned flow: payment_first quotes run no conversion; execution follows confirmed payment, and failed conversions are refunded. Legacy purchases retain their original contract. Save a random purchase_id and recovery_key before calling; repeat the same identifiers after response loss. Simple conversion 0.01 USDC, DOCX/OCR 0.02 USDC up to three pages confirmed by the engine. Payment requires a separately authorized HTTP x402 client. A completed file remains available for 24 hours; recover it without paying again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"purchase_id": "<purchase_id>",
"recovery_key": "<recovery_key>",
"inputs": "<inputs>",
"output_format": "<output_format>"
},
"name": "convert_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | ||
| options | No | ||
| purchase_id | Yes | ||
| recovery_key | Yes | ||
| output_format | Yes |