OpenAI: GPT-4o mini

openai/gpt-4o-mini

OpenAI GPT-4o mini API pricing

GPT-4o mini costs $0.060 per million input tokens and $0.240 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.150 input and $0.600 output), and cached input tokens are billed at $0.030 per million. It accepts text and images and returns text, with a 128K-token context window and up to 16K output tokens per response. A cheaper OpenAI option is GPT-6 Luna at $0.040 / $0.200 per 1M tokens; for every model and rate, see OpenAI API pricing.

Fast, affordable small model for focused tasks. Text and image input, text output.
ModalitiesTextImageText
Price$0.060 / $0.240 per 1M tokens in / outAll OpenAI API pricing
Context128K

Providers

Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.

ProviderInput /MOutput /MCache read /M
OpenAI$0.060$0.240$0.030

Capabilities (8)

StreamingTool callingStructured outputSystem promptVisionPrompt cachingBatchFine Tunable

Supported parameters (2)

toolsresponse_format

A parameter not listed here may be removed before the request reaches the model. When it is, the request still succeeds and the response names it, with the reason, in provider_specific_fields.dropped_params.

Pricing

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

Input price
$0.060
per 1M input tokens · standard price $0.150
Output price
$0.240
per 1M output tokens · standard price $0.600
RateStandard priceChargedUnit
Input$0.150$0.060per 1M input tokens
Output$0.600$0.240per 1M output tokens
Cached input$0.075$0.030per 1M cached input tokens
Cache write$0$0per 1M cache-write tokens

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

UTC

Specifications

Model ID
gpt-4o-mini
Developer
OpenAI
Type
Text
Input
Text and images
Output
Text
Context window
128,000 tokens
Max output
16,384 tokens
Knowledge cutoff
October 2023
Tokenizer
GPT
Series
GPT-4o
Image input
Up to 20 MB each
Endpoint
/v1/chat/completions

Quickstart

Call gpt-4o-mini with a POST to /v1/chat/completions on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[
        {"role": "user", "content": "Explain unified AI APIs in one sentence."},
    ],
)
print(response.choices[0].message.content)

Availability

The share of requests to this model that completed successfully over the last 30 days. Requests the caller cancelled, and requests still in flight, are not counted. When an upstream provider errors, the gateway retries against another provider serving the same model, so a single provider incident does not necessarily show up here.

Success rate (30 days)
0.00%
over 409 completed requests
Days with traffic
29
of the last 30 days

Days are UTC days. Days with no completed requests are omitted rather than drawn at 100% — no traffic is not evidence of availability.

Activity

Token volume and request traffic to this model over time. Daily totals, UTC.

Prompt29.7K
Completion0

Prompt tokens measure input size. Completion tokens reflect total output length. Reasoning is not priced separately for this model, so it is not itemised here.

Frequently asked questions

What is GPT-4o mini?
Fast, affordable small model for focused tasks. Text and image input, text output.
How much does GPT-4o mini cost?
GPT-4o mini costs $0.060 per million input tokens and $0.240 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.150 input and $0.600 output), and cached input tokens are billed at $0.030 per million. You pay per request, with no subscription.
What is the context length of GPT-4o mini?
GPT-4o mini has a context window of 128,000 tokens, and can return up to 16,384 tokens in one response.
Does GPT-4o mini support tool calling and structured outputs?
Yes — GPT-4o mini supports both tool calling and structured outputs.
What inputs and outputs does GPT-4o mini support?
GPT-4o mini accepts text and images as input and returns text.
Which API endpoint does GPT-4o mini use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "gpt-4o-mini", authenticated with your Oxyy API key. It is also served on /v1/responses (Responses API).
What is the knowledge cutoff of GPT-4o mini?
GPT-4o mini's training data runs up to October 2023.
What other models does OpenAI have?
OpenAI also offers chat-latest, GPT-4o, GPT-5.1 and GPT-5.2 through Oxyy.

Alternatives to GPT-4o mini

Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

Explore more models

More models from OpenAI