Skip to main content
Back to API Platform

GPT-Image 1.5 Edit API

OpenAI GPT-Image 1.5 image editing — supply 1-8 reference images plus an edit instruction. Optional transparent background and high-fidelity input mode. Integrate this model via REST with endpoint docs, parameters, and code examples.

Image Generation
Img2Img
Editing
Credit Cost
4 credits
Type
image

API Endpoint

POST
/api/v1/models/gpt-image-1-5-edit/run

Parameters

Input parameters accepted by this model

ParameterTypeDefault
prompt
required
string
-
image_urls
required
array
-
image_size
enum
auto
background
enum
auto
quality
enum
high
input_fidelity
enum
high
num_images
integer
1
output_format
enum
png

See also

Related endpoints on this model — you may need a different apiId for a different operation (e.g. image edit vs generation).

Code Examples

Copy and paste to get started

bash
curl -X POST "https://pixeldojo.ai/api/v1/models/gpt-image-1-5-edit/run" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A beautiful mountain landscape at golden hour",
    "aspect_ratio": "1:1"
  }'

Response Format

Submit Response (202 Accepted)

json
{
  "jobId": "job_abc123...",
  "status": "pending",
  "statusUrl": "https://pixeldojo.ai/api/v1/jobs/job_abc123...",
  "creditCost": 4,
  "creditsRemaining": 95,
  "expiresAt": "2025-01-23T12:00:00Z"
}

Completed Response

json
{
  "jobId": "job_abc123...",
  "status": "completed",
  "output": {
    "images": [
      "https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.png"
    ]
  },
  "creditCost": 4,
  "expiresAt": "2025-01-23T12:00:00Z"
}