gpt-5.4-mini API
gpt-5.4-mini powers text generation and multi-turn chat through APISea's OpenAI-compatible API.
gpt-5.4-miniתמחור API של gpt-5.4-mini
כל המחירים נקובים ב-USD. תעריפי APISea בהשוואה למחירון הרשמי עבור אותה יחידה.
| סוג token | APISea | רשמי | חיסכון |
|---|---|---|---|
| קלט לכל 1M tokens | $0.66 | $0.75 | −12% |
| קלט שמור במטמון לכל 1M tokens | $0.066 | $0.075 | −12% |
| פלט לכל 1M tokens | $3.96 | $4.50 | −12% |
מהו gpt-5.4-mini?
gpt-5.4-mini is an OpenAI GPT-5 family chat model available through APISea. Its mini naming positions it as a lighter, cost-conscious tier for text generation and conversational workflows. Developers can use it for drafting, summarizing supplied text, and building multi-turn assistants. The Chat Completions interface accepts messages with system, user, and assistant roles and returns generated text. It offers streaming or complete responses, plus controls for randomness, output length, sampling, repetition, and stop sequences.
Call gpt-5.4-mini using one APISea key and the OpenAI-compatible base URL https://api.apisea.ai/v1. The model supports up to 272,000 input tokens, up to 128,000 output tokens, and prompt-cache reads. Pay-as-you-go pricing is $0.66 per 1M input tokens, $0.066 per 1M cached input tokens, and $3.96 per 1M output tokens. The default configuration is about 12% below the provider list price, and APISea bills only successful requests.
המאפיינים הבולטים של gpt-5.4-mini
Large Input Allowance
Supply up to 272,000 input tokens for text-based chat workflows.
Prompt Cache Reads
The model supports prompt-cache reads, priced at $0.066 per 1M cached input tokens on APISea.
Flexible Response Delivery
Use streaming output in SSE format or request a complete response by setting stream to false.
Generation Output Controls
Set max_tokens to bound response length and use temperature or top_p to control sampling. The chat interface also exposes repetition penalties and stop sequences.
איך לקרוא ל-API של gpt-5.4-mini ב-4 שלבים
- 01
יצירת מפתח API
יש להתחבר ל-APISea, להוסיף יתרה החל מ-$50 וליצור מפתח sk-sea במסוף.
- 02
הגדרת כתובת הבסיס
יש להשתמש ב-https://api.apisea.ai/v1 ככתובת הבסיס ב-SDK או בלקוח HTTP.
- 03
שליחת הבקשה
יש לקרוא ל-POST /v1/chat/completions עם "model": "gpt-5.4-mini" והפרמטרים שלהלן.
- 04
טיפול בתגובה
יש לקרוא את התגובה (או להזרים tokens באמצעות stream: true). נתוני השימוש והעלות מופיעים במסוף.
דוגמאות לבקשות
תיעוד: General Chat API (Default Streaming)curl https://api.apisea.ai/v1/chat/completions \
-H "Authorization: Bearer $APISEA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-mini",
"messages": [
{"role": "system", "content": "You are a concise assistant."},
{"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
],
"stream": false
}'פרמטרים
| פרמטר | סוג | נדרש | ברירת מחדל | תיאור |
|---|---|---|---|---|
model | string | נדרש | gpt-5 | Model name |
messages | array | נדרש | — | List of conversation messages |
role | string | נדרש | user | Role type |
content | string | נדרש | — | Message content |
temperature | number | אופציונלי | — | Controls output randomness, range 0-2 |
max_tokens | integer | אופציונלי | — | Maximum number of tokens to generate |
stream | boolean | אופציונלי | — | Whether to use streaming output |
top_p | number | אופציונלי | — | Nucleus sampling parameter, range 0-1 |
frequency_penalty | number | אופציונלי | — | Frequency penalty, range -2.0 to 2.0 |
presence_penalty | number | אופציונלי | — | Presence penalty, range -2.0 to 2.0 |
stop | string or array | אופציונלי | — | Stop sequences |
n | integer | אופציונלי | — | Number of completions to generate |
מה אפשר לבנות עם gpt-5.4-mini
Conversational assistants
Build text assistants using system instructions and user and assistant messages to carry multi-turn conversation context.
Document summaries
Provide source text and ask for a summary tailored to a specific audience, format, or length.
Drafting workflows
Generate first drafts of emails, product descriptions, or internal documentation from supplied requirements.
Text review queues
Ask the model to review supplied text against written criteria and produce comments for human review.
טיפים לקבלת תוצאות טובות יותר
- 01
Set the model explicitly
Set the model field to
gpt-5.4-mini; the documented chat endpoint defaults to a different model if you rely on its default. - 02
Bound response length
Use max_tokens to set a task-appropriate output budget rather than requesting the maximum for every call.
- 03
Tune one sampling control
Start with temperature or top_p rather than adjusting both. Lower temperature values make output more deterministic.
- 04
Track cached input costs
Account for cache-read tokens at $0.066 per 1M tokens separately from regular input at $0.66 per 1M tokens. Cache-read support does not mean every request will receive cached-input pricing.
מגבלות ודברים שכדאי לדעת
Maximum input is 272,000 tokens.
Maximum output is 128,000 tokens.
The supplied documentation does not establish Responses API, image-input, or tool support for this model.
שאלות נפוצות על API של gpt-5.4-mini
How much does gpt-5.4-mini cost on APISea?
Input costs $0.66 per 1M tokens, cached input costs $0.066 per 1M tokens, and output costs $3.96 per 1M tokens. The default configuration is about 12% below the provider list price, with billing only for successful requests.
How do I call gpt-5.4-mini through APISea?
Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions with model set to gpt-5.4-mini and a messages array. Authenticate with your APISea key using Bearer Token authentication.
Which generation parameters are documented?
The chat interface documents temperature, max_tokens, stream, top_p, frequency_penalty, presence_penalty, stop, and n. Messages contain role and content fields, with system, user, and assistant roles available.
What are the input and output limits?
The model allows up to 272,000 input tokens and up to 128,000 output tokens. It also supports prompt-cache reads.
Can I use gpt-5.4-mini commercially?
Commercial use is subject to the provider's terms. Review the applicable OpenAI and APISea terms for your intended application.
How does gpt-5.4-mini compare with other GPT-5 models?
The mini name positions it as a lighter, cost-conscious tier within the GPT-5 family. The supplied facts do not establish benchmark, speed, or quality differences against specific sibling models.
מודלים קשורים
gpt-5
gpt-5-2025-08-07
gpt-5-mini
gpt-5-mini-2025-08-07
gpt-5-nano
gpt-5-nano-2025-08-07
gpt-5-pro
gpt-5-pro-2025-10-06
מתחילים לבנות עם gpt-5.4-mini
מפתח אחד, תשלום לפי שימוש החל מ-$50, וחיוב רק על בקשות שהצליחו.