Speed
Output tokens / second
Custom pricing for production workloads
Multimodal AI model by OpenAI enhancing human-computer interaction.
openai/gpt-4o-2024-08-06https://api.aimlapi.com/v1Multimodal AI model by OpenAI enhancing human-computer interaction.
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.
Generate structured JSON responses directly, ideal for API orchestration and log automation.
Process and output extensive content like full transcripts, reports, or novels in a single request.
Build agents that take text, visuals, audio, and video, and return unified structured data.
Run high-throughput and chain-of-thought workflows with advanced JSON support at lower cost.
See how GPT 4o 2024‑08‑06 compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 15 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Reasoning across long documents of about 100k tokens.
Following precise instructions about the shape of the answer.
Customer support agent tasks with tool calls.
| Usage | Price | Unit |
|---|---|---|
| Input | $2.5 | 1M tokens |
| Output | $10 | 1M tokens |
| Cached input | $1.25 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $2.5 | $10 | |
| $0.1 | $0.5 | |
| $1 | $5 | |
| $2 | $10 | |
| $2.12 | $10.58 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-4o-2024-08-06",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "openai/gpt-4o-2024-08-06",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "openai/gpt-4o-2024-08-06",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());GPT 4o 2024‑08‑06 has a 128,000 tokens context window and can return up to 16,384 tokens.
GPT 4o 2024‑08‑06 takes image, text as input and returns text.
Use openai/gpt-4o-2024-08-06 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
GPT 4o 2024‑08‑06 became available on August 7, 2025.
GPT 4o 2024‑08‑06 costs $2.5 input and $10 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, GPT 4o 2024‑08‑06 can stream responses as they are generated.
Yes, GPT 4o 2024‑08‑06 accepts image input alongside text.
GPT 4o 2024‑08‑06 was built by OpenAI.
Yes, it supports function calling, tool use, and parallel tool calls.