About GPT 4.1
GPT 4.1 is an LLM that excels in coding, instruction following, and handling extremely long contexts—supporting up to one million tokens per interaction. It offers significant improvements over previous models in generating accurate code, following complex instructions, and understanding nuanced prompts within large documents or multi-step workflows.
Some other noteworthy features of GPT 4.1 include enhanced performance for agentic workflows and improved collaboration on tasks requiring detailed reasoning or multi-part instructions.
| Metric | Value |
|---|---|
| Context Length | 1,047,576 tokens |
| Multilingual | Yes |
Ready to build with GPT 4.1?
Try GPT 4.1 in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.
curl -sSf -X POST https://hub.oxen.ai/api/ai/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OXEN_API_KEY" \
-d '{
"model": "gpt-4-1-2025-04-14",
"messages": [
{
"role": "user",
"content": "Try sending a message."
}
]
}'API endpoint
See the API reference for request and response formats.
https://hub.oxen.ai/api/ai/chat/completions