AI Gateway

/

GPT-4 Turbo

GPT-4 Turbo by OpenAI

gpt-4-turbo from OpenAI has broad general knowledge and domain expertise allowing it to follow complex instructions in natural language and solve difficult problems accurately. It has a knowledge cutoff of April 2023 and a 128,000 token context window.

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