openaiVision

OpenAI: GPT-4.1 Nano

For tasks that demand low latency, GPT‑4.1 nano is the fastest and cheapest model in the GPT-4.1 series. It delivers exceptional performance at a small size with its 1 million...

Context
1M tokens
Input / 1M tokens
$0.10
Output / 1M tokens
$0.40
Benchmark

Pricing

Input tokens$0.10 per 1M tokens
Output tokens$0.40 per 1M tokens
Cache read$0.02 per 1M tokens

Technical details

Model IDopenai/gpt-4.1-nano
Context window1M tokens
Input modalitiesimage, text, file, pdf
Output modalitiestext
TokenizerGPT
Max output tokens32,768

Use with MegaBrain

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://getmegabrain.com/api/gateway/v1',
  apiKey: process.env.MEGABRAIN_API_KEY,
})

const response = await client.chat.completions.create({
  model: 'openai/gpt-4.1-nano',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use OpenAI: GPT-4.1 Nano?

Get an API key and start making requests in minutes.

Get an API key