gpt-4o API

OpenAI gpt-4o for chat and coding; Flatkey routes this model through /v1/chat/completions. $2/$8 per 1M tokens 128,000-token context window.

Chat and codingLong contextTool workflows
Input /M
$2/ 1M tokens-20%$2.5/ 1M tokens
Cache /M
$1/ 1M tokens-20%$1.25/ 1M tokens
Output /M
$8/ 1M tokens-20%$10/ 1M tokens
Provider
OpenAI

gpt-4o API performance

gpt-4o API reliability and uptime

Live Flatkey request telemetry for gpt-4o appears here when enough production traffic is available.

Avg. provider uptime
97.7%
last 30 days
Latency
795ms
last 30 days
Requests
982
30-day window
Successful inference trend

gpt-4o API activity

gpt-4o API usage and request activity

Track request volume and successful inference activity for gpt-4o over the latest reporting window.

Requests
982
30-day window
Latency
795ms
last 30 days
Uptime
97.7%
last 30 days
Successful inference trendActivity

gpt-4o pricing

gpt-4o API pricing and billing

Prices below are calculated from Flatkey pricing data for this model and the visible groups currently returned by our pricing API.

Flatkey price

Input /M

Live catalog model
$2/ 1M tokens$2.5/ 1M tokens
Input /M
$2/ 1M tokens$2.5/ 1M tokens
Cache /M
$1/ 1M tokens$1.25/ 1M tokens
Output /M
$8/ 1M tokens$10/ 1M tokens
View API
Shared balance

Add credits

Add credits

Use the same Flatkey balance and API key across image, video, audio, and text models.

Model catalog
Model Type
Text
API
/v1/chat/completions
Billing basis
1M tokens

gpt-4o chat and coding: core capabilities

OpenAI's gpt-4o route supports text · image · file · audio. Catalog categories: Marketing.

gpt-4o chat and coding API

Call gpt-4o through /v1/chat/completions for chat, coding or agent workflows supported by the model's listed modalities.

gpt-4o long-context work

gpt-4o is listed with 128,000-token; use that catalog value as an integration planning reference and validate limits for your account.

gpt-4o tool and agent workflows

Keep tool calls, structured output and streaming behavior aligned with the endpoint contract instead of assuming every provider feature is interchangeable.

gpt-4o production routing

Use one Flatkey key for gpt-4o, usage controls and model routing while retaining the exact model id in your SDK configuration.

Compare

gpt-4o API comparison: capabilities and access

Compare the catalog facts for gpt-4o with the previous-generation baseline before changing your integration.

CapabilityPrevious generationgpt-4o
ProviderNot verified in this catalog snapshotOpenAI
ModalitiesNot verified in this catalog snapshottext · image · file · audio
ContextNot verified in this catalog snapshot128,000-token
EndpointNot verified in this catalog snapshot/v1/chat/completions
BillingNot verified in this catalog snapshot$2/$8 per 1M tokens

Why Flatkey

Why use Flatkey for gpt-4o?

OpenAI-compatible migration path

Chat Completions-style payloads reduce switching friction from existing model stacks.

Production routing

Keep usage, keys, quotas, and model routing in one Flatkey account.

Unified API access

Use one account and API key across image, video, audio, and language models.

Routing across upstream channels

Requests are spread across the channels serving this model, with 30-day uptime published above.

API

gpt-4o API

Four ways in, all on the same key and the same model catalog. Pick one to see a runnable example.

Call any model with an OpenAI-compatible API. Copy a ready-to-run example for your model and language.
Use the OpenAI SDK you already know — with Flatkey as the gateway.
Generate images and videos from your terminal. Let your AI assistant drive the workflow.
Connect your coding agent with one command, then use Flatkey from your existing projects.
curl https://router.flatkey.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-***" \
  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Say hello in one sentence."}]}'
Docs

FAQ

gpt-4o API
pricing, features, and usage FAQs

Answers about gpt-4o pricing, capabilities, endpoint access and catalog limits.

What is gpt-4o used for?
gpt-4o is listed by OpenAI for chat and coding; the catalog lists these modalities: text · image · file · audio.
How is gpt-4o priced?
Use the pricing section above for current Flatkey prices from our pricing API.
Which API endpoint calls gpt-4o?
Flatkey routes this model through /v1/chat/completions. Set the model field to gpt-4o and follow the fields supported by that endpoint.
What context or input limits does gpt-4o have?
gpt-4o is listed with 128,000-token. Other limits depend on the route and current account availability, so verify them before production use.