gpt-5.4-nano API
gpt-5.4-nano delivers text generation on APISea in a tier positioned for lighter, cost-conscious chat workloads.
gpt-5.4-nanoتسعير API لنموذج gpt-5.4-nano
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $0.176 | $0.20 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.0176 | $0.02 | −12% |
| الإخراج لكل 1M رمز | $1.10 | $1.25 | −12% |
ما هو gpt-5.4-nano؟
gpt-5.4-nano is an OpenAI GPT-5 family chat model available through APISea. Its nano naming positions it as a lighter, cost-conscious tier for text-generation workloads. Developers can evaluate it for conversational assistants, summaries, and routine text processing. The Chat Completions interface accepts messages with system, user, and assistant roles, supporting both instructions and multi-turn conversation context. It returns generated text, with streaming or complete-response delivery and controls such as temperature, top_p, and max_tokens.
Call the model through APISea’s OpenAI-compatible base URL, https://api.apisea.ai/v1, using one API key and the exact model ID gpt-5.4-nano. The model supports up to 272,000 input tokens, up to 128,000 output tokens, and prompt-cache reads. Pay-as-you-go rates are $0.176 per 1M input tokens, $0.0176 per 1M cached input tokens, and $1.10 per 1M output tokens. The default configuration is about 12% below the provider list price, and APISea bills only successful requests.
أبرز مزايا gpt-5.4-nano
Large Token Limits
Supports a maximum of 272,000 input tokens and 128,000 output tokens.
Prompt Cache Reads
Cached input reads cost $0.0176 per 1M tokens, compared with $0.176 per 1M tokens for regular input.
Flexible Response Delivery
Use streaming for SSE output or disable streaming to receive the complete response at once.
Chat Generation Controls
Set an output budget with max_tokens and adjust output randomness with temperature or top_p through the Chat Completions interface.
كيفية استدعاء API الخاص بـ gpt-5.4-nano في 4 خطوات
- 01
احصل على API key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.
- 03
أرسل الطلب
استدعِ POST /v1/chat/completions مع "model": "gpt-5.4-nano" والمعلمات أدناه.
- 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-nano",
"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-nano
Conversational Assistants
Build text-based assistants using system instructions and user and assistant messages to carry conversation context.
Document Summaries
Evaluate the model for summarizing supplied documents, with explicit instructions about length, audience, and key points.
Routine Text Processing
Use the nano-positioned tier for workloads such as rewriting drafts or categorizing incoming messages. Test representative examples before deployment.
Internal Drafting Tools
Generate first drafts of replies, notes, or explanations from team-provided context, then route the text for review.
نصائح للحصول على نتائج أفضل
- 01
Set the Exact Model
Send gpt-5.4-nano as the model value in POST /v1/chat/completions. Authenticate with your APISea key using a Bearer Token header.
- 02
Budget Generated Tokens
Set max_tokens to a practical output cap rather than automatically requesting the maximum. Output is billed at $1.10 per 1M tokens.
- 03
Choose Sampling Controls
For more deterministic output, try a lower temperature such as 0.2. The documentation recommends adjusting either temperature or top_p rather than both.
- 04
Check Cache Accounting
The model supports prompt-cache reads at $0.0176 per 1M tokens. Check the applicable caching documentation before assuming repeated input will qualify for that rate.
القيود ومعلومات مهمة
Input is limited to 272,000 tokens.
Output is limited to 128,000 tokens.
The supplied documentation does not establish model-specific Responses API, image-input, or tool support.
الأسئلة الشائعة حول API الخاص بـ gpt-5.4-nano
How much does gpt-5.4-nano cost on APISea?
Input costs $0.176 per 1M tokens, cached input reads cost $0.0176 per 1M tokens, and output costs $1.10 per 1M tokens. The default configuration is about 12% below the provider list price; APISea uses pay-as-you-go billing and charges only for successful requests.
How do I call gpt-5.4-nano through APISea?
Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a Chat Completions request with model set to gpt-5.4-nano and a messages array. Authenticate with your APISea key in the Bearer Token header.
Which generation parameters can I use?
The Chat Completions documentation lists temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Use stream to choose between SSE streaming and a complete response.
What are the input and output limits?
gpt-5.4-nano supports a maximum of 272,000 input tokens and 128,000 output tokens. It also supports prompt-cache reads.
Can I use gpt-5.4-nano commercially?
Commercial use is subject to the provider’s terms and applicable APISea terms. Review those terms for your intended application before deploying.
How does gpt-5.4-nano compare with larger GPT-5 tiers?
The nano name positions it as a lighter, faster, cheaper tier, rather than a higher-capability tier. The supplied facts do not include comparative benchmarks, so evaluate quality and latency on your own workloads.
نماذج ذات صلة
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-nano
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.