gpt-5.6-luna API
Use gpt-5.6-luna on APISea for text chat with large inputs, streaming responses, and prompt caching.
gpt-5.6-lunaتسعير API لنموذج gpt-5.6-luna
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $0.176 | $0.20 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.0176 | $0.02 | −12% |
| الكتابة إلى ذاكرة التخزين المؤقت لكل 1M رمز | $0.22 | $0.25 | −12% |
| الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) لكل 1M رمز | $0.44 | $0.50 | −12% |
| الإخراج لكل 1M رمز | $1.06 | $1.20 | −12% |
التسعير حسب طول المطالبة
| نوع الـ token | حتى 272,000 token | أكثر من الشريحة السابقة |
|---|---|---|
| الإدخال | $0.176$0.20 | $0.352$0.40 |
| الإدخال المخزّن مؤقتًا | $0.0176$0.02 | $0.0352$0.04 |
| الكتابة إلى ذاكرة التخزين المؤقت | $0.22$0.25 | $0.44$0.50 |
| الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) | $0.44$0.50 | $0.88$1.00 |
| الإخراج | $1.06$1.20 | $1.58$1.80 |
ما هو gpt-5.6-luna؟
gpt-5.6-luna is an OpenAI GPT-5 family chat model available through APISea. It accepts text conversation messages and generates text responses, with maximums of 922,000 input tokens and 128,000 output tokens. Those limits make it an option for applications that supply extensive reference material or request substantial written output. The unified Chat Completions interface accepts system, user, and assistant messages, with controls for randomness, output length, and streaming.
Call gpt-5.6-luna using one APISea key and the OpenAI-compatible base URL https://api.apisea.ai/v1. APISea uses pay-as-you-go pricing and bills only successful requests. For the tier up to 272,000 input tokens, input costs $0.176 per 1M tokens and output costs $1.06 per 1M tokens; higher-tier rates apply above that threshold. Prompt-cache reads and writes are supported and priced separately. The default configuration is about 12% below the provider list price.
أبرز مزايا gpt-5.6-luna
Large Input Capacity
Supply up to 922,000 input tokens for text conversations with extensive reference material.
Substantial Output Limit
Generate up to 128,000 output tokens. Use the max_tokens parameter to set a smaller response budget.
Prompt Cache Support
The model supports prompt-cache reads and cache writes. Cached input costs $0.0176 per 1M tokens on APISea.
Streaming Chat Interface
Use the OpenAI-compatible Chat Completions format with system, user, and assistant messages. Set stream to true for SSE output or false for a complete response.
كيفية استدعاء API الخاص بـ gpt-5.6-luna في 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.6-luna" والمعلمات أدناه.
- 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.6-luna",
"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.6-luna
Reference-Based Assistants
Build a text assistant that receives extensive reference material alongside user questions. Specify in the system message how answers should use the supplied sources.
Document Summaries
Submit long text documents for summaries organized around your team's questions, decisions, or review criteria.
Multi-Turn Support Chat
Pass previous user and assistant messages to provide conversation context, with a system message defining the assistant's role.
Long-Form Drafting
Request substantial drafts from detailed briefs and source text. Set an output budget appropriate to the document rather than always using the maximum.
نصائح للحصول على نتائج أفضل
- 01
Watch the Pricing Threshold
Up to 272,000 input tokens, input costs $0.176 per 1M tokens and output costs $1.06 per 1M tokens. Above that tier, input costs $0.352 per 1M tokens and output costs $1.58 per 1M tokens.
- 02
Budget Cache Writes
Cache reads cost $0.0176 per 1M tokens, while cache writes cost $0.22 per 1M tokens. Cache writes with a 1-hour TTL cost $0.44 per 1M tokens; account for write costs when planning repeated requests.
- 03
Set Output Budgets
Use max_tokens to limit generated length. Inspect completion_tokens in the response usage data and check finish_reason for length-limited completions.
- 04
Tune One Sampling Control
Use temperature for randomness or top_p for nucleus sampling; the chat documentation recommends choosing one. Lower temperature values make output more deterministic.
القيود ومعلومات مهمة
Maximum input is 922,000 tokens, and maximum output is 128,000 tokens.
Requests above 272,000 input tokens use the higher input and output pricing tier.
The general Responses API documentation does not explicitly list this model; verify model-specific support before relying on its multimodal or tool features.
الأسئلة الشائعة حول API الخاص بـ gpt-5.6-luna
How much does gpt-5.6-luna cost on APISea?
For up to 272,000 input tokens, input costs $0.176 per 1M tokens and output costs $1.06 per 1M tokens; above that tier, the rates are $0.352 per 1M tokens and $1.58 per 1M tokens, respectively. Cached input costs $0.0176 per 1M tokens, cache writes cost $0.22 per 1M tokens, and cache writes with a 1-hour TTL cost $0.44 per 1M tokens. The default configuration is about 12% below provider list price, with billing only for successful requests.
How do I call gpt-5.6-luna through APISea?
Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions with Bearer Token authentication. Set the model field to gpt-5.6-luna and include a messages array containing role and content fields.
Which generation parameters can I use?
The unified chat interface documents temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Set stream explicitly to choose SSE streaming or a complete response.
What are the input and output token limits?
The maximum input is 922,000 tokens, and the maximum output is 128,000 tokens. The input pricing tier changes above 272,000 input tokens.
Can I use gpt-5.6-luna commercially?
Commercial use is subject to the provider's terms and applicable APISea terms. Review those terms for your intended application and data handling requirements.
How does gpt-5.6-luna compare with GPT-5 mini?
By naming convention, GPT-5 mini is positioned as a lighter, faster, lower-cost tier. The supplied facts do not establish comparative quality or speed for gpt-5.6-luna, so evaluate both on your own workload.
نماذج ذات صلة
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.6-luna
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.