GPT-4.1
Chatopenai/gpt-4.1OpenAI's flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. Features 1M context window for complex document analysis and code generation.
1M context window
33K max output tokens
Released: 2025-04-14
Supported Protocols:openai
Available Providers:Azure
Capabilities:VisionFunction CallingPrompt CachingAudio InputPDF Input
Pricing
| Type | Price |
|---|---|
| Input Tokens | $2/M |
| Output Tokens | $8/M |
| Cache Read | $0.5/M |
| Web Search | $0.01/R |
Code Examples
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.ai/v1",api_key="YOUR_OFOX_API_KEY",)response = client.chat.completions.create(model="openai/gpt-4.1",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
Related Models
Frequently Asked Questions
GPT-4.1 on Ofox.ai costs $2/M per million input tokens and $8/M per million output tokens. Pay-as-you-go, no monthly fees.
GPT-4.1 supports a context window of 1M tokens with max output of 33K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.ai/v1 and use your Ofox API key. The API is OpenAI-compatible โ just change the base URL and API key in your existing code.
GPT-4.1 supports the following capabilities: Vision, Function Calling, Prompt Caching, Audio Input, PDF Input. Access all features through the Ofox.ai unified API.