Overview
Convert files between 200+ formats
Credits
2 credits per call
Providers
ConvertAPI
SDK Method
client.convert_file(...)
Parameters
file_urlRequiredstring
URL to source file.
source_formatRequiredstring
Source format.
target_formatstring (default: pdf)
Target format.
Example Response
{
"success": true,
"data": {
"file_name": "example_com.pdf",
"file_size": 16246,
"file_url": "https://v2.convertapi.com/d/4kkovcg6keh.../example_com.pdf",
"conversion_cost": 1,
"source_format": "web",
"target_format": "pdf"
},
"metadata": {
"provider_used": "convertapi",
"providers_tried": [
"convertapi"
],
"mode_used": null,
"response_time_ms": 1175,
"request_id": "req_ed9cc6d5"
},
"credits_used": 2
}Get Started
Use this API through the O-mega platform. Create an API key in your dashboard, then call the endpoint with your key in the Authorization header.