OpenAI: GPT-4o

openai/gpt-4o

OpenAI GPT-4o API pricing

GPT-4o costs $1.00 per million input tokens and $4.00 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $2.50 input and $10.00 output), and cached input tokens are billed at $0.500 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 Sol at $0.800 / $4.00 per 1M tokens; for every model and rate, see OpenAI API pricing.

Versatile, high-intelligence GPT model. Accepts text and image input and produces text, including Structured Outputs.
ModalitiesTextImageText
Price$1.00 / $4.00 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$1.00$4.00$0.500

Capabilities (9)

StreamingTool callingStructured outputSystem promptVisionPrompt cachingBatchFine TunablePredicted Outputs

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
$1.00
per 1M input tokens · standard price $2.50
Output price
$4.00
per 1M output tokens · standard price $10.00
RateStandard priceChargedUnit
Input$2.50$1.00per 1M input tokens
Output$10.00$4.00per 1M output tokens
Cached input$1.25$0.500per 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
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 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",
    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 324 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.

Prompt28.6K
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?
Versatile, high-intelligence GPT model. Accepts text and image input and produces text, including Structured Outputs.
How much does GPT-4o cost?
GPT-4o costs $1.00 per million input tokens and $4.00 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $2.50 input and $10.00 output), and cached input tokens are billed at $0.500 per million. You pay per request, with no subscription.
What is the context length of GPT-4o?
GPT-4o has a context window of 128,000 tokens, and can return up to 16,384 tokens in one response.
Does GPT-4o support tool calling and structured outputs?
Yes — GPT-4o supports both tool calling and structured outputs.
What inputs and outputs does GPT-4o support?
GPT-4o accepts text and images as input and returns text.
Which API endpoint does GPT-4o use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "gpt-4o", authenticated with your Oxyy API key. It is also served on /v1/responses (Responses API).
What is the knowledge cutoff of GPT-4o?
GPT-4o's training data runs up to October 2023.
What other models does OpenAI have?
OpenAI also offers chat-latest, GPT-4o mini, GPT-5.1 and GPT-5.2 through Oxyy.

Alternatives to GPT-4o

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