AI Gateway

GPT-4.1 mini

openai/gpt-4.1-mini

GPT 4.1 mini provides a balance between intelligence, speed, and cost that makes it an attractive model for many use cases.

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