# gpt-5.4

[Models](/models) / [gpt-5.4](/models/gpt-5.4)

Use gpt-5.4 through KeepBal. POST /v1/chat/completions. Input: $3.13 / Output: $18.75 / Cache read: $0.32 / Cache write: $0 per 1M tokens.

## curl

```sh
curl https://keepbal.com/v1/chat/completions -H 'Authorization: Bearer YOUR_KEEPBAL_KEY' -H 'Content-Type: application/json' -d '{"model":"gpt-5.4","messages":[{"role":"user","content":"Summarize this research."}],"max_tokens":256}'
```

## OpenAI SDK

```python
import os
from openai import OpenAI

client = OpenAI(api_key=os.environ["KEEPBAL_API_KEY"], base_url="https://keepbal.com/v1")
response = client.chat.completions.create(model="gpt-5.4", messages=[{"role": "user", "content": "Summarize this research."}], max_tokens=256)
print(response)
```

Search for source material, inspect and run a tool, then pass the results to a model for summarization or analysis.

- [Chatgpt Ask](/tools/cloro/chatgpt-ask) — Get ChatGPT&#39;s consumer-app answer to a prompt, with cited sources, in a chosen country. — Variable: provider price plus 35%
- [Copilot Ask](/tools/cloro/copilot-ask) — Get Copilot&#39;s consumer-app answer to a prompt, with cited sources, in a chosen country. — Variable: provider price plus 35%
- [Gemini Ask](/tools/cloro/gemini-ask) — Get Gemini&#39;s consumer-app answer to a prompt, with cited sources, in a chosen country. — Variable: provider price plus 35%

## Which endpoint should I use?

POST /v1/chat/completions with the exact model ID gpt-5.4.

## How is usage priced?

Input: $3.13 / Output: $18.75 / Cache read: $0.32 / Cache write: $0 per 1M tokens. Charges add the applicable input, output, cache read, and cache write token amounts at their respective rates. Cached input is charged at its cache rate instead of the regular input rate. Embeddings are billed for input tokens only. Billing uses returned token usage.

[Tools](/tools) · [MCP documentation](/docs/mcp)
