OpenAIChat
OpenAI: GPT-4.1
openai/gpt-4.1
1048KContext Window
33KMax Output
Supported Protocols:max_completion_tokensseedresponse_formatstructured_outputstoolstool_choicetemperaturetop_p
Normal
GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and GPT-4.5 across coding (54.6% SWE-bench Verified), instruction compliance (87.4% IFEval), and multimodal understanding benchmarks. It is tuned for precise code diffs, agent reliability, and high recall in large document contexts, making it ideal for agents, IDE tooling, and enterprise knowledge retrieval.
Capabilities
👁 Vision🔧 Function CallingText GenerationCode GenerationAnalysis & ReasoningReasoning
Technical Specs
Input Modality
Image、Text、Text
Output Modality
Text
Arch
—
Default Temperature
0.7
Default Top_P
1
Pricing
Pay per use, no monthly fees| Billing Type | Unit | Price |
|---|---|---|
| Text Input | — | $2.0000/M tokens |
| Text Output | — | $8.0000/M tokens |
| Cache Read | — | $0.5000/M tokens |
Quick Start
from openai import OpenAI
client = OpenAI(
base_url="https://api.uniontoken.ai/v1",
api_key="YOUR_UNIONTOKEN_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4.1",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)FAQ
OpenAI
OpenAI: GPT-4.1
openai/gpt-4.1
In< ¥0.001/1K
Out< ¥0.001/1K
Context Window1048K
Max Output33K
Related Models
View All → →Ready to get started?
Get 1M free tokens on registration, no monthly fees or minimum spend
Register Now →