Endpoint: POST /v1/convert
Convert files synchronously or asynchronously via multipart/form-data upload.
Request Parameters (Multipart Form-Data)
| Field | Type | Required | Description |
|---|---|---|---|
| file | binary | required | The source file to convert (up to 2GB on Pro tier). |
| target_format | string | required | Target format identifier (e.g. pdf, webp, mp3, stl). |
| webhook_url | string | optional | HTTPS URL for asynchronous completion postback with HMAC verification. |
| options | json | optional | Format-specific encoding options (e.g. {"quality": 90, "lossless": true}). |
{
"id": "job_4920",
"status": "completed",
"target_format": "webp",
"output_url": "https://api.openfileconverter.com/v1/download/job_4920.webp",
"duration_ms": 28,
"engine": "rust-wasm-simd",
"bytes_processed": 1248010,
"savings_percentage": 78.4
}