GPT-5 Image Mini API

GPT-5 Image Mini on AIMLAPI.

Modalities
Image, TextText
In / Out price
$2.65/$2.12per 1M
Context window
400K tokens
Released
Oct 16, 2025

GPT-5 Image Mini overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by GPT-5 Image Mini through AI/ML API

GPT-5 Image Mini specs

Model ID
openai/gpt-5-image-mini
Developer
OpenAI
Context window
400,000 tokens
Max output
128,000 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.

Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.

Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.

Use cases

GPT-5 Image Mini is a natively multimodal model that accepts file, image, and text inputs and returns image and text outputs. It is documented as supporting image generation and image editing, along with text rendering and instruction following.

It can be used for generating images from text prompts and reference images, including editing existing images when a user provides image inputs. It can also be used for workflows that combine text understanding with visual creation, such as producing graphics from written instructions or revising images based on textual feedback.

Because it supports file input, it can be used to inspect and work from uploaded documents or other supported files as part of a text-and-image workflow. Because it supports structured output and tools, it can be used in applications that need formatted responses or external tool-assisted image and text tasks.

Capabilities

  • Function calling
  • Reasoning
  • Streaming
  • Structured outputs
  • Web search

GPT-5 Image Mini API pricing

GPT-5 Image Mini pricing in US dollars
UsagePriceUnit
Input$2.651M tokens
Output$2.121M tokens
Cached input$0.26451M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

GPT-5 Image Mini vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
GPT-5 Image Mini$2.65$2.12
GPT-6 Luna$0.1$0.5
GPT-6.1 Terra$1$5
GPT-6.1 Sol$2$10
GPT-6.1 Terra Pro$2.12$10.58

How to use the GPT-5 Image Mini API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-5-image-mini",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

GPT-5 Image Mini FAQ

What is the context window of GPT-5 Image Mini?

GPT-5 Image Mini has a 400,000 tokens context window and can return up to 128,000 tokens.

What inputs and outputs does GPT-5 Image Mini support?

GPT-5 Image Mini takes image, text as input and returns text.

What is the model ID for GPT-5 Image Mini?

Use openai/gpt-5-image-mini as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does GPT-5 Image Mini cost?

GPT-5 Image Mini costs $2.65 input and $2.12 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does GPT-5 Image Mini support streaming?

Yes, GPT-5 Image Mini can stream responses as they are generated.

Can GPT-5 Image Mini read images?

Yes, GPT-5 Image Mini accepts image input alongside text.

Who created GPT-5 Image Mini?

GPT-5 Image Mini was built by OpenAI.

How can I access GPT-5 Image Mini?

GPT-5 Image Mini is available via the API endpoint https://api.aimlapi.com/v1/chat/completions.

Start building with GPT-5 Image Mini

GPT-5 Image Mini API

openai/gpt-5-image-mini

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-5-image-mini",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'