Skip to content

OpenAI: GPT-4o (2024-08-06)

OpenAIModerated
openai/gpt-4o-2024-08-06

About this model

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...

Make a request

OpenAI-compatible: set the base URL and your Promptix API key, keep your existing SDK.

curl https://promptix.tn/api/v1/chat/completions \  -H "Authorization: Bearer $PROMPTIX_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "openai/gpt-4o-2024-08-06",    "messages": [      {"role": "user", "content": "Hello! What can you do?"}    ]  }'

Pricing

In TND per 1M tokens. VAT and the platform fee are added at top-up.

Input tokens

8.306 TND

per 1M tokens

Output tokens

33.226 TND

per 1M tokens

1,000 requests with 1K input and 500 output tokens cost about 24.919 TND.

Specifications

Provider
OpenAI
Context window
128,000 tokens
Input modality
Text
Added
Aug 6, 2024
Supported parameters
frequency_penaltylogit_biaslogprobsmax_completion_tokensmax_tokenspredictionpresence_penaltyresponse_format