Claude Haiku 4.5 vs GPT-5.2
Claude Haiku 4.5 vs GPT-5.2: Side-by-side API pricing and specs — call both with one OpenAI-compatible key on GetModel.
Claude Haiku 4.5
Anthropic · Text
Claude Haiku 4.5 from Anthropic is fast and low-cost for high-throughput, real-time use. On getmodel it runs through a stable Claude Code Max pool or a low-cost Kiro pool, over both Anthropic-native and OpenAI-compatible endpoints.
View details →GPT-5.2
OpenAI · Text
OpenAI GPT-5.2, a general model balancing capability and cost. Served through getmodel's stable Codex Pro pool over an OpenAI-compatible endpoint.
View details →Pricing comparison
| Claude Haiku 4.5 | GPT-5.2 | |
|---|---|---|
| Input / 1M tokens | $0.088 Cheaper | $0.108 |
| Output / 1M tokens | $0.442 Cheaper | $0.866 |
Specifications
| Provider | Anthropic | OpenAI |
| Type | Text | Text |
| Endpoints | anthropic / openai | openai |
How to call
One API key calls both models — just change the "model" field.
from openai import OpenAI
client = OpenAI(base_url="https://getmodel.ai/v1", api_key="$GETMODEL_API_KEY")
# Claude Haiku 4.5
client.chat.completions.create(model="claude-haiku-4-5-20251001", messages=[{"role":"user","content":"Hi"}])
# GPT-5.2 (same key, just change "model")
client.chat.completions.create(model="gpt-5.2", messages=[{"role":"user","content":"Hi"}])