AI Gateway

All Models/

GPT-4.1 nano

GPT-4.1 nano by OpenAI

GPT-4.1 nano is the fastest, most cost-effective GPT 4.1 model.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'openai/gpt-4.1-nano',
prompt: 'Why is the sky blue?'
})