GPT-4o is OpenAI's legacy flagship multimodal model — still production-available in April 2026 despite being superseded by GPT-5 and GPT-5.4. Pricing holds at $2.50 input /
0 output per MTok, 128K context, with text + image + audio input/output support. This guide covers complete setup (Python, TypeScript, curl), pricing at 3 scales, code examples for image generation (now via gpt-image-2 separately), vision input, and the audio/realtime variants. Plus: when GPT-4o is still the right pick vs migrating to GPT-5.4 ($2.50/
5, better quality) or GPT-4.1 ($2/$8, 1M context). TokenMix.ai routes GPT-4o through OpenAI-compatible endpoint.
Not yet. Still supported through at least Q2 2027 based on OpenAI's historical deprecation timelines. For new work, start with GPT-5.4 — quality is meaningfully better at the same input price.
What's the max token limit for GPT-4o?
Input: 128K tokens (~100K words). Output: 16K tokens per response. For larger contexts, use GPT-4.1 (1M) or Claude (200K native, 1M extended). See GPT-4.1 vs 4o comparison.
Can I stream GPT-4o responses?
Yes:
stream = client.chat.completions.create(
model="gpt-4o",
messages=[...],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")
Does GPT-4o support function calling?
Yes, native tool use. Same OpenAI tool schema as GPT-5.x. Compatible with all major agent frameworks.
What's the specific gpt-4o-2024-08-06 version?
Versioned snapshot pinning. Useful for production reproducibility — guarantees exact model weights don't change underneath you. Slightly more restrictive than floating gpt-4o alias. Use for compliance-sensitive workloads.
Is GPT-4o the same as ChatGPT?
GPT-4o is the API model. ChatGPT is the consumer product (uses GPT-4o or GPT-5 family depending on user tier). API and consumer product are billed separately.
Can I fine-tune GPT-4o?
Yes, fine-tuning supported via OpenAI's FT API. Training cost: $3 per 1M training tokens. Inference at $3 per 1M input +
2 per 1M output on fine-tuned versions (20-30% premium over base).