Back to APIs

Unified Agent API

File Conversion

File Conversion

Convert files between 200+ formats (PDF, DOCX, XLSX, images).

POST/v1/files/convert200+ formats

Overview

Convert files between 200+ formats

Credits

2 credits per call

Providers

ConvertAPI

SDK Method

client.convert_file(...)

Parameters

file_urlRequired

string

URL to source file.

source_formatRequired

string

Source format.

target_format

string (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.

Try File Conversion

Test File Conversion in the interactive playground. No setup required.

Open Playground
File Conversion API | Unified Agent APIs | suprbrowser