Generate high-quality images using GPT Image 1.

Model

openai/gpt-image-1

Parameters

ParameterTypeRequiredDescription
promptstringYesText description of the image to generate
image_urlsarrayNoReference images for context
aspect_ratiostringNo1:1, 2:3, 3:2
qualitystringNolow, medium, high

Example Request

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/gpt-image-1",
    "input": {
      "prompt": "A futuristic city at sunset",
      "aspect_ratio": "16:9",
      "quality": "high"
    }
  }'

With Reference Images

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/gpt-image-1",
    "input": {
      "prompt": "Make them hug",
      "image_urls": [
        "https://example.com/image1.png",
        "https://example.com/image2.png"
      ]
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}

Pricing

QualityPrice
Low$0.01
Medium$0.02
High$0.04