> ## Documentation Index
> Fetch the complete documentation index at: https://mixroute.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT-4o (2024-08-06)

> GPT-4o (2024-08-06) | Text generation

Text generation · `gpt-4o-2024-08-06`

Use the dated ID to pin this model version instead of selecting a rolling alias.

`POST /v1/chat/completions`

Check availability in the [Model Marketplace](https://console.mixroute.ai/models) for your API key's group. A catalog listing does not guarantee that a route is enabled.

## Quick Example

Set `MIXROUTE_API_KEY` before running the example.

```bash theme={null}
curl --fail-with-body --request POST 'https://api.mixroute.ai/v1/chat/completions' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "gpt-4o-2024-08-06",
  "messages": [
    {
      "role": "user",
      "content": "Reply with OK only."
    }
  ],
  "max_tokens": 64
}'
```

Read the text in `choices[0].message.content`.

## Parameters

| Field | Description |
| - | - |
| `model` | `gpt-4o-2024-08-06`. Use the exact model ID shown above. |
| `messages` | Input conversation in the example. |

## API Reference

* [Chat Completions](https://mixroute.ai/docs/api-reference/endpoint/chat-openai.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.