grok-4.20-multi-agent-0309 API
Use xAI’s Grok chat model on APISea for text generation with large inputs and streaming responses.
grok-4.20-multi-agent-0309تسعير API لنموذج grok-4.20-multi-agent-0309
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $1.10 | $1.25 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.176 | $0.20 | −12% |
| الإخراج لكل 1M رمز | $2.20 | $2.50 | −12% |
التسعير حسب طول المطالبة
| نوع الـ token | حتى 200,000 token | أكثر من الشريحة السابقة |
|---|---|---|
| الإدخال | $1.10$1.25 | $2.20$2.50 |
| الإدخال المخزّن مؤقتًا | $0.176$0.20 | $0.352$0.40 |
| الإخراج | $2.20$2.50 | $4.40$5.00 |
ما هو grok-4.20-multi-agent-0309؟
grok-4.20-multi-agent-0309 is an xAI model in the Grok family, available through APISea for chat and text generation. Developers can send system, user, and assistant messages to build single-turn tasks or multi-turn conversations. Its listed limits are 1,000,000 input tokens and 1,000,000 output tokens, and it supports prompt-cache reads. The unified chat interface offers streaming or complete responses, with controls such as temperature, top_p, max_tokens, and stop sequences.
Call the model using APISea’s OpenAI-compatible base URL, https://api.apisea.ai/v1, and one API key. Billing is pay-as-you-go and applies only to successful requests. For inputs up to 200,000 tokens, input costs $1.10 per 1M tokens and output costs $2.20 per 1M tokens. Above that tier, input costs $2.20 per 1M tokens and output costs $4.40 per 1M tokens. Listed cache reads cost $0.176 per 1M tokens; the default configuration is about 12% below provider list price.
أبرز مزايا grok-4.20-multi-agent-0309
Large Token Limits
The model lists a maximum of 1,000,000 input tokens and 1,000,000 output tokens. These limits give developers room to supply extensive text and request long responses.
Prompt Cache Reads
Supports prompt-cache reads, with listed cached input pricing of $0.176 per 1M tokens.
Streaming Response Control
Set stream to true for server-sent events or false to receive the complete response at once through the unified chat interface.
OpenAI-Compatible Chat Interface
Send role-and-content messages through the Chat Completions API format. Use temperature, top_p, max_tokens, and stop sequences to control generation.
كيفية استدعاء API الخاص بـ grok-4.20-multi-agent-0309 في 4 خطوات
- 01
احصل على API key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.
- 03
أرسل الطلب
استدعِ POST /v1/chat/completions مع "model": "grok-4.20-multi-agent-0309" والمعلمات أدناه.
- 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": "grok-4.20-multi-agent-0309",
"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 |
ما الذي يمكنك إنشاؤه باستخدام grok-4.20-multi-agent-0309
Document Review Workflows
Supply long source documents and ask for summaries, extracted points, or answers grounded in the supplied text. Validate important findings against the originals.
Conversational Applications
Build text-based assistants by passing system instructions, user messages, and prior assistant responses as conversation context.
Drafting and Revision
Generate drafts from a brief, then submit follow-up instructions to revise tone, structure, or wording within the same message-based workflow.
Text-Based Knowledge Assistants
Include relevant reference material in the input messages and ask the model to answer questions from that material. Define source-use expectations in the system prompt.
نصائح للحصول على نتائج أفضل
- 01
Budget for Input Tiers
Track input length before sending requests. Inputs above 200,000 tokens use the listed higher tier: $2.20 per 1M input tokens and $4.40 per 1M output tokens.
- 02
Bound Response Length
Set max_tokens to the response budget your application needs rather than relying on the model’s listed maximum. Check finish_reason for length-limited responses.
- 03
Tune One Sampling Control
Use either temperature or top_p to adjust output variability, as recommended by the chat documentation. Lower temperature values make output more deterministic.
- 04
Plan for Cache Reads
For workflows with repeated prompt material, review prompt-cache behavior before estimating costs. The model supports cache reads, but the supplied documentation does not specify cache activation rules.
القيود ومعلومات مهمة
Maximum input is 1,000,000 tokens, and maximum output is 1,000,000 tokens.
Pricing changes when input exceeds 200,000 tokens.
The supplied facts do not document model-specific agent orchestration behavior.
الأسئلة الشائعة حول API الخاص بـ grok-4.20-multi-agent-0309
How much does grok-4.20-multi-agent-0309 cost on APISea?
For inputs up to 200,000 tokens, input is $1.10 per 1M tokens and output is $2.20 per 1M tokens; above that tier, input is $2.20 per 1M tokens and output is $4.40 per 1M tokens. Listed cache reads are $0.176 per 1M tokens. The default configuration is about 12% below provider list price, with pay-as-you-go billing only for successful requests.
How do I call grok-4.20-multi-agent-0309 through the API?
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 model to grok-4.20-multi-agent-0309 and provide a messages array containing role and content fields.
Does this model support streaming and generation controls?
The unified chat interface supports stream set to true for streaming or false for a complete response. Documented controls include temperature, top_p, max_tokens, frequency_penalty, presence_penalty, stop, and n.
What are the input and output token limits?
The listed maximum input is 1,000,000 tokens, and the listed maximum output is 1,000,000 tokens. Use max_tokens to set a smaller generation budget for individual requests.
Can I use the model commercially?
Commercial use is subject to the provider’s terms and applicable APISea terms. The supplied facts do not include a model-specific commercial license.
Does “multi-agent” mean I can configure multiple agents?
The supplied facts identify this as an xAI Grok chat model but do not document configurable agents or orchestration controls. Do not assume those capabilities from the model name alone.
نماذج ذات صلة
grok-4.20-0309-non-reasoning
grok-4.20-0309-reasoning
grok-4.3
grok-4.5
grok-4.6
grok-4.7
qwen-turbo
qwen3.6-flash
ابدأ التطوير باستخدام grok-4.20-multi-agent-0309
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.