← Back to catalog

DALL-E 2

Coming soon
imagegen

OpenAI DALL-E 2 text-to-image (executor coded; not enabled on this account).

Planned — not yet callable. The schema below reflects the intended request shape.

Endpoint

POSThttps://brahmand-api.bulletshorts.co/v1/image/dall-e-2

Authenticate with the X-API-Key request header.

Pricing

3 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
promptstringrequiredText prompt describing the desired output.
nnumberoptionalNumber of images (1-10).
default: 1
sizestringoptionalOutput size.
default: 1024x1024
256x256512x5121024x1024

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_dalle2_a1b2c3",
  "status": "queued"
}
GET /v1/jobs/{id} → succeeded
{
  "id": "job_dalle2_a1b2c3",
  "model": "dall-e-2",
  "status": "succeeded",
  "output": {
    "outputs": [
      {
        "url": "https://cdn.trinetra.ai/out/dall-e-2/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.