GPT 5.4 Mini is 4.0× cheaper on input tokens than Claude Sonnet 4 6. Claude Sonnet 4 6 has a longer context window (1M vs 272K). Both models are accessible via the haimaker.ai OpenAI-compatible API at https://api.haimaker.ai/v1.
openai/gpt-5.4-mini
anthropic/claude-sonnet-4-6
| Spec | GPT 5.4 Mini | Claude Sonnet 4 6 |
|---|---|---|
| Provider | OpenAI | Anthropic |
| Full ID | openai/gpt-5.4-mini | anthropic/claude-sonnet-4-6 |
| Mode | chat | chat |
| Parameters | N/A | N/A |
| Context window | 272K | 1M |
| Max output | 128K | 64K |
| Input price (per 1M) | $0.75 | $3.00 |
| Output price (per 1M) | $4.50 | $15.00 |
| License | N/A | N/A |
| Architecture | N/A | N/A |
| Feature | GPT 5.4 Mini | Claude Sonnet 4 6 |
|---|---|---|
| Function Calling | ✓ Supported | ✓ Supported |
| Reasoning | ✓ Supported | ✓ Supported |
| Vision | ✓ Supported | ✓ Supported |
| Web Search | ✓ Supported | — |
GPT 5.4 Mini is cheaper at $0.75 per 1M input tokens vs $3.00 for Claude Sonnet 4 6.
Claude Sonnet 4 6 accepts up to 1M input tokens vs 272K for GPT 5.4 Mini.
Yes. haimaker.ai exposes both openai/gpt-5.4-mini and anthropic/claude-sonnet-4-6 on the same OpenAI-compatible endpoint at https://api.haimaker.ai/v1, so you can switch between them by changing the model parameter in your request.
One OpenAI-compatible endpoint. Switch between them by changing the model parameter.