GPT-4o ("o" for "omni") is OpenAI's latest AI model, supporting both text and image inputs with text…
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-05-13",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)| Input / 1M tokens | $5.00 |
| Output / 1M tokens | $15.00 |
| Currency | USD |