support for audio prompts and the ability to generate spoken audio responses.
Specifications
Context128,000
Maximum Output16,384
Inputtext, audio, image
Outputtext, audio, json
Performance (7-day Average)
Uptime
TPS
Pricing
Input$2.75/MTokens
Output$11.00/MTokens
Input Audio$44.00/MTokens
Output Audio$88.00/MTokens
Usage Statistics
No usage data available for this model during the selected period
View your usage statistics for this model
Similar Models
Code Examples
Use the OpenAI Python SDK to call this model. Replace your-api-key with your API key.
python
from openai import OpenAI
client = OpenAI(
base_url="https://api.ohmygpt.com/v1",
api_key="your-api-key", # Replace with your API key
)
response = client.chat.completions.create(
model="gpt-4o-audio-preview",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)