Try Hanzo
OpenAI

GPT-4o (2024-08-06)

The 2024-08-06 version of GPT-4o offers improved performance in structured outputs, with the ability to supply a JSON schema in the respone_format.

Specifications

Context Window128K
Modalitiestext
Price…
Model IDopenai/gpt-4o-2024-08-06
TypeScript
import OpenAI from 'openai'

const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})

const response = await client.chat.completions.create({
  model: 'openai/gpt-4o-2024-08-06',
  messages: [{ role: 'user', content: 'Hello!' }]
})

console.log(response.choices[0].message.content)
…

Use GPT-4o (2024-08-06) via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.