Media
Upscale a picture
The same picture, two or four times larger, its detail restored.
6 credits ×2 · 8 credits ×4
eroq Upscale on a picture (our own GPUs, the diffusion upscaler of our clips): scale 2 (default) or 4, the long side capped at 4096 px — a picture already past it answers 400 already_sharp before billing. The picture comes as for Remove background: a file part, or JSON image (upload:<id> / creation:<id>).
Same answer and timing as Remove background: the request holds while the GPU works (seconds when warm), else 202 with a job to poll on GET /v1/images/generations/{id}. A failure refunds itself. tools["upscale"] on GET /v1/engines says whether it is live.
The CDN serves pictures past 1600 px wide at 1600 px in browsers: the full-size file is the one in your library (download it from the studio, or read the creation with GET /v1/creations/{id}).
Authorization
Your API key as a bearer token: Bearer eroq_sk_…. Create one on the keys page.
Body
application/jsonThe picture (multipart). Or send image instead.
A picture of yours: upload:<id> or creation:<id>.
2 (default) or 4.
Library folder the result lands in — one of yours.
Keep nothing: the picture comes back inline, once.
curl https://eroq.ai/v1/images/upscale \
-H "Authorization: Bearer $EROQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image": "creation:3f1c2b9a-…",
"scale": 2
}'{
"id": "8c2f0a91-…",
"object": "image.generation",
"created": 1763740800,
"model": "eroq-upscale",
"status": "succeeded",
"generation_ms": 11800,
"data": [{ "url": "https://cdn.eroq.ai/…/image.png?token=…&expires=…", "content_type": "image/png", "library_id": "…" }],
"usage": { "credits_spent": 6, "credits_remaining": 971 }
}