Skip to content

OpenAI

GPT-4.1 nano

Lowest-cost GPT-4.1 model.

openai/gpt-4.1-nano
Input → Output
Text, images → Text/Text
Maximum input
200K tokens
Provider
1
Tool invocation
Yes

Price per million tokens

Input
162 credits
Output
648 credits
Cached input reads
40.5 credits

Provider

Several providers serve the same model. Performance is measured on actual AlpRouter requests over the last seven days, and uptime over the last three.

ProviderInput / 1MOutput / 1MCache readFirst tokenThroughputUptime
Microsoft Foundry162 credits648 credits40.5 credits---

Time to first token and throughput are medians (P50). Values are hidden for fewer than 10 requests.

Use the API

from openai import OpenAI

client = OpenAI(
    base_url="https://alprouter.com/api/v1",
    api_key="alp-your-key",
)

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

Details

Maximum input
200K tokens
Scheduled retirement
2027.04.14 (date set by the provider)
Maximum output
32.8K tokens
Tool invocation
Supported
Supported input
Text, images
Output
Text/Text
Provider
Microsoft Foundry
Supported parameters
max_completion_tokens, max_tokens, n, parallel_tool_calls, response_format, seed, stop, stream, temperature, tool_choice, tools, top_p

Frequently asked questions

What kind of model is GPT-4.1 nano?

A model from OpenAI. Lowest-cost GPT-4.1 model. Model ID on AlpRouter: openai/gpt-4.1-nano

How much does GPT-4.1 nano cost?

Per million tokens: 162 credits input, 648 credits output. One credit equals ₩1. Only usage is deducted from your balance. There is no monthly subscription.

How much input does GPT-4.1 nano accept?

Each request accepts up to 200K tokens. The maximum output is 32.8K tokens.

What input and output does GPT-4.1 nano support?

Send Text, images to receive Text/Text.

Does GPT-4.1 nano support tool calling and structured JSON?

Tool calling: Supported. Structured output (response_format): Supports the json_object, json_schema format..

Which providers handle GPT-4.1 nano requests?

Microsoft Foundry handles these requests.

How do I call GPT-4.1 nano from code?

Just replace the base_url in the OpenAI SDK with https://alprouter.com/api/v1. Also, specify the name of the model in the model field (openai/gpt-4.1-nano). There’s an example of how to do this in the “Using the API” section above.

Other models from OpenAI