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

# GPT Image 2

> Generate images with OpenAI's GPT Image 2 model

Generate high-quality images using GPT Image 2 with improved capabilities.

## Model

```
openai/gpt-image-2
```

## Parameters

| Parameter      | Type   | Required | Description                                 |
| -------------- | ------ | -------- | ------------------------------------------- |
| `prompt`       | string | Yes      | Text description of the image to generate   |
| `aspect_ratio` | string | No       | `1:1`, `3:2`, `2:3`, `16:9`. Default: `1:1` |
| `image_urls`   | array  | No       | Reference image URLs for image editing mode |
| `resolution`   | string | No       | `1K`, `2K`, `4K`. Default: `1K`             |

## Example Request

```bash theme={null}
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-2",
    "input": {
      "prompt": "A serene mountain landscape",
      "aspect_ratio": "16:9",
      "resolution": "2K"
    }
  }'
```

## Response

```json theme={null}
{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}
```
