OpenAI

GPT-4.1 Nano

Chat
Not available
Get started

One of the cheapest capable models available anywhere. OpenAI's answer to budget-conscious developers.

Context
1.05Mtokens
Max output
16Ktokens
Latency
~5ms
Released
2026-01

Pricing

$ / 1M tokens
Input
$0.10/M
Output
$0.40/M
Cache Read
$0.025/M
Cache Write
$0.10/M

Capabilities

4 listed
  • Chat
  • Tool Use
  • Vision
  • Coding

Code examples

POST /v1/chat/completions
python
from openai import OpenAI

client = OpenAI(
    api_key="your_api_key",
    base_url="https://api.modelstack.cc/v1",
)

response = client.chat.completions.create(
    model="gpt-4.1-nano",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Related models

Frequently asked questions

How is GPT-4.1 Nano billed on ModelStack?expand_more
ModelStack bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.
What are the context window and maximum output for GPT-4.1 Nano?expand_more
GPT-4.1 Nano has a 1.05M context window and supports up to 16K of output.
How can I call GPT-4.1 Nano through ModelStack?expand_more
Use the model ID `gpt-4.1-nano` with any OpenAI-compatible SDK pointed at the ModelStack API — see the code examples above for Python, Node.js, and cURL.
Which capabilities does GPT-4.1 Nano support?expand_more
GPT-4.1 Nano supports: Chat, Tool Use, Vision, Coding.