Image to Image

gpt-image-2

Picverse phase-one image capability.

Commercial useAsync APIfrom 2 Credits

API reference

Submit this model to the capability endpoint, then poll the returned job until it is terminal. Only the parameters below are accepted.

POST /v1/images/edits

Required headers

Authorization: Bearer $ARTANY_API_KEY
Content-Type: application/json
Idempotency-Key: unique-request-id

Use a new 8–128 character Idempotency-Key for each logical generation. Retrying the same request with the same key will not double-charge.

Request body

{
  "model": "gpt-image-2",
  "prompt": "A cinematic coastal village",
  "count": 1,
  "size": "1:1",
  "resolution": "1k"
}

Parameters

FieldTypeRequiredDescriptionDefaultConstraints
modelstringYesStable Artany public model ID.gpt-image-2This exact public model ID.
sizestringNoRequested output image aspect ratio or canvas size. Available values are model-specific."1:1"Allowed: auto, 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9
countintegerNoNumber of images to generate in one request. The model-specific maximum is enforced.1Range: 1–1
promptstringYesNatural-language instruction describing the desired image or video. Include subject, setting, composition, motion, lighting, and style as needed.Length: 1–12000
image_urlsarray (string items)NoPublic image URLs or supported image data used as source or reference images.Items: 1–16
resolutionstringNoRequested output quality tier. Available values are model-specific and can affect price."1k"Allowed: 1k, 2k, 4k

Accepted response

The submit endpoint returns HTTP 202 with a normalized job. Poll GET /v1/jobs/{jobId} until the status is terminal.

{
  "id": "job_…",
  "object": "generation.job",
  "model": "gpt-image-2",
  "status": "queued",
  "progress": 0,
  "output": null,
  "error": null,
  "billing": {
    "estimated_credits": "2",
    "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
}

Lifecycle and failures

  • queued / running — wait and poll again.
  • succeeded — read output URLs from output; the actual charge is settled.
  • failed / canceled — inspect error; frozen Credits are released.
  • For a schema error, the API returns an error object and identifies the invalid field in param when applicable.

Input

Runs are billed to your Credits at the listed price — same engine as the public API.

Output

Run the model to see results here

Pricing details

Fixed catalog pricing — the listed price is exactly what a run settles for. Version 2026-07-18.picverse-parity.

ModelresolutionPrice
gpt-image-21k2Credits · ~$0.0200
gpt-image-22k3Credits · ~$0.0300
gpt-image-24k5Credits · ~$0.0500

Integrate in minutes

curl -X POST "https://api.artany.ai/v1/images/edits" \
  -H "Authorization: Bearer $ARTANY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: unique-request-id" \
  -d '{"model":"gpt-image-2","prompt":"A cinematic coastal village","count":1,"size":"1:1","resolution":"1k"}'

# poll until terminal
curl "https://api.artany.ai/v1/jobs/{job_id}" \
  -H "Authorization: Bearer $ARTANY_API_KEY"