Speed
Output tokens / second
Custom pricing for production workloads
Multimodal AI model by OpenAI enhancing human-computer interaction.
openai/gpt-4o-2024-05-13https://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.
See how GPT 4o 2024‑05‑13 compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 17 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.
Competitive programming problems published after training cutoffs.
Multiple-choice knowledge and reasoning across 14 subjects.
Competition mathematics problems.
| Usage | Price | Unit |
|---|---|---|
| Input | $5.29 | 1M tokens |
| Output | $15.87 | 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 |
|---|---|---|
| $5.29 | $15.87 | |
| $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-05-13",
"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-05-13",
"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-05-13",
"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‑05‑13 has a 128,000 tokens context window and can return up to 16,384 tokens.
GPT 4o 2024‑05‑13 takes image, text as input and returns text.
Use openai/gpt-4o-2024-05-13 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
GPT 4o 2024‑05‑13 became available on August 7, 2025.
GPT 4o 2024‑05‑13 costs $5.29 input and $15.87 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, GPT 4o 2024‑05‑13 can stream responses as they are generated.
Yes, GPT 4o 2024‑05‑13 accepts image input alongside text.
GPT 4o 2024‑05‑13 was built by OpenAI.
Yes, it supports function calling and parallel tool calls, including structured outputs.
Yes, it supports file input in addition to text and image inputs.