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

> August 2024 snapshot of GPT-4 Omni with improved structured outputs and function calling.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `openai/gpt-4o-2024-08-06`
- Status: stops working on 2027-01-14, use openai/gpt-6-luna instead
- Live status and providers as JSON, no key needed: https://api.ohmygpt.com/v1/models/openai/gpt-4o-2024-08-06
- Released: 2024-08-06
- Context: 128K tokens
- Max output: 16K tokens
- Input: text, image; output: text
- Knowledge cutoff: 2023-09
- Human preference rating (LMArena text): 1283

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $2.25 | per 1M tokens |
| Output | $9.00 | per 1M tokens |
| Cache read | $1.125 | per 1M tokens |
| Web search | $0.0225 | per request |

## Providers

This model chooses its provider itself; a provider prefix is not accepted.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| OpenAI | — | United States | $2.25 | $9.00 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `openai/gpt-4o-2024-08-06` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `openai/gpt-4o-2024-08-06` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `openai/gpt-4o-2024-08-06` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/openai/gpt-4o-2024-08-06:generateContent | `openai/gpt-4o-2024-08-06` |

## Example

```bash
curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-2024-08-06",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/openai/gpt-4o-2024-08-06
