AI Gateway

/

GPT-4o

GPT-4o by OpenAI

GPT-4o from OpenAI has broad general knowledge and domain expertise allowing it to follow complex instructions in natural language and solve difficult problems accurately. It matches GPT-4 Turbo performance with a faster and cheaper API.

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