Integrate AI image enhancement into your product with a few HTTP calls. API access is included with the Enterprise plan.
Log in with your account to obtain a JWT, then create a permanent API key
from the API Keys page. Send the key in the X-API-Key header.
# 1) Get a JWT
curl -X POST http://upscalemedia.tech/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"you@example.com","password":"..."}'
# 2) Create an API key
curl -X POST http://upscalemedia.tech/api/v1/api-keys \
-H "Authorization: Bearer <JWT>" \
-H "Content-Type: application/json" \
-d '{"name":"my-app"}'
Returns the enhanced image URL. Each call consumes one credit.
curl -X POST http://upscalemedia.tech/api/v1/ai/process \
-H "X-API-Key: sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/photo.jpg",
"function_type": "upscale",
"upscale_factor": 4
}'
{
"success": true,
"message": "Image processed successfully",
"result_url": "/uploads/results/upscale_1712345678_ab12cd34.png",
"original_url": "/uploads/results/original_1712345678_ab12cd34.png",
"processing_time": 0.42,
"function": "Super-Resolution Upscale"
}
Process up to 20 images in one request.
curl -X POST http://upscalemedia.tech/api/v1/ai/batch \
-H "X-API-Key: sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"image_urls": ["https://a.com/1.jpg","https://a.com/2.jpg"],
"function_type": "sharpen"
}'
| function_type | Description | Extra params |
|---|---|---|
| upscale | Super Resolution Upscale | upscale_factor (2/4/8) |
| sharpen | Image Sharpening | — |
| deblur | Deblur | — |
| haze_removal | Haze Removal | — |
| face_enhance | Face Enhance | — |
| face_repair | Face Repair | — |
| restore | Image Restoration | — |
| colorize | Image Colorize | — |
| motion_blur | Motion Blur Removal | — |
| retouch | Photo Retouch | — |
| 400 | Invalid request or unsupported file type |
| 401 | Missing or invalid API key |
| 402 | Insufficient credits |
| 429 | Rate limit exceeded |
The Enterprise plan includes 10,000 credits/month and full API access.
View Pricing