Inworld has acquired UltravoxRead announcement →
Get started
OpenAI
OpenAI

GPT 4o

GPT 4o is a large language model by OpenAI with support for vision, function calling, prompt caching, and structured output. It supports a 128K token context window with up to 16K tokens of output. Priced at $2.5 per million input tokens and $10 per million output tokens. Access GPT 4o through Inworld Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
→Function CallingPrompt CachingResponse SchemaVisionresponseFormatCapability

Step 1 — Create Router

curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "compare-frontier-models", "defaultRoute": { "route_id": "default", "variants": [ { "variant": { "variant_id": "openai/gpt-4o-a", "model_id": "openai/gpt-4o" }, "weight": 33 }, { "variant": { "variant_id": "openai/gpt-4o-mini-b", "model_id": "openai/gpt-4o-mini" }, "weight": 33 }, { "variant": { "variant_id": "openai/gpt-6-luna-c", "model_id": "openai/gpt-6-luna" }, "weight": 34 } ] } }'

Step 2 — Chat Completion

curl --location 'https://api.inworld.ai/v1/chat/completions' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "inworld/compare-frontier-models", "messages": [{"role": "user", "content": "Hello!"}] }'

GPT 4o pricing and providers

Access GPT 4o through OpenAI via Inworld Router or Realtime API. By using the AI provider(s) below you acknowledge you reviewed and agree to their terms listed in the Legal section under the AI provider's name.
CapabilitiesInput modalitiesOutput modalities
OpenAIOpenAI$2.50$10.00$1.25—128K16.4K+2
Prices in USD per 1M tokens.

Other OpenAI models available through Inworld

Compare GPT 4o with other OpenAI models available through Inworld Router or Realtime API.
ProviderCapabilitiesInput modalitiesOutput modalities
OpenAIGPT 4o Mini$0.15$0.60$0.075—128K16.4K+2
OpenAIGPT 6 Luna$0.10$0.50$0.01$0.1251.1M128K+4
OpenAIGPT 5.6 Luna$0.20$1.20$0.02$0.251.1M128K+4
OpenAIGPT 6.1 Sol$2.00$10.00$0.10$2.501.1M128K+4
OpenAIGPT 6 Astra$10.00$50.00$1.00$12.501.1M128K+4
OpenAIGPT 6 Luna:fast$0.20$1.00$0.02$0.251.1M128K+4
OpenAIGPT 6 Sol$2.00$10.00$0.20$2.501.1M128K+4
OpenAIGPT 5.6 Sol$5.00$30.00$0.50$6.251.1M128K+4
OpenAIGPT 5.6 Terra$2.00$12.00$0.20$2.501.1M128K+4
OpenAIGPT 5.5$5.00$30.00$0.50—1.1M128K+4
OpenAIGPT 5.4$2.50$15.00$0.25—1.1M128K+4
OpenAIGPT 5.4 Mini$0.75$4.50$0.075—400K128K+4
OpenAIGPT 5.4 Nano$0.20$1.25$0.02—400K128K+4
OpenAIGPT 5.2$1.75$14.00$0.175—400K128K+4
OpenAIGPT 5.1$1.25$10.00$0.125—400K128K+4
OpenAIGPT 5 Mini$0.25$2.00$0.025—400K128K+3
OpenAIGPT 5 Nano$0.05$0.40$0.005—400K128K+3
OpenAIGPT 4o 2024 08 06$2.50$10.00$1.25—128K16.4K+2
OpenAIGPT 4.1$2.00$8.00$0.50—1M32.8K+2
OpenAIGPT 4.1 Mini$0.40$1.60$0.10—1M32.8K+2
OpenAIGPT 4.1 Nano$0.10$0.40$0.025—1M32.8K+1
OpenAIGPT 4.1 Nano 2025 04 14$0.10$0.40$0.025—1M32.8K+2
OpenAIGPT 3.5 Turbo$0.50$1.50——16.4K4.1K
OpenAIGPT Image 2$8.00$30.00$2.00—32.8K32.8K
OpenAIGPT Oss 120b$0.037$0.17——131.1K131.1K+2
OpenAIGPT Oss 120b$0.15$0.60$0.075—131.1K32.8K+3
OpenAIGPT Oss 20b$0.075$0.30$0.038—131.1K32.8K+3
OpenAIGPT Oss Safeguard 20b$0.075$0.30$0.038—131.1K65.5K+3
Prices in USD per 1M tokens.

Start building with GPT 4o

Access GPT 4o and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI