Toolzipp API Documentation
The Toolzipp API is a REST API for image and video processing. Send a file with one multipart HTTP request and get the processed file straight back in the response — resize, compress and convert images; trim, resize, compress and convert videos, or extract thumbnails. There is no SDK to install; any HTTP client works.
Base URL: https://www.toolzipp.com/api/v1 · Last updated
Quickstart
- Create a free Toolzipp account.
- Open Dashboard → API and create an API key. Copy it — it is shown only once.
- Send your first request:
export TOOLZIPP_API_KEY="tz_live_..."
curl -X POST https://www.toolzipp.com/api/v1/images/process \
-H "Authorization: Bearer $TOOLZIPP_API_KEY" \
-F "[email protected]" \
-F "operation=resize" \
-F "width=800" \
--output photo-800.jpgAuthentication
Every request needs an API key in the Authorization header as a Bearer token. Keys start with tz_live_. Toolzipp stores only a SHA-256 hash of each key, so a lost key cannot be recovered — create a new one and delete the old one in your dashboard.
Authorization: Bearer tz_live_your_api_keyKeep keys secret: call the API from your server, never from browser or mobile app code, and load the key from an environment variable rather than committing it to source control.
Rate limits & quotas
- 30 requests per minute per API key.
- 60 requests per minute per IP address.
- Video uploads up to 200 MB.
Over a rate limit, the API returns 429 with a Retry-After header (seconds). Each successful request counts as one operation against your plan's monthly quota, which resets on the 1st of each month (00:00 UTC). API access is included on every plan, including Free:
| Plan | Image operations / month | Video operations / month |
|---|---|---|
| Free | 100 | 10 |
| Pro | 5,000 | 500 |
| Enterprise | Unlimited | Unlimited |
Failed requests don't count. Check your remaining quota any time with GET /me. See pricing for plan details.
Process an image
Resize, compress, or convert one image per request. The request is processed synchronously and the response body is the processed image itself.
resize— Scale to a target width; height follows the aspect ratio.compress— Re-encode as JPEG at the given quality.convert— Convert to JPEG, PNG, WebP, or AVIF.
Request body (multipart/form-data)
| Field | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | The image to process (JPEG, PNG, WebP, AVIF, GIF, TIFF, or SVG). |
| operation | string | Yes | What to do with the image. One of: resizecompressconvert. |
| width | integer | For resize | Target width in pixels. |
| quality | integer | No | JPEG quality for compress. Range 1–100. Default 80. |
| format | string | For convert | Output format. One of: jpegpngwebpavif. |
Response
200 · image/* — The processed image. Content-Type matches the returned format: resize keeps the input format, compress returns JPEG, convert returns the requested format. The X-Toolzipp-Job-Id header identifies the job in your dashboard. Errors: 400401422429503.
Example
curl -X POST https://www.toolzipp.com/api/v1/images/process \
-H "Authorization: Bearer $TOOLZIPP_API_KEY" \
-F "[email protected]" \
-F "operation=convert" \
-F "format=webp" \
--output photo.webpJavaScript (Node.js 18+)
import { readFile, writeFile } from 'node:fs/promises';
const form = new FormData();
form.append('file', new Blob([await readFile('photo.jpg')]), 'photo.jpg');
form.append('operation', 'resize');
form.append('width', '1200');
const res = await fetch('https://www.toolzipp.com/api/v1/images/process', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.TOOLZIPP_API_KEY}` },
body: form,
});
if (!res.ok) throw new Error((await res.json()).error);
await writeFile('photo-1200.jpg', Buffer.from(await res.arrayBuffer()));Python (requests)
import os
import requests
with open("photo.jpg", "rb") as f:
res = requests.post(
"https://www.toolzipp.com/api/v1/images/process",
headers={"Authorization": f"Bearer {os.environ['TOOLZIPP_API_KEY']}"},
files={"file": f},
data={"operation": "compress", "quality": "75"},
timeout=60,
)
res.raise_for_status()
with open("photo-compressed.jpg", "wb") as out:
out.write(res.content)Process a video
Trim, resize, compress, or convert a video, or extract a thumbnail frame. Processed synchronously (up to 120 seconds); the response body is the resulting file. Maximum upload size is 200 MB.
trim— Cut a clip from start for duration seconds.resize— Scale to a target width; height follows the aspect ratio.compress— Reduce file size at the given quality.convert— Convert to MP4 or WebM.thumbnail— Return a single JPEG frame at the given time.
Request body (multipart/form-data)
| Field | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | The video to process, up to 200 MB. |
| operation | string | Yes | What to do with the video. One of: trimresizecompressconvertthumbnail. |
| start | number | For trim | Clip start, in seconds. |
| duration | number | For trim | Clip length, in seconds. |
| width | integer | For resize | Target width in pixels. |
| quality | integer | No | Quality for compress (higher = better quality, larger file). Range 1–100. Default 70. |
| format | string | For convert | Output container. One of: mp4webm. |
| time | number | No | Timestamp for thumbnail, in seconds. Default 0. |
Response
200 · video/*, or image/jpeg — The processed video — in the same container as the input, except for convert — or a JPEG frame for thumbnail. Content-Type matches the returned file. The X-Toolzipp-Job-Id header identifies the job. Errors: 400401413422429503.
Example
curl -X POST https://www.toolzipp.com/api/v1/videos/process \
-H "Authorization: Bearer $TOOLZIPP_API_KEY" \
-F "[email protected]" \
-F "operation=trim" \
-F "start=5" \
-F "duration=10" \
--output clip-trimmed.mp4JavaScript (Node.js 18+)
import { readFile, writeFile } from 'node:fs/promises';
const form = new FormData();
form.append('file', new Blob([await readFile('clip.mp4')]), 'clip.mp4');
form.append('operation', 'thumbnail');
form.append('time', '3');
const res = await fetch('https://www.toolzipp.com/api/v1/videos/process', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.TOOLZIPP_API_KEY}` },
body: form,
});
if (!res.ok) throw new Error((await res.json()).error);
await writeFile('thumbnail.jpg', Buffer.from(await res.arrayBuffer()));Python (requests)
import os
import requests
with open("clip.mp4", "rb") as f:
res = requests.post(
"https://www.toolzipp.com/api/v1/videos/process",
headers={"Authorization": f"Bearer {os.environ['TOOLZIPP_API_KEY']}"},
files={"file": f},
data={"operation": "convert", "format": "webm"},
timeout=150,
)
res.raise_for_status()
with open("clip.webm", "wb") as out:
out.write(res.content)Get plan and usage
Returns the plan, this month's usage, plan limits, and when usage resets, for the account that owns the API key. Useful for checking remaining quota before a batch job. A null limit means unlimited.
Response
200 · application/json — Plan, usage, and limits. Errors: 401429503.
{
"plan": "Free",
"period": "2026-11",
"resetsAt": "2026-12-01T00:00:00.000Z",
"usage": { "storageUsed": 0, "imagesProcessed": 12, "videosProcessed": 1 },
"limits": { "storage": 1, "images": 100, "videos": 10 }
}Example
curl https://www.toolzipp.com/api/v1/me \
-H "Authorization: Bearer $TOOLZIPP_API_KEY"JavaScript (Node.js 18+)
const res = await fetch('https://www.toolzipp.com/api/v1/me', {
headers: { Authorization: `Bearer ${process.env.TOOLZIPP_API_KEY}` },
});
const { plan, usage, limits } = await res.json();
console.log(`${plan}: ${usage.imagesProcessed}/${limits.images ?? '∞'} images`);Python (requests)
import os
import requests
res = requests.get(
"https://www.toolzipp.com/api/v1/me",
headers={"Authorization": f"Bearer {os.environ['TOOLZIPP_API_KEY']}"},
timeout=30,
)
print(res.json())Errors
Errors return a JSON body with a human-readable message:
{ "error": "Missing or invalid \"width\" field for resize." }| Status | Meaning | What to do |
|---|---|---|
| 400 | Bad request | A required field is missing or invalid — the error message names it. |
| 401 | Unauthorized | The Authorization header is missing, or the API key is invalid or revoked. |
| 413 | Payload too large | The video exceeds 200 MB. |
| 422 | Processing failed | The file could not be processed, e.g. it is corrupt or not a supported format. |
| 429 | Too many requests | Rate limit hit (wait for the Retry-After header, in seconds), or the monthly plan quota is used up (wait for the reset on the 1st, or upgrade your plan). |
| 503 | Service unavailable | Temporary server-side problem. Retry with exponential backoff. |
Webhooks
Toolzipp can notify your server when a job finishes. In Dashboard → API, set an HTTPS endpoint URL and choose the events: job.completed and/or job.failed. Each event is sent as a JSON POST with the headers X-Toolzipp-Event and X-Toolzipp-Signature. Respond within 5 seconds; delivery is attempted once.
{
"event": "job.completed",
"createdAt": "2026-11-19T10:30:00.000Z",
"data": {
"jobId": "a1B2c3D4e5F6g7H8",
"mediaType": "image",
"operation": "resize",
"filename": "photo.jpg"
}
}Verifying signatures
The signature is sha256= followed by the hex HMAC-SHA256 of the raw request body, keyed with your webhook secret. Always verify it before trusting a webhook:
import { createHmac, timingSafeEqual } from 'node:crypto';
// rawBody must be the exact bytes received -- verify BEFORE parsing JSON.
export function isValidToolzippSignature(rawBody, signatureHeader, secret) {
const expected = 'sha256=' + createHmac('sha256', secret).update(rawBody).digest('hex');
const a = Buffer.from(expected);
const b = Buffer.from(signatureHeader ?? '');
return a.length === b.length && timingSafeEqual(a, b);
}import hashlib
import hmac
def is_valid_toolzipp_signature(raw_body: bytes, signature_header: str, secret: str) -> bool:
expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, signature_header or "")OpenAPI spec
A machine-readable OpenAPI 3.1 description of this API is available at /openapi.json. Import it into Postman, Insomnia, or an OpenAPI client generator, or give it to an AI coding assistant.
Start building with Toolzipp
Create a free account to get your API key. Questions or need higher limits? Contact us.
Get a Free API Key
