gpt-5.4-mini API
gpt-5.4-mini is OpenAI's fast, budget-tier reasoning model with a 400K context window. Call it on CaMeL Hub with any OpenAI SDK — just set base_url to https://api.camel-hub.com/v1 — at $0.5625 per 1M input tokens and $3.375 per 1M output tokens.
Pricing
| per 1M input tokens | per 1M output tokens | |
|---|---|---|
| CaMeL Hub | $0.5625 | $3.375 |
| Provider list price | $0.75 | $4.5 |
Prices are the public default-group rate in USD per 1M tokens; input and output are billed separately. · Provider list price · verified 2026-07-11
Specifications
- Provider
- OpenAI
- Context window
- 400000 tokens
- Max output
- 128000 tokens
- Capabilities
- streaming, vision, reasoning, function-calling
- Endpoints
- openai, openai-response
What it is good for
- High-volume chatbot and customer-support backends where per-token cost, not peak intelligence, decides the architecture
- Long-document summarization and structured data extraction — contracts, transcripts, or report bundles fit in the 400K context window without chunking
- Agentic pipelines and tool-calling workers: reliable function calling at a price that makes multi-step agent loops affordable
- Screenshot, chart, and UI understanding at scale using image input, e.g. automated QA on rendered pages
- Code assistance in CI: review comments, commit triage, and test generation where latency and cost matter more than frontier-level reasoning
- RAG answer synthesis where a large context window lets you stuff more retrieved passages into each request
Quickstart
OpenAI-compatible: set base_url to https://api.camel-hub.com/v1 and use your CaMeL Hub API key. No SDK changes needed.
cURL
curl https://api.camel-hub.com/v1/chat/completions \
-H "Authorization: Bearer $CAMEL_HUB_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-mini",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Python
from openai import OpenAI
client = OpenAI(
api_key="$CAMEL_HUB_KEY",
base_url="https://api.camel-hub.com/v1", # <-- the only change vs. the OpenAI default
)
resp = client.chat.completions.create(
model="gpt-5.4-mini",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.CAMEL_HUB_KEY,
baseURL: "https://api.camel-hub.com/v1", // <-- the only change vs. the OpenAI default
});
const resp = await client.chat.completions.create({
model: "gpt-5.4-mini",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);
Get an API key Browse integration guides
Frequently asked questions
How is gpt-5.4-mini billed on CaMeL Hub?
Per token, with separate input and output rates: $0.5625 per 1M input tokens and $3.375 per 1M output tokens. There is no per-request fee — you pay only for the tokens you actually use, and usage is itemized in the console log.
Does gpt-5.4-mini support streaming, function calling, and image input?
Yes to all three. Streaming works over both the Chat Completions and Responses APIs, function calling is fully supported for tool-using agents, and the model accepts images alongside text. It is also a reasoning model — you can tune reasoning effort per request from none up to xhigh.
What are the context window and output limits?
gpt-5.4-mini has a 400,000-token context window and can generate up to 128,000 output tokens in a single response, per OpenAI's model documentation.
Which API formats can I use to call it?
Both the OpenAI Chat Completions API (/v1/chat/completions) and the Responses API are available on CaMeL Hub. Any OpenAI SDK works unmodified — set base_url to https://api.camel-hub.com/v1 and use your CaMeL Hub API key.
How do I get started?
Sign up at https://api.camel-hub.com/console, create an API key, then point your OpenAI SDK's base_url to https://api.camel-hub.com/v1 and request model "gpt-5.4-mini". Top up by card, Alipay, or WeChat Pay, or pick a subscription plan; the same key works for every model on the platform.