{
 "spec_version": 1,
 "model": "openai/gpt-image-2.6-sunburst",
 "type": "image",
 "input_modalities": [
  "text",
  "image"
 ],
 "output_modalities": [
  "image"
 ],
 "context_window": null,
 "max_output_tokens": null,
 "endpoint": {
  "method": "POST",
  "path": "/v1/images/generations"
 },
 "also_on": [
  "/v1/images/edits"
 ],
 "parameters": [
  {
   "name": "model",
   "type": "string",
   "required": true,
   "description": "This model's ID."
  },
  {
   "name": "prompt",
   "type": "string",
   "required": true,
   "description": "What to draw."
  },
  {
   "name": "size",
   "type": "string",
   "enum": [
    "1:1",
    "3:2",
    "2:3",
    "4:3",
    "3:4",
    "16:9",
    "9:16",
    "21:9",
    "4:5",
    "5:4",
    "2:1",
    "1:2",
    "3:1",
    "1:3"
   ],
   "description": "Aspect ratio. Width x height such as `1024x1024` is accepted too and mapped to its ratio."
  },
  {
   "name": "quality",
   "type": "string",
   "enum": [
    "low",
    "medium",
    "high",
    "xhigh",
    "max"
   ],
   "description": "Quality level; lower is faster and cheaper."
  },
  {
   "name": "n",
   "type": "integer",
   "minimum": 1,
   "maximum": 10,
   "default": 1,
   "description": "How many images."
  },
  {
   "name": "images",
   "type": "array",
   "maxItems": 16,
   "description": "Up to 16 reference images to start from or draw on, each a public https:// URL or a data URL. The request is then an edit."
  }
 ],
 "response": {
  "fields": [
   {
    "name": "created",
    "type": "integer",
    "description": "Unix time."
   },
   {
    "name": "data[].url",
    "type": "string",
    "description": "The image. Download it within 24 hours."
   }
  ],
  "example": {
   "created": 1792000000,
   "data": [
    {
     "url": "https://..."
    }
   ]
  }
 },
 "examples": [
  {
   "title": "Basic",
   "request": {
    "model": "openai/gpt-image-2.6-sunburst",
    "prompt": "A lighthouse at dawn, watercolor",
    "size": "1:1"
   }
  }
 ],
 "input_schema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": [
   "model",
   "prompt"
  ],
  "properties": {
   "model": {
    "type": "string",
    "description": "This model's ID."
   },
   "prompt": {
    "type": "string",
    "description": "What to draw."
   },
   "size": {
    "type": "string",
    "description": "Aspect ratio. Width x height such as `1024x1024` is accepted too and mapped to its ratio.",
    "enum": [
     "1:1",
     "3:2",
     "2:3",
     "4:3",
     "3:4",
     "16:9",
     "9:16",
     "21:9",
     "4:5",
     "5:4",
     "2:1",
     "1:2",
     "3:1",
     "1:3"
    ]
   },
   "quality": {
    "type": "string",
    "description": "Quality level; lower is faster and cheaper.",
    "enum": [
     "low",
     "medium",
     "high",
     "xhigh",
     "max"
    ]
   },
   "n": {
    "type": "integer",
    "description": "How many images.",
    "default": 1,
    "minimum": 1,
    "maximum": 10
   },
   "images": {
    "type": "array",
    "description": "Up to 16 reference images to start from or draw on, each a public https:// URL or a data URL. The request is then an edit.",
    "maxItems": 16
   }
  }
 }
}
