# OpenAI GPT Image 1.5 Text to Image API

> Gpt Image 1.5 is OpenAI's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.

Source: https://www.sandbase.ai/models/openai/gpt-image-1.5
API reference: https://www.sandbase.ai/models/openai/gpt-image-1.5/docs

## Facts

- Provider: OpenAI
- Type: Image model
- Model ID: `openai/gpt-image-1.5`
- Price: From $0.14 per run
- Capabilities: text to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "openai/gpt-image-1.5",
  "prompt": "create a realistic image taken with iphone at these coordinates 41°43′32″N 49°56′49″W 15 April 1912",
  "quality": "high",
  "background": "auto",
  "aspect_ratio": "1:1",
  "output_format": "png"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call OpenAI GPT Image 1.5 Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "openai/gpt-image-1.5" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate OpenAI account?

No. One SandBase API key and balance gives you access to OpenAI GPT Image 1.5 Text to Image and the other models in the catalog; you do not need to sign up with OpenAI separately.

## README

### GPT Image 1.5 Text to Image

GPT Image 1.5 text-to-image, with transparent-background output for logos and stickers.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 32,000 characters. |
| `aspect_ratio` | `1:1` / `3:2` / `2:3` | `1:1` | 1:1, 3:2, or 2:3; non-square sizes cost more. |
| `output_format` | `jpeg` / `png` | `png` | Output file format. |
| `background` | `auto` / `transparent` / `opaque` | `auto` | `transparent` returns a PNG with alpha. |
| `quality` | `low` / `medium` / `high` | `high` | Higher quality costs more; `high` is the default. |

#### Billing

Price depends on quality and shape, plus $0.005 per started 1,000 prompt characters:

| Quality, short prompt | 1:1 | 3:2 or 2:3 |
|---|---|---|
| low | $0.014 | $0.018 |
| medium | $0.039 | $0.056 |
| high | $0.138 | $0.205 |

Failed runs are not charged.

#### Prompting

- Use `background: transparent` with PNG output for cut-out assets.

#### Limits

- Three shapes only: 1:1, 3:2, 2:3.

#### Also on SandBase

Related: `openai/gpt-image-1.5/edit`, `openai/gpt-image-2` (newer).
