Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
OpenAI · GPT-6

gpt-6-luna API

Use gpt-6-luna on APISea for text generation with large input limits and prompt caching.

محادثةالمحادثة والنصمتزامنالتخزين المؤقت للمطالبات
معرّف النموذج
gpt-6-luna

تسعير API لنموذج gpt-6-luna

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 1M رمز$0.088$0.10−12%
الإدخال المخزّن مؤقتًا لكل 1M رمز$0.0088$0.01−12%
الكتابة إلى ذاكرة التخزين المؤقت لكل 1M رمز$0.11$0.125−12%
الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) لكل 1M رمز$0.22$0.25−12%
الإخراج لكل 1M رمز$0.44$0.50−12%

التسعير حسب طول المطالبة

نوع الـ tokenحتى 272,000 tokenأكثر من الشريحة السابقة
الإدخال$0.088$0.10$0.176$0.20
الإدخال المخزّن مؤقتًا$0.0088$0.01$0.0176$0.02
الكتابة إلى ذاكرة التخزين المؤقت$0.11$0.125$0.22$0.25
الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة)$0.22$0.25$0.44$0.50
الإخراج$0.44$0.50$0.66$0.75

ما هو gpt-6-luna؟

gpt-6-luna is an OpenAI GPT-6 family chat model available through APISea. Developers can use it for text-generation workflows such as document summaries, conversational assistants, and drafting from supplied reference material. It accepts conversation messages with system, user, and assistant roles and returns generated text. The listed limits are 922,000 input tokens and 128,000 output tokens, with support for prompt-cache reads and cache writes. The unified Chat Completions interface offers streaming, output-length controls, and sampling parameters.

Call gpt-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 inputs up to 272,000 tokens, input costs $0.088 per 1M tokens and output costs $0.44 per 1M tokens; above that tier, rates rise to $0.176 and $0.66 per 1M tokens, respectively. The default configuration is about 12% below provider list price.

أبرز مزايا gpt-6-luna

Large Token Limits

Accepts up to 922,000 input tokens and generates up to 128,000 output tokens. These limits give developers room to supply substantial reference text and request lengthy responses.

Prompt Cache Support

Supports prompt-cache reads and cache writes. Cached input costs $0.0088 per 1M tokens, with cache writes priced separately.

Streaming Response Control

The Chat Completions interface supports streaming responses in SSE format. Set stream to false to receive the complete response at once.

Configurable Text Generation

Control response length with max_tokens and randomness with temperature or top_p. The interface also provides frequency_penalty, presence_penalty, and stop sequences.

كيفية استدعاء API الخاص بـ gpt-6-luna في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/chat/completions مع "model": "gpt-6-luna" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    اقرأ الاستجابة (أو استقبل الـ tokens بالتدفق باستخدام stream: true). يظهر الاستخدام والتكلفة في وحدة التحكم.

curl https://api.apisea.ai/v1/chat/completions \
  -H "Authorization: Bearer $APISEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-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
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوبgpt-5Model name
messagesarrayمطلوب—List of conversation messages
rolestringمطلوبuserRole type
contentstringمطلوب—Message content
temperaturenumberاختياري—Controls output randomness, range 0-2
max_tokensintegerاختياري—Maximum number of tokens to generate
streambooleanاختياري—Whether to use streaming output
top_pnumberاختياري—Nucleus sampling parameter, range 0-1
frequency_penaltynumberاختياري—Frequency penalty, range -2.0 to 2.0
presence_penaltynumberاختياري—Presence penalty, range -2.0 to 2.0
stopstring or arrayاختياري—Stop sequences
nintegerاختياري—Number of completions to generate

ما الذي يمكنك إنشاؤه باستخدام gpt-6-luna

Document Summaries

Supply reference documents as text and request summaries tailored to a specific audience. Use the input capacity to include relevant source material rather than relying on unsupported assumptions.

Conversational Assistants

Build text-based assistants using system instructions and user messages. Include prior assistant messages to provide multi-turn conversation context.

Reference-Based Drafting

Generate reports, explanations, or internal documentation from supplied notes. Specify the intended structure and scope in the prompt.

Repeated Reference Workflows

Build workflows that repeatedly use shared instructions or reference text. Evaluate prompt caching to manage input costs, accounting for separate cache-write charges.

نصائح للحصول على نتائج أفضل

  • 01

    Watch the Input Tier

    Inputs up to 272,000 tokens use input pricing of $0.088 per 1M tokens and output pricing of $0.44 per 1M tokens. Above that tier, input costs $0.176 per 1M tokens and output costs $0.66 per 1M tokens.

  • 02

    Budget Cache Writes

    Cache reads cost $0.0088 per 1M tokens, while cache writes cost $0.11 per 1M tokens. The listed 1-hour TTL cache-write rate is $0.22 per 1M tokens; account for writes when estimating caching costs.

  • 03

    Set an Output Budget

    Set max_tokens to match the response length your application needs, within the 128,000-token output limit. Check finish_reason for length to identify responses that reached the configured maximum.

  • 04

    Choose Sampling Deliberately

    Use lower temperature values for more deterministic output. The documentation recommends adjusting either temperature or top_p rather than both.

القيود ومعلومات مهمة

  • Maximum input is 922,000 tokens, and maximum output is 128,000 tokens.

  • Input and output rates increase when input exceeds 272,000 tokens.

  • The supplied facts do not establish model-specific image input, tool support, or Responses API availability.

الأسئلة الشائعة حول API الخاص بـ gpt-6-luna

How much does gpt-6-luna cost on APISea?

For inputs up to 272,000 tokens, input costs $0.088 per 1M tokens and output costs $0.44 per 1M tokens. Above that tier, input costs $0.176 per 1M tokens and output costs $0.66 per 1M tokens. APISea bills only successful requests, and the default configuration is about 12% below provider list price.

How do I call gpt-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 model set to gpt-6-luna and a messages array. Authenticate with your APISea key using a Bearer token in the Authorization header.

Which generation parameters can I use?

The unified Chat Completions documentation lists temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Messages contain role and content fields, with system, user, and assistant roles supported by the interface.

What are the token limits for gpt-6-luna?

The listed maximum input is 922,000 tokens, and the listed maximum output is 128,000 tokens. Set max_tokens to control the requested output budget.

Does gpt-6-luna support prompt caching?

Yes, the model supports prompt-cache reads and cache writes. Cache reads cost $0.0088 per 1M tokens, cache writes cost $0.11 per 1M tokens, and cache writes with a 1-hour TTL cost $0.22 per 1M tokens.

Can I use gpt-6-luna commercially?

Commercial use is subject to the provider's terms. Review the applicable OpenAI terms and APISea service terms before deploying your application.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام gpt-6-luna

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.