gpt-5.4 API
gpt-5.4 is OpenAI's flagship general-purpose model with a 1,050,000-token context window. On CaMeL Hub it costs $1.875 per 1M input tokens and $11.25 per 1M output tokens — call it with any OpenAI SDK by pointing base_url to https://api.camel-hub.com/v1 and setting model to "gpt-5.4".
Pricing
| per 1M input tokens | per 1M output tokens | |
|---|---|---|
| CaMeL Hub | $1.875 | $11.25 |
| Provider list price | $2.5 | $15.00 |
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
- 1050000 tokens
- Max output
- 128000 tokens
- Capabilities
- streaming, vision, function-calling
- Endpoints
- openai, openai-response
What it is good for
- Repo-scale coding agents: load a whole service's source into the 1M-token window for cross-file refactors and bug hunts
- Long-document analysis: summarize and cross-reference contract bundles, filings, or research reports in a single request
- Vision workflows: extract data from screenshots, dashboards, scanned invoices, and architecture diagrams
- Tool-driven agents: multi-step function calling against internal APIs, databases, and search backends
- Structured extraction at scale: turn long unstructured transcripts or logs into clean JSON records
- Production writing: drafting, editing, and rewriting product docs and marketing copy with consistent tone
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",
"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",
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",
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 billed on CaMeL Hub?
Input and output tokens are priced separately: $1.875 per 1M input tokens and $11.25 per 1M output tokens on the public default group. You pay only for the tokens each request actually consumes — there are no seat licenses or monthly minimums, and usage is itemized per request in the console logs.
Does gpt-5.4 support streaming, vision, and function calling?
Yes to all three. You can stream tokens via stream=true, send images as input for vision tasks, and define tools for function calling — all through the OpenAI-compatible API on CaMeL Hub, on both the Chat Completions and Responses endpoints.
What are the context window and output limits?
OpenAI's model documentation lists a 1,050,000-token context window and up to 128,000 output tokens for gpt-5.4. Note that the input tokens you send are billed at the input rate, so very large prompts have a proportional cost.
Can I use the Responses API with gpt-5.4?
Yes. CaMeL Hub exposes gpt-5.4 on both the classic /v1/chat/completions endpoint and the /v1/responses endpoint, so SDKs and agent frameworks built on either interface work without modification.
How do I get started?
Create an account at https://api.camel-hub.com/console, generate an API key, then point any OpenAI SDK at base_url https://api.camel-hub.com/v1 with model "gpt-5.4". Top up with Alipay, WeChat Pay, or international cards, or pick a subscription plan — your first request works within minutes.