Text to Image

gpt-image-1-5

GPT Image 1.5

POST /v1/images/generationsAsync generationFixed Credit pricing

Quick start

Submit a request with this public model ID. The API immediately returns a normalized job; poll GET /v1/jobs/{jobId} while its status is queued or running.

curl -X POST "https://api.artany.ai/v1/images/generations" \
  -H "Authorization: Bearer $ARTANY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: unique-request-id" \
  -d '{"model":"gpt-image-1-5","prompt":"A cinematic coastal village at sunrise","size":"1:1","count":1,"quality":"auto","background":"auto","moderation":"auto","output_format":"png"}'

Request

Headers

HeaderRequiredDescription
AuthorizationYesBearer token for an Artany API key.
Content-TypeYesMust be application/json.
Idempotency-KeyRecommended8–128 characters. Reusing it with an identical request prevents duplicate jobs and charges.

Body

{
  "model": "gpt-image-1-5",
  "prompt": "A cinematic coastal village at sunrise",
  "size": "1:1",
  "count": 1,
  "quality": "auto",
  "background": "auto",
  "moderation": "auto",
  "output_format": "png"
}

Request Parameters

Only fields in this model’s public request contract are shown. Defaults are applied before validation and quoting.

modelstringrequireddefault: "gpt-image-1-5"

Stable public model ID for this request.

promptstringrequired

Text description for image generation. Chinese and English are supported.

Length: 1–12000

sizestringdefault: "1:1"

Output aspect ratio. Use 1:1, 3:2, or 2:3.

Allowed: 1:1, 2:3, 3:2

1:12:33:2
countintegerdefault: 1

Number of images to generate.

Range: 1–4

Note:Use a plain JSON number. Values below 1 are treated as 1 and values above 4 are treated as 4.

qualitystringdefault: "auto"

Image quality tier.

Allowed: auto, low, medium, high

autolowmediumhigh
  • auto selects quality automatically; low prioritizes speed and cost; medium balances output; high prioritizes quality.
backgroundstringdefault: "auto"

Background rendering mode.

Allowed: auto, opaque, transparent

autoopaquetransparent

Note:Transparent background cannot be combined with jpeg output. Use png when transparency is required.

moderationstringdefault: "auto"

Moderation level applied to the request.

Allowed: auto, low

autolow
output_formatstringdefault: "png"

Requested image format.

Allowed: png, jpeg

pngjpeg
  • png is the default and suits transparency; jpeg produces a smaller general-purpose file.
output_compressioninteger

JPEG output compression level.

Range: 0–100

Note:Use compression only with jpeg output; it is not recommended for png.

image_urlsarray

Reference images that switch the request to image-to-image mode.

Items: 1–15

  • Use one image for single-reference editing or 2–15 for multi-reference fusion.

Note:Reference URLs must be publicly accessible and stable. More than 15 images are rejected.

mask_urlstring

Mask image URL for inpainting.

Note:Requires image_urls. The mask must have an alpha channel and match the first reference image dimensions.

Response and task status

A successful asynchronous submission returns HTTP 202 with a supplier-neutral job.

{
  "id": "job_…",
  "object": "generation.job",
  "model": "gpt-image-1-5",
  "status": "queued",
  "progress": 0,
  "output": null,
  "error": null,
  "billing": {
    "estimated_credits": "…",
    "frozen_credits": "…",
    "charged_credits": "0",
    "state": "frozen",
    "price_version": "2026-07-18.picverse-parity"
  },
  "created_at": "2026-07-21T00:00:00.000Z",
  "completed_at": null
}
  • queued / running: continue polling.
  • succeeded: retrieve media URLs from output; billing has settled.
  • failed / canceled: inspect error; frozen Credits are released.

Pricing

The price shown for a matching configuration is the fixed amount settled on successful completion. Price version: 2026-07-18.picverse-parity.

sizecountqualityCredits
1:11low2
2:31low2
3:21low2
1:12low3
1:13low4
2:32low4
3:22low4
1:14low5
2:33low5
3:23low5
1:11medium5
2:34low7
3:24low7
2:31medium7
3:21medium7
1:12medium9
2:32medium13
3:22medium13
1:13medium14
1:14medium18
1:11auto18
1:11high18
2:33medium20
3:23medium20
2:34medium26
3:24medium26
2:31auto26
2:31high26
3:21auto26
3:21high26
1:12auto35
1:12high35
1:13auto52
1:13high52
2:32auto52
2:32high52
3:22auto52
3:22high52
1:14auto69
1:14high69
2:33auto77
2:33high77
3:23auto77
3:23high77
2:34auto103
2:34high103
3:24auto103
3:24high103