AI Gateway

All Models/

gpt-oss-20b

gpt-oss-20b by OpenAI

A compact, open-weight language model optimized for low-latency and resource-constrained environments, including local and edge deployments

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