The 2024-08-06 version of GPT-4o offers improved performance in structured outputs, with the ability…
from openai import OpenAI
client = OpenAI(
base_url="https://orcarouter.ai/v1",
api_key="$ORCAROUTER_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4o-2024-08-06",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)| Input / 1M tokens | $2.50 |
| Output / 1M tokens | $10.00 |
| Cache read / 1M | $1.25 |
| Currency | USD |