Get started
OpenAI
OpenAI

GPT 4.1 Nano

GPT 4.1 Nano is a large language model by OpenAI with support for vision, function calling, prompt caching, and structured output. It supports a 1M token context window with up to 33K tokens of output. Priced at $0.1 per million input tokens and $0.4 per million output tokens, it is one of the most cost-efficient options in its class. Access GPT 4.1 Nano through Inworld Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
Function CallingPrompt CachingResponse SchemaVision

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-4.1-nano-a", "model_id": "openai/gpt-4.1-nano" }, "weight": 33 }, { "variant": { "variant_id": "openai/gpt-3.5-turbo-b", "model_id": "openai/gpt-3.5-turbo" }, "weight": 33 }, { "variant": { "variant_id": "openai/gpt-4.1-c", "model_id": "openai/gpt-4.1" }, "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 4.1 Nano pricing and providers

Access GPT 4.1 Nano 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
OpenAIOpenAI1M32.8K$0.10$0.40+1

Other OpenAI models available through Inworld

Compare GPT 4.1 Nano with other OpenAI models available through Inworld Router or Realtime API.
CapabilitiesInput modalitiesOutput modalitiesInference provider
OpenAIGPT 3.5 Turbo16.4K4.1K$0.50$1.50
OpenAIGPT 4.11M32.8K$2.00$8.00+2
OpenAIGPT 4.1 Mini1M32.8K$0.40$1.60+2
OpenAIGPT 4.1 Nano 2025 04 141M32.8K$0.10$0.40+1
OpenAIGPT 4o128K16.4K$2.50$10.00+1
OpenAIGPT 4o 2024 08 06128K16.4K$2.50$10.00+1
OpenAIGPT 4o Mini128K16.4K$0.15$0.60+1
OpenAIGPT 4o Mini 2024 07 18128K16.4K$0.15$0.60+1
OpenAIGPT 4o Mini Audio Preview$0.15$0.60
OpenAIGPT 5 Mini272K128K$0.25$2.00+4
OpenAIGPT 5 Nano272K128K$0.05$0.40+4
OpenAIGPT 5.2272K128K$1.75$14.00+4
OpenAIGPT 5.41.1M128K$2.50$15.00+3
OpenAIGPT 5.4 Mini272K128K$0.75$4.50+4
OpenAIGPT 5.4 Nano272K128K$0.20$1.25+4
OpenAIGPT 5.51.1M128K$5.00$30.00+4
OpenAIGPT Audio Mini128K16.4K$0.60$2.40
OpenAIOpenai/gpt Oss 120b131.1K131.1K$0.039$0.19+2
OpenAIOpenai/gpt Oss 120b Turbo$0.15$0.60
OpenAIOpenai/gpt Oss 20b131.1K32.8K$0.075$0.30+2
OpenAIOpenai/gpt Oss Safeguard 20b131.1K65.5K$0.075$0.30+2

Start building with GPT 4.1 Nano

Access GPT 4.1 Nano and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI
GPT 4.1 Nano by OpenAI — Pricing, Specs & API Access | Inworld