{
  "components": {
    "schemas": {
      "TaskResponse": {
        "description": "Standard async task creation response",
        "properties": {
          "code": {
            "description": "Status code returned by the service",
            "example": "success",
            "type": "string"
          },
          "data": {
            "description": "Response payload containing task details",
            "properties": {
              "task_id": {
                "description": "Identifier of the created task",
                "type": "string"
              }
            },
            "required": [
              "task_id"
            ],
            "type": "object"
          },
          "fail_code": {
            "description": "Failure code if the task submission did not succeed",
            "type": "string"
          },
          "message": {
            "description": "Additional information about the request result",
            "type": "string"
          }
        },
        "required": [
          "data",
          "code",
          "message"
        ],
        "type": "object"
      },
      "TaskStatusResponse": {
        "description": "Async task status query response",
        "example": {
          "code": "success",
          "data": {
            "fail_code": "",
            "fail_reason": "",
            "finish_time": 1763274838,
            "outputs": [
              "https://api.siray.ai/redirect/example-output"
            ],
            "progress": "100%",
            "start_time": 1763274702,
            "status": "SUCCESS",
            "submit_time": 1763274672,
            "task_id": "video_69196fafcc9c8190acccf32e9b560c3f0da8a6d1948cfaa5"
          },
          "message": ""
        },
        "properties": {
          "code": {
            "description": "Status code returned by the service",
            "example": "success",
            "type": "string"
          },
          "data": {
            "description": "Task execution details",
            "properties": {
              "fail_code": {
                "description": "Failure code if the task did not succeed",
                "type": "string"
              },
              "fail_reason": {
                "description": "Explanation of the failure if the task did not succeed",
                "type": "string"
              },
              "finish_time": {
                "description": "Unix timestamp when task processing finished",
                "format": "int64",
                "type": "integer"
              },
              "outputs": {
                "description": "URLs for generated assets",
                "items": {
                  "description": "Public URL to the generated asset",
                  "format": "uri",
                  "type": "string"
                },
                "type": "array"
              },
              "progress": {
                "description": "Human-readable task progress indicator",
                "example": "100%",
                "type": "string"
              },
              "start_time": {
                "description": "Unix timestamp when task processing began",
                "format": "int64",
                "type": "integer"
              },
              "status": {
                "description": "Current task status",
                "enum": [
                  "NOT_START",
                  "SUBMITTED",
                  "QUEUED",
                  "IN_PROGRESS",
                  "FAILURE",
                  "SUCCESS"
                ],
                "type": "string"
              },
              "submit_time": {
                "description": "Unix timestamp when the task was submitted",
                "format": "int64",
                "type": "integer"
              },
              "task_id": {
                "description": "Identifier of the task",
                "type": "string"
              }
            },
            "required": [
              "task_id",
              "status"
            ],
            "type": "object"
          },
          "message": {
            "description": "Additional information or error details",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message",
          "data"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "API Key",
        "description": "Bearer authentication using API key",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "GPT Image 2.5 Flare t2i by OpenAI is a text-to-image AI model for text-to-image generation. It delivers high-quality results for rapid iteration, dependable production workflows, and scalable AI applications.",
    "summary": "API for GPT Image 2.5 Flare t2i model",
    "title": "GPT Image 2.5 Flare t2i API",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/images/generations/async": {
      "post": {
        "description": "Generate an image using the GPT Image 2.5 Flare t2i model",
        "operationId": "image_model-c8ooqcmvfhbkufrv",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "background": "auto",
                "height": 1,
                "model": "openai/gpt-image-2.5-flare-t2i",
                "moderation": "auto",
                "n": 1,
                "output_format": "jpg",
                "prompt": "example_value",
                "quality": "low",
                "size": "1024x768",
                "width": 1
              },
              "schema": {
                "description": "Request format for image generation models",
                "properties": {
                  "background": {
                    "description": "Background of the generated image",
                    "enum": [
                      "auto",
                      "opaque",
                      "transparent"
                    ],
                    "type": "string"
                  },
                  "height": {
                    "description": "Height of the output. Only takes effect when size is \"custom\".",
                    "type": "integer"
                  },
                  "model": {
                    "description": "Model name to use for the request",
                    "enum": [
                      "openai/gpt-image-2.5-flare-t2i"
                    ],
                    "type": "string"
                  },
                  "moderation": {
                    "description": "Content moderation strategy",
                    "enum": [
                      "auto",
                      "low"
                    ],
                    "type": "string"
                  },
                  "n": {
                    "default": 1,
                    "description": "Number of outputs to generate",
                    "maximum": 10,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "output_format": {
                    "description": "Output format for the 3D model",
                    "enum": [
                      "jpg",
                      "png",
                      "webp"
                    ],
                    "type": "string"
                  },
                  "prompt": {
                    "description": "Text prompt for generation",
                    "type": "string"
                  },
                  "quality": {
                    "description": "Quality option",
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "xhigh",
                      "max"
                    ],
                    "type": "string"
                  },
                  "size": {
                    "description": "Output size. Choose a preset, or set to \"custom\" to specify an arbitrary size; the width and height fields only take effect when size is \"custom\".",
                    "enum": [
                      "1024x768",
                      "768x1024",
                      "1024x1024",
                      "1024x1536",
                      "1536x1024",
                      "2560x1440",
                      "1440x2560",
                      "3840x2160",
                      "2160x3840",
                      "auto",
                      "custom"
                    ],
                    "type": "string"
                  },
                  "width": {
                    "description": "Width of the output. Only takes effect when size is \"custom\".",
                    "type": "integer"
                  }
                },
                "required": [
                  "model",
                  "prompt",
                  "size"
                ],
                "title": "Image Generation Request",
                "type": "object"
              }
            }
          },
          "description": "Request payload",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResponse"
                }
              }
            },
            "description": "Successful response"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Generate image",
        "tags": [
          "GPT Image 2.5 Flare t2i"
        ]
      }
    },
    "/v1/images/generations/async/{task_id}": {
      "get": {
        "description": "Query the status and result of an image generation task",
        "operationId": "query_image_task_model-c8ooqcmvfhbkufrv",
        "parameters": [
          {
            "description": "Task ID returned from the image generation request",
            "in": "path",
            "name": "task_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatusResponse"
                }
              }
            },
            "description": "Task status and result"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Query image generation task",
        "tags": [
          "GPT Image 2.5 Flare t2i"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Model Verse API Server",
      "url": "https://api.siray.ai"
    }
  ],
  "tags": [
    {
      "description": "GPT Image 2.5 Flare t2i - GPT Image 2.5 Flare t2i by OpenAI is a text-to-image AI model for text-to-image generation. It delivers high-quality results for rapid iteration, dependable production workflows, and scalable AI applications.",
      "name": "GPT Image 2.5 Flare t2i"
    }
  ]
}