GPT 5.4 is 1.2× cheaper on input tokens than Grok 4. GPT 5.4 has a longer context window (1M vs 256K). Both models are accessible via the haimaker.ai OpenAI-compatible API at https://api.haimaker.ai/v1.
openai/gpt-5.4
xai/grok-4
| Spec | GPT 5.4 | Grok 4 |
|---|---|---|
| Provider | OpenAI | Xai |
| Full ID | openai/gpt-5.4 | xai/grok-4 |
| Mode | chat | chat |
| Parameters | N/A | N/A |
| Context window | 1M | 256K |
| Max output | 128K | 256K |
| Input price (per 1M) | $2.50 | $3.00 |
| Output price (per 1M) | $15.00 | $15.00 |
| License | N/A | N/A |
| Architecture | N/A | N/A |
| Feature | GPT 5.4 | Grok 4 |
|---|---|---|
| Function Calling | ✓ Supported | ✓ Supported |
| Reasoning | ✓ Supported | — |
| Vision | ✓ Supported | — |
| Web Search | — | ✓ Supported |
GPT 5.4 is cheaper at $2.50 per 1M input tokens vs $3.00 for Grok 4.
GPT 5.4 accepts up to 1M input tokens vs 256K for Grok 4.
Yes. haimaker.ai exposes both openai/gpt-5.4 and xai/grok-4 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.