← Back to catalog

Imagen Upscale

Live
imageupscale

Upscale an image 2x or 4x while preserving detail.

Endpoint

POSThttps://brahmand-api.bulletshorts.co/v1/image/imagen-upscale

Authenticate with the X-API-Key request header.

Pricing

8 credits / image1 credit = ₹1. Billed on success: per image.

List price. Volume / bulk customers get a discounted rate — contact us for account pricing.

Parameters

NameTypeRequiredDescriptionDefault / options
image_urlstringrequiredSource image to upscale.
factorstringoptionalUpscale factor.
default: x2
x2x4
output_mime_typestringoptionalOutput image format.
default: image/png
image/pngimage/jpeg
compression_qualitynumberoptionalJPEG compression quality 0-100 (only for image/jpeg).

Request

curl
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"}'
request body (JSON)
{
  "image_url": "https://example.com/small.png",
  "factor": "x4"
}

Response

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.

202 Accepted
{
  "job_id": "job_imagenupscale_a1b2c3",
  "status": "queued"
}
GET /v1/jobs/{id} → succeeded
{
  "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.