REST API

File processing API.

Files must be available to our processing servers through direct HTTP/HTTPS URLs for the duration of the job. For sensitive files, prefer short-lived signed URLs instead of broadly accessible links.

Submitted files or file URLs are processed only to provide the requested conversion. Files are temporary and automatically deleted on a short retention schedule. Systems are designed to enforce deletion within approximately 60 minutes under normal operation. Do not submit sensitive or confidential data.

01

Authenticate

Pass API key via Authorization: Bearer ... or X-API-Key.

02

Send URLs

Use direct HTTP/HTTPS URLs that are available to our processing servers for the duration of the job. Submitted files or file URLs are processed only for the requested conversion. For sensitive files, prefer short-lived signed URLs.

03

Get Download URL

Response includes download_url and token usage details.

API Base Path

https://filemazing.com/api/v1

Endpoints

POST /api/v1/pdf-to-image
POST /api/v1/pdf-to-image/estimate
POST /api/v1/merge-pdf
POST /api/v1/merge-pdf/estimate
POST /api/v1/compress-image
POST /api/v1/compress-image/estimate
POST /api/v1/archive-extractor
POST /api/v1/archive-extractor/estimate
POST /api/v1/audio-converter
POST /api/v1/audio-converter/estimate
POST /api/v1/metadata-scrubber
POST /api/v1/metadata-scrubber/estimate
POST /api/v1/format-converter
POST /api/v1/format-converter/estimate
POST /api/v1/encrypt-file
POST /api/v1/encrypt-file/estimate

Token Estimate (Before Processing)

Call estimate endpoints first to preview token cost and check if user balance is enough before starting processing.

{
  "inputs": ["https://example.com/file.pdf"],
  "promo_code": "SPRING25",
  "response_type": "json"
}
{
  "ok": true,
  "tool": "pdf-to-image",
  "mode": "estimate",
  "estimated_tokens": 3,
  "available_tokens": 42,
  "enough_tokens": true,
  "shortfall_tokens": 0
}

Request/Response Basics

{
  "inputs": ["https://example.com/file.pdf"],
  "output_format": "jpg",
  "response_type": "json",
  "promo_code": ""
}
{
  "ok": true,
  "tool": "pdf-to-image",
  "mode": "sync",
  "status": "completed",
  "download_url": "https://filemazing.com/tool/pdf-to-image/jobs/.../download",
  "estimated_tokens": 1,
  "final_tokens": 1
}

Code Samples (PDF to Image)

curl -X POST "https://filemazing.com/api/v1/pdf-to-image" \
  -H "Authorization: Bearer fm_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": ["https://example.com/file.pdf"],
    "output_format": "jpg",
    "response_type": "json"
  }'

Code Samples (Estimate - PDF to Image)

curl -X POST "https://filemazing.com/api/v1/pdf-to-image/estimate" \
  -H "Authorization: Bearer fm_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": ["https://example.com/file.pdf"],
    "promo_code": "",
    "response_type": "json"
  }'