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

grok-4.20-0309-non-reasoning API

Use xAI’s Grok model on APISea for text generation and multi-turn chat with prompt-cache reads.

استدلالالمحادثة والنصمتزامنالتخزين المؤقت للمطالبات
معرّف النموذج
grok-4.20-0309-non-reasoning

تسعير API لنموذج grok-4.20-0309-non-reasoning

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

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 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-0309-non-reasoning؟

grok-4.20-0309-non-reasoning is an xAI Grok model available through APISea for text generation and multi-turn chat. Developers can use it to build document summaries, drafting workflows, and conversational applications. Requests contain messages with role and content fields, and responses contain generated assistant text. The documented chat interface offers temperature, top_p, max_tokens, stop sequences, and streaming controls. The model supports up to 1,000,000 input tokens, up to 1,000,000 output tokens, and prompt-cache reads.

Call it through APISea’s OpenAI-compatible base URL, https://api.apisea.ai/v1, using one API key. Billing is pay-as-you-go and applies only to successful requests. For up to 200,000 input 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. Cached input costs $0.176 per 1M tokens. The default configuration is about 12% below provider list price.

أبرز مزايا grok-4.20-0309-non-reasoning

Large Token Limits

Supports a maximum of 1,000,000 input tokens and 1,000,000 output tokens. Set an output budget appropriate to each task rather than defaulting to the maximum.

Prompt Cache Reads

Supports prompt-cache reads, with cached input priced at $0.176 per 1M tokens.

OpenAI-Compatible Chat Interface

Use the exact model ID through APISea’s Chat Completions interface. Supply conversation messages using role and content fields.

Configurable Text Generation

The documented interface includes temperature, top_p, max_tokens, and stop sequences. Choose streaming responses or a complete response returned at once.

كيفية استدعاء API الخاص بـ grok-4.20-0309-non-reasoning في 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": "grok-4.20-0309-non-reasoning" والمعلمات أدناه.

  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": "grok-4.20-0309-non-reasoning",
    "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

ما الذي يمكنك إنشاؤه باستخدام grok-4.20-0309-non-reasoning

Document Summaries

Build a workflow that supplies document text and requests summaries, key points, or answers grounded in that text. Keep source material within the input limit.

Conversational Applications

Build text-based assistants by passing user messages and prior assistant replies as conversation context. Use a system message to define the assistant’s role.

Drafting and Rewriting

Generate drafts or rewrite supplied text against explicit instructions for tone, audience, and length. Adjust temperature to control output variability.

Repeated-Context Workflows

Build recurring tasks around shared instructions or reference material. Where prompt-cache reads apply, cached input uses the listed cache-read rate.

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

  • 01

    Set an Output Budget

    Use max_tokens to cap generated text for each request. A focused output budget helps manage output-token spending.

  • 02

    Watch the Input Tier

    Requests with up to 200,000 input tokens use input pricing of $1.10 per 1M tokens and output pricing of $2.20 per 1M tokens. Above that tier, the rates are $2.20 per 1M tokens and $4.40 per 1M tokens, respectively.

  • 03

    Tune One Sampling Control

    The documentation recommends using either temperature or top_p to control variation. Lower temperature values make output more deterministic; higher values make it more random.

  • 04

    Choose Streaming Explicitly

    Set stream to true for SSE streaming or false for a complete response. Specify the setting rather than relying on endpoint defaults.

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

  • Maximum input and output are each 1,000,000 tokens.

  • Pricing increases above 200,000 input tokens.

  • Prompt-cache reads are supported, but cache setup and eligibility are not specified in the supplied documentation.

الأسئلة الشائعة حول API الخاص بـ grok-4.20-0309-non-reasoning

How much does grok-4.20-0309-non-reasoning cost on APISea?

For up to 200,000 input 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. Cached input costs $0.176 per 1M tokens. APISea bills only successful requests, and the default configuration is about 12% below provider list price.

How do I call this model 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 grok-4.20-0309-non-reasoning and provide a messages array containing role and content fields.

Which generation parameters are documented?

The chat interface documents temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. It recommends using either temperature or top_p to adjust output diversity.

What are the input and output token limits?

The model supports a maximum input of 1,000,000 tokens and a maximum output of 1,000,000 tokens. The input pricing tier changes above 200,000 input tokens.

Can I use this model commercially?

Commercial use is subject to the provider’s terms. Review the applicable xAI and APISea terms for your intended application.

How does it compare with other Grok models?

The supplied facts identify it as an xAI Grok model but do not provide sibling comparisons or benchmarks. Do not assume relative speed, quality, or reasoning behavior from the model ID alone.

نماذج ذات صلة

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

ابدأ التطوير باستخدام grok-4.20-0309-non-reasoning

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