Skip to content

GPT Image 1.5

gpt-image-1.5 is useful when prompt adherence, text rendering, clean composition, or commercial image output quality matter. It uses the same OpenAI-compatible image fields as the other Pixapi image models.

API surface

OperationEndpointMode
Image generationPOST /v1/images/generationsSync
Image generation taskPOST /v1/async/images/generationsAsync
Image editingPOST /v1/images/editsSync
Image editing taskPOST /v1/async/images/editsAsync

Model id

Model idBest for
gpt-image-1.5GPT Image generation and editing with strong prompt adherence.

Pricing

UsageCredits per image
Starting pricefrom 1

Request fields

FieldTypeRequiredDescription
modelstringYesUse gpt-image-1.5.
promptstringYesImage prompt.
imagefile or file[]Required for editInput image file for /v1/images/edits.
nnumberNoNumber of images.
sizestringNoOutput size such as 1024x1024 or auto.
response_formatstringNourl or b64_json when supported.

Generate example

ts
const response = await fetch('https://api.pixapi.ai/v1/images/generations', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PIXAPI_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'gpt-image-1.5',
    prompt: 'A polished launch visual for a developer API product',
    n: 1,
    size: '1024x1024',
  }),
});

const image = await response.json();

Edit example

bash
curl https://api.pixapi.ai/v1/images/edits \
  -H "Authorization: Bearer $PIXAPI_KEY" \
  -F "model=gpt-image-1.5" \
  -F "prompt=Replace the background with a bright studio setup" \
  -F "image=@input.png" \
  -F "n=1" \
  -F "size=1024x1024"

Response

json
{
  "created": 1766880000,
  "data": [
    {
      "url": "https://cdn.pixapi.ai/generated/gpt-image-1.5.png"
    }
  ]
}