AI Gateway

GPT 5.1 Thinking

openai/gpt-5.1-thinking

An upgraded version of GPT-5 that adapts thinking time more precisely to the question to spend more time on complex questions and respond more quickly to simpler tasks.

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