models

OpenAI: GPT Image 1

Markdown · JSON

OpenAI: GPT Image 1

GPT Image 1 generates and edits images from text and visual inputs, including reference-led compositions and masked changes. It supports selectable input fidelity, standard frame sizes, transparent backgrounds and PNG, JPEG or WebP output.

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 is OpenAI’s natively multimodal image model, accepting text and image inputs and producing image outputs. It can generate a new scene, use reference images to shape a composition or edit an existing asset through a new instruction. Practical work includes illustration, product imagery, design concepts and local changes guided by a mask. This is the named GPT Image 1 edition, separate from Image 1 Mini, Image 1.5 and later GPT Image versions.

Prepare a brief that states the subject, setting, composition, lighting and visual style. If the task needs visible text, include the exact wording and explain its intended hierarchy and position. For a reference composition, assign each image a clear role, such as a product, an environment or a visual treatment. The direct generation and edit workflows permit a prompt up to 32,000 characters and one to ten image results. Compare the returned variations against the same brief and keep the chosen asset for subsequent work.

Editing can take up to sixteen reference images. GPT Image 1 supports low and high input_fidelity, with low as the default. This control affects the effort to preserve the source image’s features and style; it is separate from rendering quality and output size. A high-fidelity edit is useful when source details matter, but it is not a guarantee that every identifying detail will remain identical. State what should be retained and what may change rather than relying on the fidelity setting alone.

Masked editing identifies an area to modify. Prepare the source and mask in the same format and dimensions, below 50 MB in the guide’s requirements, with an alpha channel in the mask. With multiple source images, the mask is applied to the first. A useful edit brief can ask for a different wall colour while retaining furniture, camera angle and lighting. The model uses the mask as guidance rather than promising an exact boundary, so inspect both the changed area and its surroundings.

The documented standard output sizes are 1024 × 1024, 1536 × 1024 and 1024 × 1536 pixels, with automatic size selection where supported. Quality is low, medium, high or auto. GPT Image 1 uses these standard frames and quality levels up to high. Choose the standard frame around the intended display and the detail level around the asset’s purpose.

PNG is the default output, with JPEG and WebP alternatives. Compression from 0 to 100 is available for JPEG and WebP. Transparent, opaque and automatic background choices support different delivery needs; transparency requires PNG or WebP. For an isolated graphic, use a format that retains its alpha channel before placing it in a later layout. For a complete scene, keep the background and the subject’s relationship to it in the brief.

OpenAI documents generation and editing directly, and the model card also includes conversational image use. For iterative work, retain the chosen result as the source for a follow-up change instead of choosing a different variation implicitly. The image reference documents streaming with up to three partial images; these show progress rather than extra finished assets. Keep the completed image and the brief together so later edits refer to the actual composition. The manufacturer interface also supports batch processing.

The model can still have difficulty with precise text placement, tightly structured layouts and consistency across recurring subjects. Inspect lettering, object boundaries, colour treatment and the details that identify source material at the intended size. If an edit needs refinement, describe the visible mismatch and the elements to preserve. GPT Image 1 is useful for a concrete sequence of generation, reference-led editing and asset preparation, with its own standard sizes and selectable input fidelity kept distinct from other editions.

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

openai/gpt-image-1

OpenAI /openai/gpt-image-1

Overview

GPT Image 1 generates and edits images from text and visual inputs, including reference-led compositions and masked changes. It supports selectable input fidelity, standard frame sizes, transparent backgrounds and PNG, JPEG or WebP output.

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
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
openai/gpt-image-1
Default—
FieldpromptTypestringRequirementRequiredValues & limits
Minimum length: 1
Default—
Fieldaspect_ratioTypestringRequirementOptionalValues & limits
1:1, 3:2, 2:3, auto
Default—
FieldqualityTypestringRequirementOptionalValues & limits
auto, low, medium, high
Default—
FieldbackgroundTypestringRequirementOptionalValues & limits
auto, transparent, opaque
Default—
FieldnTypeintegerRequirementOptionalValues & limits
Minimum: 1
Maximum: 10
Default—
Fieldinput_referencesTypearrayRequirementOptionalValues & limits
Minimum items: 0
Maximum items: 16
Default—
Fieldoutput_compressionTypeintegerRequirementOptionalValues & limits
Minimum: 0
Maximum: 100
Default—
FieldproviderTypeobjectRequirementOptionalValues & limitsDefault—
Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, prompt
Parametermaterial_typesContracttext, 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.

ConfigurationRate scheduleForecast quantityCharge
ConfigurationBase token ratesRate scheduleBase rateForecast 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 costRate schedule—Forecast quantityone generation estimateCharge
Output · Estimated generation cost · Estimate for comparison only $0.32768 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 →

Example requests

Ailoot Ultra · Images

curl
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', '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
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
FieldType
FieldcreatedType
Fielddata[].urlType
Fielddata[].b64_jsonType
FieldusageType

Aliases

Model aliases

Ailoot Ultra openai/gpt-image-1

Method path aliases

/v1/images

Related caller IDs

openai/gpt-image-1

FAQ · OpenAI: GPT Image 1
What inputs and results are available?

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

Which fields does the request use?

POST /v1/images/generations · openai/gpt-image-1: model, prompt, aspect_ratio, quality, background, n, input_references, output_compression, provider

What limits apply?

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

More details

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 · View model prices

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 · Service offer and licence agreement