Source: https://ailoot.ai/models/en/openai-gpt-image-1-mini/
Canonical: https://ailoot.ai/models/en/openai-gpt-image-1-mini/
Language: en

# OpenAI: GPT Image 1 Mini

[Markdown](https://ailoot.ai/models/en/openai-gpt-image-1-mini/index.md) · [JSON](https://ailoot.ai/models/en/openai-gpt-image-1-mini/facts.json)

## [OpenAI: GPT Image 1 Mini](https://ailoot.ai/models/en/openai-gpt-image-1-mini/)

GPT Image 1 Mini creates and edits images from text and visual references within the GPT Image 1 family. It supports standard output sizes, masks and common image formats, with low input fidelity rather than the high-fidelity option of GPT Image 1.

- [**Ailoot Ultra · Images** `POST /v1/images/generations` `openai/gpt-image-1-mini`](https://ailoot.ai/models/en/openai-gpt-image-1-mini/#method-0)
- [**Ailoot Ultra · Images** `POST /v1/images/generations` `gpt-image-1-mini`](https://ailoot.ai/models/en/openai-gpt-image-1-mini/#method-1)

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

GPT Image 1 Mini is OpenAI’s named Mini variant of the GPT Image 1 family. It accepts text and images and produces image outputs through the producer’s generation and editing workflows. Use it for ordinary creative briefs, visual concepts and changes to a supplied image where the Mini edition’s documented controls fit the task. Use Mini’s standard frame sizes and low input fidelity when preparing the task.

For a new image, describe the subject, scene, light, composition and style. For an edit, identify the required change and the source elements that should remain recognisable. A simple illustration brief can request a delivery bicycle beside a doorway, broad clean shapes and a restrained palette; a follow-up can change the background while retaining the selected composition. The documented direct workflows accept up to 32,000 prompt characters and one to ten outputs, which can provide alternatives for review.

Editing can use up to sixteen input images. Explain which image supplies the main subject, setting or treatment rather than leaving those roles ambiguous. GPT Image 1 Mini supports only low input\_fidelity. The high setting available on GPT Image 1 is not an option for Mini. Input fidelity is separate from output rendering quality: choosing high-quality output does not enable a different source-preservation mode. Keep the preservation requirements explicit and inspect the relevant source details in the resulting asset.

A mask can guide a requested change to a selected area. The source and mask need the same format and dimensions, and the mask requires an alpha channel; the image-generation guide gives a requirement below 50 MB. With several source images, the mask applies to the first. A focused brief might change the colour of one object while retaining the scene’s overall framing. The mask is prompt-based guidance rather than a guaranteed geometric boundary, so check the adjacent area as well as the intended change.

The standard frame sizes are 1024 × 1024, 1536 × 1024 and 1024 × 1536 pixels, with automatic selection where supported. The rendering quality choices are low, medium, high and auto. These are separate from Mini’s low-only input fidelity. The custom high-resolution dimensions and xhigh or max levels of later GPT Image editions are not part of this Mini profile. Choose a frame that suits the placement and a quality level appropriate to a draft or final asset.

The producer supports PNG, JPEG and WebP output, with PNG as the default. JPEG and WebP can use compression from 0 to 100. Transparent, opaque and automatic backgrounds address different layout requirements; select PNG or WebP when an alpha channel is needed. A transparent object can be placed in a separate composition, while an opaque scene includes its own backdrop. Keep the selected output file rather than treating its encoded delivery representation as the final design artifact.

The producer image reference documents streaming with up to three partial images before completion. A preview can make progress visible, but only the final image should be retained as the finished result. For a sequence of edits, supply the chosen image again with the next concrete instruction. The manufacturer interface also supports batch processing.

Review the image’s lettering, layout-sensitive details and source-object appearance against the brief. GPT Image can still struggle with precise text placement, structured compositions and consistent recurring subjects across generations. Use the selected result for a narrower edit when a visible detail needs to change, keeping both the change and preservation requirements clear. The useful Mini result is a complete image for a defined creative task, prepared with the standard sizes and fidelity controls that this exact edition provides.

**Ailoot Ultra · Images** `POST /v1/images/generations` `openai/gpt-image-1-mini`

[`openai/gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=openai%2Fgpt-image-1-mini&fmt=images)

OpenAI /`openai/gpt-image-1-mini`

Model ID

- `openai/gpt-image-1-mini`
- `gpt-image-1-mini`

### Overview

GPT Image 1 Mini creates and edits images from text and visual references within the GPT Image 1 family. It supports standard output sizes, masks and common image formats, with low input fidelity rather than the high-fidelity option of GPT Image 1.

Accepted inputs

Text · Images

Results

Images

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Images** `POST /v1/images/generations`

Input types

`text`, `image`

Output types

`image`

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits openai/gpt-image-1-mini | Default— |
| Field`prompt` | Type`string` | RequirementRequired | Values & limits Minimum length: 1 | Default— |
| Field`aspect_ratio` | Type`string` | RequirementOptional | Values & limits 1:1, 3:2, 2:3, auto | Default— |
| Field`quality` | Type`string` | RequirementOptional | Values & limits auto, low, medium, high | Default— |
| Field`background` | Type`string` | RequirementOptional | Values & limits auto, transparent, opaque | Default— |
| Field`n` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 Maximum: 10 | Default— |
| Field`input_references` | Type`array` | RequirementOptional | Values & limits Minimum items: 0 Maximum items: 16 | Default— |
| Field`output_compression` | Type`integer` | RequirementOptional | Values & limits Minimum: 0 Maximum: 100 | Default— |
| Field`provider` | Type`object` | RequirementOptional | Values & limits | Default— |

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, prompt |
| Parameter`material_types` | Contracttext, image |

Lifecycle: `synchronous_result_then_owned_library`

`GET /v1/media/tasks/{task_id}` · actual returned task\_id or media library record

`GET /v1/media/assets/{asset_id}/content`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

### Pricing

##### How the final charge is calculated

The displayed rates estimate the cost before generation. The final charge is calculated from the cost recorded for the original generation. Measured output duration and forecast quantities are not the final billable quantity.

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Not specified When fast mode is selected

Flex mode

Not specified When flex mode is selected

Maximum reasoning effort

Not specified When maximum reasoning effort uses the default adjustment

#### Estimated rates for comparison

#### Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

| Configuration | Rate schedule | Forecast quantity | Charge |
| --- | --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Forecast quantity— | Charge Input · Input tokens · Estimate for comparison only **—** / 1K tokens Output · Output tokens · Estimate for comparison only **—** / 1K tokens Input · Cache read · Estimate for comparison only **—** / 1K tokens Input · Cache write · Estimate for comparison only **—** / 1K tokens Input · Cache write, 1 hour · Estimate for comparison only **—** / 1K tokens |
| ConfigurationEstimated generation cost | Rate schedule— | Forecast quantityone generation estimate | Charge Output · Estimated generation cost · Estimate for comparison only **$0.065536** estimate before generation This estimate is not an additional charge or a fixed rate for the completed generation. |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Images

curl

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p={'model': 'openai/gpt-image-1-mini', 'prompt': 'a red panda astronaut floating in space, studio lighting'}

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/images/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin

def save_images(items):
    if not items: raise SystemExit("No completed images; retain the full response")
    for index, item in enumerate(items):
        encoded=item.get("b64_json")
        uri=item.get("url", "")
        if not encoded and uri.startswith("data:image/"):
            header, separator, encoded=uri.partition(",")
            if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
        if encoded:
            raw=base64.b64decode(encoded,validate=True)
        elif uri:
            uri=urljoin("https://api.ailoot.ai",uri)
            parsed=urlsplit(uri)
            if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
                raise SystemExit("Invalid returned image URL")
            owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
            args=["curl","--fail-with-body","--silent","--show-error",uri]
            if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
            temporary=Path(f"image-{index}.bin")
            subprocess.run(args+["-o",str(temporary)],check=True)
            raw=temporary.read_bytes()
            temporary.unlink()
        else: raise SystemExit("Image has neither bytes nor URL")
        if not raw: raise SystemExit("Empty image result")
        ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
        Path(f"image-{index}.{ext}").write_bytes(raw)
    print("Every returned image saved; complete response metadata retained")
save_images(json.loads(Path("result.json").read_text())["data"])
PY_RESULT
```

### Receive and save results

#### Ailoot Ultra · Images

Download each returned image or save its Base64 contents

- `GET /v1/media/tasks/{task_id}`
- `GET /v1/media/assets/{asset_id}/content`
- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

Other content reads

Read existing owned assets

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/media/assets \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o owned-assets.json
# Preserve every returned asset and follow its exact signed content URL. Do not construct a signed token.
```

##### Keep all completed results

Save every completed image; retrieve each returned URL or decode its Base64 contents.

Retain the complete response and headers, every actual output, original returned identifiers and all usage fields. Recover the original operation without submitting creation again.

##### If the original response needs checking

Keep the returned X-Client-Request-ID for reconciliation. Read only actual returned task\_id/asset\_id values or the owned media library; never build a task URL from the operation ID and never resubmit creation.

Response fields

| Field | Type |
| --- | --- |
| Field`created` | Type |
| Field`data[].url` | Type |
| Field`data[].b64_json` | Type |
| Field`usage` | Type |

### Aliases

#### Model aliases

**Ailoot Ultra** [`openai/gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=openai%2Fgpt-image-1-mini&fmt=images), [`gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=gpt-image-1-mini&fmt=images)

#### Method path aliases

`/v1/images`

#### Related caller IDs

[`openai/gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=openai%2Fgpt-image-1-mini&fmt=images), [`gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=gpt-image-1-mini&fmt=images)

**Ailoot Ultra · Images** `POST /v1/images/generations` `gpt-image-1-mini`

[`gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=gpt-image-1-mini&fmt=images)

OpenAI /`gpt-image-1-mini`

Model ID

- `openai/gpt-image-1-mini`
- `gpt-image-1-mini`

### Overview

GPT Image 1 Mini creates and edits images from text and visual references within the GPT Image 1 family. It supports standard output sizes, masks and common image formats, with low input fidelity rather than the high-fidelity option of GPT Image 1.

Accepted inputs

Text

Results

Images

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Images** `POST /v1/images/generations`

Input types

`text`

Output types

`image`

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits gpt-image-1-mini | Default— |
| Field`prompt` | Type`string` | RequirementRequired | Values & limits Maximum length: 32,000 | Default— |
| Field`size` | Type`string` | RequirementOptional | Values & limits 1024x1024, 1536x1024, 1024x1536, auto | Defaultauto |
| Field`background` | Type`string` | RequirementOptional | Values & limits transparent, opaque, auto | Defaultauto |
| Field`moderation` | Type`string` | RequirementOptional | Values & limits low, auto Conditions: Use auto for standard content moderation. | Default— |
| Field`n` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 Maximum: 10 | Default1 |
| Field`quality` | Type`string` | RequirementOptional | Values & limits auto, high, medium, low | Defaultauto |
| Field`output_compression` | Type`integer` | RequirementOptional | Values & limits Minimum: 0 Maximum: 100 Conditions: Applies to JPEG and WebP output; send the documented integer value. | Default100 |
| Field`output_format` | Type`string` | RequirementOptional | Values & limits webp, png, jpeg | Defaultpng |
| Field`stream` | Type`boolean` | RequirementOptional | Values & limits false Conditions: This route returns one completed JSON response. | Defaultfalse |

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractprompt, model |
| Parameter`material_types` | Contracttext |
| Parameter`optional` | Contractsize, background, moderation, n, quality, output\_compression, output\_format, stream |
| Parameter`conditions` | ContractA transparent background requires PNG or WebP., Output compression applies to JPEG or WebP., The selected method generates from text. Editing and streaming controls described for the manufacturer are separate capabilities. |

Lifecycle: `synchronous_result_then_owned_library`

`GET /v1/media/tasks/{task_id}` · actual returned task\_id or media library record

`GET /v1/media/assets/{asset_id}/content`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

### Pricing

##### How the final charge is calculated

The displayed rates estimate the cost before generation. The final charge is calculated from the cost recorded for the original generation. Measured output duration and forecast quantities are not the final billable quantity.

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Not specified When fast mode is selected

Flex mode

Not specified When flex mode is selected

Maximum reasoning effort

Not specified When maximum reasoning effort uses the default adjustment

#### Estimated rates for comparison

#### Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

| Configuration | Rate schedule | Forecast quantity | Charge |
| --- | --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Forecast quantity— | Charge Input · Input tokens · Estimate for comparison only **—** / 1K tokens Output · Output tokens · Estimate for comparison only **—** / 1K tokens Input · Cache read · Estimate for comparison only **—** / 1K tokens Input · Cache write · Estimate for comparison only **—** / 1K tokens Input · Cache write, 1 hour · Estimate for comparison only **—** / 1K tokens |
| ConfigurationEstimated generation cost | Rate schedule— | Forecast quantityone generation estimate | Charge Output · Estimated generation cost · Estimate for comparison only **$0.065536** estimate before generation This estimate is not an additional charge or a fixed rate for the completed generation. |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Images

curl

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p={'prompt': 'A cute baby sea otter', 'model': 'gpt-image-1-mini', 'size': '1024x1024', 'n': 1, 'background': 'auto', 'moderation': 'auto', 'output_format': 'png'}

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/images/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin

def save_images(items):
    if not items: raise SystemExit("No completed images; retain the full response")
    for index, item in enumerate(items):
        encoded=item.get("b64_json")
        uri=item.get("url", "")
        if not encoded and uri.startswith("data:image/"):
            header, separator, encoded=uri.partition(",")
            if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
        if encoded:
            raw=base64.b64decode(encoded,validate=True)
        elif uri:
            uri=urljoin("https://api.ailoot.ai",uri)
            parsed=urlsplit(uri)
            if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
                raise SystemExit("Invalid returned image URL")
            owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
            args=["curl","--fail-with-body","--silent","--show-error",uri]
            if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
            temporary=Path(f"image-{index}.bin")
            subprocess.run(args+["-o",str(temporary)],check=True)
            raw=temporary.read_bytes()
            temporary.unlink()
        else: raise SystemExit("Image has neither bytes nor URL")
        if not raw: raise SystemExit("Empty image result")
        ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
        Path(f"image-{index}.{ext}").write_bytes(raw)
    print("Every returned image saved; complete response metadata retained")
save_images(json.loads(Path("result.json").read_text())["data"])
PY_RESULT
```

### Receive and save results

#### Ailoot Ultra · Images

Download each returned image or save its Base64 contents

- `GET /v1/media/tasks/{task_id}`
- `GET /v1/media/assets/{asset_id}/content`
- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

Other content reads

Read existing owned assets

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/media/assets \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o owned-assets.json
# Preserve every returned asset and follow its exact signed content URL. Do not construct a signed token.
```

##### Keep all completed results

Save every completed image; retrieve each returned URL or decode its Base64 contents.

Retain the complete response and headers, every actual output, original returned identifiers and all usage fields. Recover the original operation without submitting creation again.

##### If the original response needs checking

Keep the returned X-Client-Request-ID for reconciliation. Read only actual returned task\_id/asset\_id values or the owned media library; never build a task URL from the operation ID and never resubmit creation.

Response fields

| Field | Type |
| --- | --- |
| Field`created` | Type |
| Field`data[].url` | Type |
| Field`data[].b64_json` | Type |
| Field`usage` | Type |

### Aliases

#### Model aliases

**Ailoot Ultra** [`openai/gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=openai%2Fgpt-image-1-mini&fmt=images), [`gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=gpt-image-1-mini&fmt=images)

#### Method path aliases

`/v1/images`

#### Related caller IDs

[`openai/gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=openai%2Fgpt-image-1-mini&fmt=images), [`gpt-image-1-mini`](https://ailoot.ai/models/en/#m=openai%2Fgpt-image-1-mini&route=Ultra&caller=gpt-image-1-mini&fmt=images)

FAQ · OpenAI: GPT Image 1 Mini

What inputs and results are available?

`POST /v1/images/generations` · `openai/gpt-image-1-mini`: `text`, `image` → `image` `POST /v1/images/generations` · `gpt-image-1-mini`: `text` → `image`

Which fields does the request use?

`POST /v1/images/generations` · `openai/gpt-image-1-mini`: `model`, `prompt`, `aspect_ratio`, `quality`, `background`, `n`, `input_references`, `output_compression`, `provider` `POST /v1/images/generations` · `gpt-image-1-mini`: `model`, `prompt`, `size`, `background`, `moderation`, `n`, `quality`, `output_compression`, `output_format`, `stream`

What limits apply?

`POST /v1/images/generations` · `openai/gpt-image-1-mini`: `n.minimum`: `1`; `n.maximum`: `10`; `output_compression.minimum`: `0`; `output_compression.maximum`: `100` `POST /v1/images/generations` · `gpt-image-1-mini`: `prompt.maximum_length`: `32000`; `n.minimum`: `1`; `n.maximum`: `10`; `output_compression.minimum`: `0`; `output_compression.maximum`: `100`

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

## The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

## Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription

Choose a discounted plan for your regular requests.

Promo code: up to 50% off

Enter your code at checkout. The price updates to reflect the current promotion.

Spending in your history

The model, tokens and amount are recorded for each request.

[Choose a subscription](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application

Add text, image, video and audio generation to paid features in your service.

Reseller licence

Send a description of your project and how you provide access. Request written terms for use and resale.

Documents on the website

The service offer, licence agreement and data processing policy are available before you connect.

[Request a reseller licence](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
