Upscale an image 2x or 4x while preserving detail.
Authenticate with the X-API-Key request header.
List price. Volume / bulk customers get a discounted rate — contact us for account pricing.
| Name | Type | Required | Description | Default / options |
|---|---|---|---|---|
| image_url | string | required | Source image to upscale. | — |
| factor | string | optional | Upscale factor. | default: x2x2x4 |
| output_mime_type | string | optional | Output image format. | default: image/pngimage/pngimage/jpeg |
| compression_quality | number | optional | JPEG compression quality 0-100 (only for image/jpeg). | — |
curl -X POST https://brahmand-api.bulletshorts.co/v1/image/imagen-upscale \
-H "X-API-Key: $TRINETRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"image_url":"https://example.com/small.png","factor":"x4"}'{
"image_url": "https://example.com/small.png",
"factor": "x4"
}Submitting a job returns 202 Accepted with a job id. Poll GET /v1/jobs/{id} until the job reaches a terminal state, or register a webhook to be notified.
{
"job_id": "job_imagenupscale_a1b2c3",
"status": "queued"
}{
"id": "job_imagenupscale_a1b2c3",
"model": "imagen-upscale",
"status": "succeeded",
"output": {
"outputs": [
{
"url": "https://cdn.trinetra.ai/out/imagen-upscale/a1b2c3.png",
"type": "image"
}
]
},
"credits_charged": 10
}Webhook: set a webhook_url on your API key to receive a POST with the terminal job document instead of polling.