Description
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. Read more [here](https://openai.com/index/introducing-structured-outputs-in-the-api/). GPT-4o ("o" for "omni") is...
API Usage Examples
OpenAI Compatible Endpoint
Use this endpoint with any OpenAI-compatible library. Model: OpenAI: GPT-4o (2024-08-06) (openai/gpt-4o-2024-08-06)
curl https://api.ridvay.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "openai/gpt-4o-2024-08-06",
"messages": [
{
"role": "user",
"content": "Explain the capabilities of the OpenAI: GPT-4o (2024-08-06) model"
}
],
"temperature": 0.7,
"max_tokens": 1024
}'Supported Modalities
- Text
- Images
API Pricing
- Input: 2.5$ / 1M tokens
- Output: 10$ / 1M tokens
Token Limits
- Max Output: 16,384 tokens
- Max Context: 128,000 tokens
Subscription Tiers
- free
- pro
- ultimate