Appearance
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
| Operation | Endpoint | Mode |
|---|---|---|
| Image generation | POST /v1/images/generations | Sync |
| Image generation task | POST /v1/async/images/generations | Async |
| Image editing | POST /v1/images/edits | Sync |
| Image editing task | POST /v1/async/images/edits | Async |
Model id
| Model id | Best for |
|---|---|
gpt-image-1.5 | GPT Image generation and editing with strong prompt adherence. |
Pricing
| Usage | Credits per image |
|---|---|
| Starting price | from 1 |
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Use gpt-image-1.5. |
prompt | string | Yes | Image prompt. |
image | file or file[] | Required for edit | Input image file for /v1/images/edits. |
n | number | No | Number of images. |
size | string | No | Output size such as 1024x1024 or auto. |
response_format | string | No | url 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"
}
]
}