> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT Image 1.5

> GPT Image 1.5 generates high-quality images from text prompts with precise instruction following and accurate text rendering.

**Model ID**

```bash theme={null}
gpt-image-1.5
```

# gpt-image-1.5 API Usage Guide

## Overview

**gpt-image-1.5** is OpenAI's most capable image generation model, served via Azure Cognitive Services. It excels at following complex prompts, rendering accurate text within images, and producing photorealistic outputs across a wide range of styles.

Requests are synchronous and return results immediately.

## Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

```bash theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Submit Image Generation Request

### Base URL

```text theme={null}
https://console.gmicloud.ai
```

### Endpoint

```text theme={null}
POST /api/v1/ie/requestqueue/apikey/requests
```

### Request Format

```bash theme={null}
curl -X POST "https://console.gmicloud.ai/api/v1/ie/requestqueue/apikey/requests" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-1.5",
    "payload": {
      "prompt": "A photograph of a red fox in an autumn forest",
      "size": "1024x1024",
      "quality": "medium",
      "output_format": "png",
      "n": 1
    }
  }'
```

### Request Parameters

| Parameter | Type | Required | Description | Default | Constraints |
| - | - | - | - | - | - |
| `model` | string | Yes | Model identifier | - | Must be `"gpt-image-1.5"` |
| `payload.prompt` | string | Yes | Text description of the image to generate | - | - |
| `payload.size` | string (enum) | No | Dimensions of the generated image | `"1024x1024"` | `"1024x1024"`, `"1024x1536"`, `"1536x1024"` |
| `payload.quality` | string (enum) | No | Image quality level, affects detail and cost | `"medium"` | `"low"`, `"medium"`, `"high"`, `"auto"` |
| `payload.n` | integer | No | Number of images to generate | `1` | Min: 1, Max: 10 |
| `payload.output_format` | string (enum) | No | File format of the generated image | `"png"` | `"png"`, `"jpeg"`, `"webp"` |
| `payload.output_compression` | integer | No | Compression level for JPEG/WebP output (0–100). Ignored for PNG. | `100` | Min: 0, Max: 100 |
| `payload.background` | string (enum) | No | Background style | `"auto"` | `"auto"`, `"transparent"`, `"opaque"` |
| `payload.image` | string | No | Base64-encoded image to edit. Required for image editing mode. | - | - |
| `payload.mask` | string | No | Base64-encoded mask for inpainting. White pixels are edited, black pixels are preserved. | - | - |

### Response

```json theme={null}
{
  "request_id": "cd5b59d5-1b3f-4fd5-9899-15ecea1f28ba",
  "model": "gpt-image-1.5",
  "status": "success",
  "created_at": 1776797790,
  "updated_at": 1776797803,
  "outcome": {
    "media_urls": [
      {
        "id": "0",
        "url": "https://storage.googleapis.com/gmi-video-assests/..."
      }
    ],
    "thumbnail_image_url": "https://storage.googleapis.com/gmi-video-assests/..."
  }
}
```

## Request Status Values

| Status | Description |
| - | - |
| `queued` | Request is waiting to be processed |
| `success` | Image generation completed successfully |
| `failed` | Image generation failed |

## Check Request Status

### Endpoint

```text theme={null}
GET /api/v1/ie/requestqueue/apikey/requests/{request_id}
```

### Example

```bash theme={null}
curl -X GET "https://console.gmicloud.ai/api/v1/ie/requestqueue/apikey/requests/cd5b59d5-1b3f-4fd5-9899-15ecea1f28ba" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## List Available Models

### Endpoint

```text theme={null}
GET /api/v1/apikey/models
```

### Example

```bash theme={null}
curl -X GET "https://console.gmicloud.ai/api/v1/apikey/models" \
  -H "Authorization: Bearer YOUR_API_KEY"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.