⚡
GPT-4.1
by OpenAI · 1M context · flagship
1 million token context window. Optimized for long-document analysis, codebases, and retrieval tasks. Strong coding performance.
Pricing Comparison
Per 1 million tokens
| Official (OpenAI) | NeatAPI | You Save | |
|---|---|---|---|
| Input Tokens | $2.00 | $1.90 | $0.10 |
| Output Tokens | $8.00 | $7.60 | $0.40 |
That's 5% savings on every API call. See full pricing →
Code Examples
Drop-in replacement — just change the base URL and API key.
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
base_url="https://api.neatapi.ai/v1",
api_key="your-neatapi-key"
)
response = client.chat.completions.create(
model="gpt-4-1",
messages=[
{"role": "user", "content": "Hello, world!"}
]
)
print(response.choices[0].message.content) Node.js
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.neatapi.ai/v1',
apiKey: 'your-neatapi-key'
});
const response = await client.chat.completions.create({
model: 'gpt-4-1',
messages: [
{ role: 'user', content: 'Hello, world!' }
]
});
console.log(response.choices[0].message.content); cURL
curl https://api.neatapi.ai/v1/chat/completions \
-H "Authorization: Bearer your-neatapi-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4-1",
"messages": [
{"role": "user", "content": "Hello, world!"}
]
}' Key Specifications
Provider
OpenAI
Context Window
1M tokens
Category
Flagship
API Format
OpenAI-compatible
Related Models
Start Using GPT-4.1 Today
Get your API key in 30 seconds. Same API format as OpenAI — zero migration effort.