gpt-5.4-mini API

25% below list price streamingvisionreasoningfunction-calling

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 tokensper 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
gpt-5.4-mini is the small member of the GPT-5.4 family: it keeps the family's reasoning ability and tool-use reliability while cutting per-token cost and latency, which makes it the default pick when you need GPT-5.4-class behavior across millions of requests rather than a handful of hard ones. Reasoning depth is adjustable per request — effort levels range from none (fast, near-instant replies) up to xhigh for problems that genuinely need deliberation — so one model can serve both a snappy chat frontend and a slower analytical backend. The specs are unusually generous for a mini-tier model: a 400,000-token context window, up to 128,000 output tokens per response, image input alongside text, and a knowledge cutoff of August 31, 2025. The large window means you can pass whole codebases, long transcripts, or multi-document bundles in a single call instead of building elaborate chunking pipelines; the 128K output ceiling covers long structured extractions and full-file code generation without truncation. On CaMeL Hub, gpt-5.4-mini is exposed through both the OpenAI Chat Completions API and the Responses API, with streaming and function calling fully supported. No code changes are needed beyond pointing your existing OpenAI SDK at https://api.camel-hub.com/v1 with a CaMeL Hub API key. Billing is per-token with separate input and output rates ($0.5625 and $3.375 per 1M tokens respectively), and the same key also reaches every other model on the platform, so you can route easy traffic to gpt-5.4-mini and escalate hard cases to a larger model behind one integration.

What it is good for

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.

More from OpenAI

OpenAI

gpt-5.5

OpenAI

gpt-5.4

Compare with other models