Converting API

Overview

The Pixahunt Converting API allows you to convert images into multiple formats (e.g., JPG, PNG, WEBP, GIF, PDF) seamlessly. Similar to CloudConvert, you create a conversion job and wait for the output.

Authentication

To use the Converting API, you must authenticate using your User ID and a Secret Code. Without these credentials, the API will not work.

Authorization: Bearer {USER_ID}:{SECRET_CODE}

Note: Rate limits will apply based on your developer subscription tier.

Create a Conversion Task

Endpoint: POST /api/v1/convert

Request Body (JSON)

{
    "input_format": "jpg",
    "output_format": "png",
    "file_url": "https://example.com/image.jpg",
    "options": {
        "width": 800,
        "height": 600,
        "quality": 90
    }
}

Response

{
    "task_id": "c7b5a1-432d-9876",
    "status": "processing",
    "check_url": "https://api.pixahunt.com/v1/tasks/c7b5a1-432d-9876"
}