ChangeThisFile Conversions API
Synchronous and asynchronous file conversions.
Synchronous and asynchronous file conversions.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/changethisfile-com:changethisfile-com-conversions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ChangeThisFile Conversions API
summary: The conversion API for AI builders.
description: 'The ChangeThisFile API provides a single, predictable HTTP surface covering 1,000+ supported conversion routes across images, video, audio, documents, spreadsheets, ebooks, archives, and fonts.
Built for AI builders, automation pipelines, and back-office workflows that need flat, predictable pricing and broad format coverage.
## Authentication
All requests to `/v1/*` (except `/v1/keys/free`) require an API key passed as a bearer token:
```
Authorization: Bearer ctf_sk_xxxxxxxxxxxx
```
Request a free API key by calling `POST /v1/keys/free` with an email address and following the verification link. The free developer tier includes 25 conversions per month shared across REST and authenticated MCP, with a 25 MB file size cap.
## Synchronous vs asynchronous
`POST /v1/convert` is synchronous up to the active plan''s file-size limit and returns the converted file inline. Use `POST /v1/jobs` when you need asynchronous processing.
`POST /v1/jobs` always queues a job and returns a `job_id` immediately, regardless of file size. Use this when you want predictable async behaviour.
## Rate limits
Every response includes the standard rate-limit headers so you can throttle clients in real time:
| Header | Description |
|---|---|
| `X-RateLimit-Limit` | Requests permitted in the current window |
| `X-RateLimit-Remaining` | Requests remaining in the current window |
| `X-RateLimit-Reset` | Unix timestamp when the window resets |
Exceeding either the per-minute rate limit or your monthly conversion quota returns HTTP `429` with a structured error body.
## Errors
Every error response uses the same envelope:
```json
{ "error": { "code": "quota_exceeded", "message": "Monthly conversion quota exceeded.", "details": { "limit": 25, "used": 25 } } }
```
See the `Error` schema for the full list of error codes.'
version: 1.1.0
contact:
name: ChangeThisFile Support
email: support@changethisfile.com
url: https://changethisfile.com/contact
termsOfService: https://changethisfile.com/terms
license:
name: Commercial
url: https://changethisfile.com/terms
servers:
- url: https://changethisfile.com
description: Production
tags:
- name: Conversions
description: Synchronous and asynchronous file conversions.
paths:
/v1/convert:
post:
operationId: convertFile
tags:
- Conversions
summary: Convert a file
description: 'Synchronously convert a file from one format to another. The endpoint accepts a multipart upload and returns the converted file inline. A file above the active plan''s size limit is rejected with `413` — it is never queued; use `POST /v1/jobs` for asynchronous processing.
Pass the file in `file` and the desired output format in `target`. The `source` field is **optional** — the API auto-detects it from the filename extension and falls back to magic-byte sniffing for renamed uploads. Both `source` and `target` are case-insensitive (e.g. `png`, `jpg`, `pdf`). Use `GET /v1/formats` to list every supported route.
Quality presets vary by route. For lossy image and video routes, `quality` accepts an integer from `1` to `100`. For audio routes, it maps to bitrate presets. Routes that ignore quality silently drop the value.'
security:
- bearerAuth: []
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/ConversionRequest'
encoding:
file:
contentType: application/octet-stream
responses:
'200':
description: Conversion succeeded. The body contains the converted file (binary stream) along with a JSON-friendly summary in headers.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
X-Conversion-Time:
schema:
type: string
description: End-to-end conversion duration in milliseconds (e.g. `412ms`).
Content-Disposition:
schema:
type: string
description: Suggested filename for the converted artefact.
content:
application/octet-stream:
schema:
type: string
format: binary
application/json:
schema:
$ref: '#/components/schemas/ConversionResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'422':
description: Conversion route is not supported.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
'502':
description: Conversion engine is temporarily unavailable. Safe to retry.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
headers:
RateLimitReset:
schema:
type: integer
format: int64
description: Unix timestamp (seconds) when the rate-limit window resets.
RateLimitRemaining:
schema:
type: integer
description: Number of requests remaining in the current window.
RateLimitLimit:
schema:
type: integer
description: Number of requests permitted per minute on the caller's plan.
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
description: Machine-readable error code.
enum:
- bad_request
- invalid_api_key
- quota_exceeded
- rate_limited
- file_too_large
- unsupported_route
- conversion_failed
- service_unavailable
- not_found
- invalid_signature
message:
type: string
description: Human-readable error message.
details:
type: object
description: Optional structured details (e.g. limit, used, retry_after).
ConversionResponse:
type: object
description: 'Returned when the conversion succeeded inline. Most clients will read the binary body instead of this JSON envelope; the server sends JSON only when the request includes an `Accept: application/json` header.
'
required:
- file_url
- size
- duration_ms
- source_format
- target_format
properties:
file_url:
type: string
format: uri
description: Signed download URL valid for 24 hours.
size:
type: integer
description: Size of the converted file in bytes.
duration_ms:
type: integer
description: End-to-end conversion duration in milliseconds.
source_format:
type: string
target_format:
type: string
ConversionRequest:
type: object
required:
- file
- target
properties:
file:
type: string
format: binary
description: The file to convert. Maximum size depends on your plan (25 MB on Free, up to 5 GB on Growth).
target:
type: string
description: Target format extension, case-insensitive (e.g. `jpg`, `pdf`, `mp4`). The only field most callers ever need.
examples:
- jpg
source:
type: string
description: 'Source format extension. **Optional** — auto-detected from the filename extension and (if needed) magic bytes. Pass it explicitly only when you have a renamed file or need to force a specific interpretation.
'
examples:
- png
quality:
type: integer
minimum: 1
maximum: 100
description: Optional quality preset (1-100). Applies to lossy image, video, and audio routes. Ignored by lossless and document routes.
responses:
PayloadTooLarge:
description: File exceeded the plan's maximum size.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Per-minute rate limit or monthly conversion quota exceeded.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
Retry-After:
schema:
type: integer
description: Seconds to wait before retrying.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Request was malformed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: API key
description: 'Pass your API key as a bearer token. Get one for free at `POST /v1/keys/free` (no credit card required).
'