OpenAI · Reasoning
GPT-4o (2024-08-06)
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.
Input Price / 1M Tokens
$3.05
Output Price / 1M Tokens
$12.20
Context Window
128K
VisionToolsReasoning
Python Example — openai/gpt-4o-2024-08-06
from openai import OpenAI
client = OpenAI(
base_url="https://relaystack-ai.vercel.app/v1",
api_key="sk-rs-your-key-here",
)
response = client.chat.completions.create(
model="openai/gpt-4o-2024-08-06",
messages=[{"role": "user", "content": "Hello from RelayStack!"}],
)
print(response.choices[0].message.content)