OpenAI
GPT 4.1
openai/gpt-4.1GPT 4.1 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 $2 per million input tokens and $8 per million output tokens. Access GPT 4.1 through Inworld LLM Inference with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
- Input
- $2.00
- Output
- $8.00
- Cache read
- $0.50
- Context
- 1M
- Max output
- 32.8K
TextImageFile→Text
Function CallingPrompt CachingStructured outputVision
curl --fail-with-body https://api.inworld.ai/v1/chat/completions \
-H "Authorization: Basic $INWORLD_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-4.1",
"messages": [{"role": "user", "content": "Hello"}],
"stream": true
}'Model GPT 4.1OpenAI SDK compatible
Pricing and providers
Access GPT 4.1 through Inworld LLM Inference or speech to speech via OpenAI. By using the providers below you agree to their terms, listed under each provider's name in the Legal section.
| Modalities | |||||||
|---|---|---|---|---|---|---|---|
OpenAIThis pageopenai/gpt-4.1 | $2.00 | $8.00 | $0.50 | — | 1M | 32.8K | TextImageFile→Text |
Prices in USD per 1M tokens.
Start building with GPT 4.1
Access GPT 4.1 and every other model through LLM Inference or speech to speech. Create a free account and start in minutes.