Skip to content
ეს გვერდი ჯერ თქვენს ენაზე ხელმისაწვდომი არ არის და ინგლისურად არის ნაჩვენები.
xAI · Grok

grok-4.6 API

Use grok-4.6 on APISea for text generation and multi-turn chat with up to 500,000 input tokens.

ჩატიჩატი და ტექსტისინქრონულიპრომპტების ქეშირება
მოდელის ID
grok-4.6

grok-4.6 API-ის ფასები

ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.

Token-ის ტიპიAPISeaოფიციალურიდაზოგვა
შეყვანა 1M token-ზე$1.76$2.00−12%
ქეშირებული შეყვანა 1M token-ზე$0.44$0.50−12%
გამოტანა 1M token-ზე$5.28$6.00−12%

ფასები prompt-ის სიგრძის მიხედვით

Token-ის ტიპი199,999 token-მდეწინა საფეხურზე მეტი
შეყვანა$1.76$2.00$3.52$4.00
ქეშირებული შეყვანა$0.44$0.50$0.88$1.00
გამოტანა$5.28$6.00$10.56$12.00

რა არის grok-4.6?

grok-4.6 is a chat model from xAI's Grok family, available through APISea for text generation and multi-turn conversations. It accepts message arrays with system, user, and assistant roles and returns generated text. With a maximum input of 500,000 tokens and maximum output of 128,000 tokens, it is suited to workflows that supply substantial source material or request lengthy responses. The unified Chat Completions interface offers streaming, output-length controls, and sampling parameters.

Call grok-4.6 through APISea using one API key and the OpenAI-compatible base URL https://api.apisea.ai/v1. Billing is pay-as-you-go and applies only to successful requests. For up to 199,999 input tokens, input costs $1.76 per 1M tokens and output costs $5.28 per 1M tokens. Above that tier, rates are $3.52 and $10.56 per 1M tokens, respectively. Prompt-cache reads cost $0.44 per 1M tokens; the default configuration is about 12% below provider list price.

grok-4.6-ის მთავარი მახასიათებლები

Large Input Capacity

Supply up to 500,000 input tokens for conversations or source-heavy text workflows.

Extended Text Output

Generate up to 128,000 output tokens. Use max_tokens to set a smaller response budget for individual requests.

Prompt Cache Reads

grok-4.6 supports prompt-cache reads, priced at $0.44 per 1M tokens on APISea.

Compatible Chat Interface

Use the OpenAI-compatible Chat Completions format with role-based messages. Choose streaming responses or receive the complete response at once.

როგორ გამოვიძახოთ grok-4.6 API 4 ნაბიჯში

  1. 01

    მიიღეთ API გასაღები

    შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.

  2. 02

    დააყენეთ საბაზისო URL

    თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.

  3. 03

    გაგზავნეთ მოთხოვნა

    გამოიძახეთ POST /v1/chat/completions პარამეტრებით "model": "grok-4.6" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  4. 04

    დაამუშავეთ პასუხი

    წაიკითხეთ პასუხი (ან მიიღეთ token-ები ნაკადურად 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.6",
    "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.6-ით

Document Summaries

Provide source documents in the message content and request summaries organized around your team's questions.

Multi-Turn Assistants

Build text assistants that include prior user and assistant messages as conversation context, with system messages defining behavior.

Long-Form Drafting

Request reports, guides, or other extended text drafts, setting an output budget appropriate to the task.

Source-Based Q&A

Include relevant reference material alongside a question and instruct the model to answer from that material rather than assume missing details.

რჩევები უკეთესი შედეგებისთვის

  • 01

    Set the Model Explicitly

    Set the model parameter to grok-4.6; the general API documentation lists a different default model.

  • 02

    Budget for Input Tiers

    Track input token counts when estimating costs. Requests above 199,999 input tokens use the higher input and output rates.

  • 03

    Control Response Length

    Set max_tokens to limit generation length within the 128,000-token output maximum. Ask for a specific structure or length in your messages as well.

  • 04

    Choose Sampling Deliberately

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

შეზღუდვები და გასათვალისწინებელი საკითხები

  • Maximum input is 500,000 tokens; maximum output is 128,000 tokens.

  • Input above 199,999 tokens moves to a higher input and output pricing tier.

  • The general API documents shared controls; check model-specific documentation before relying on any optional parameter.

grok-4.6 API-ის ხშირად დასმული კითხვები

How much does grok-4.6 cost on APISea?

For up to 199,999 input tokens, input costs $1.76 per 1M tokens and output costs $5.28 per 1M tokens. Above that tier, input costs $3.52 per 1M tokens and output costs $10.56 per 1M tokens; cache reads cost $0.44 per 1M tokens. APISea bills only successful requests.

How do I call grok-4.6 through the API?

Use the base URL https://api.apisea.ai/v1 and send a POST request to /chat/completions with model set to grok-4.6 and a messages array. Authenticate with your APISea key as a Bearer token.

What are grok-4.6's token limits?

The maximum input is 500,000 tokens, and the maximum output is 128,000 tokens. Use max_tokens to request a smaller output limit.

Does grok-4.6 support streaming and generation controls?

The unified Chat API documents stream for streaming or complete responses, plus max_tokens, temperature, top_p, frequency_penalty, presence_penalty, and stop. Check model-specific documentation for optional-parameter support.

Does grok-4.6 support prompt caching?

Yes, the model supports prompt-cache reads at $0.44 per 1M tokens on APISea. The supplied documentation does not specify cache creation or eligibility rules.

Can I use grok-4.6 commercially?

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

მსგავსი მოდელები

xAIჩატი

grok-4.20-0309-non-reasoning

მსჯელობა
$1.10 შეყვანა · $2.20 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
xAIჩატი

grok-4.20-0309-reasoning

მსჯელობა
$1.10 შეყვანა · $2.20 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
xAIჩატი

grok-4.20-multi-agent-0309

ჩატი
$1.10 შეყვანა · $2.20 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
xAIჩატი

grok-4.3

ჩატი
$1.10 შეყვანა · $2.20 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
xAIჩატი

grok-4.5

ჩატი
$1.76 შეყვანა · $5.28 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
xAIჩატი

grok-4.7

ჩატი
$1.76 შეყვანა · $5.28 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Alibabaჩატი

qwen-turbo

ჩატი
$0.264 შეყვანა · $2.64 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Alibabaჩატი

qwen3.6-flash

ჩატი
$0.1508 შეყვანა · $0.905 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
არჩევანი: 250+ მოდელი · მინიმალური შევსება $50

დაიწყეთ grok-4.6-ით შექმნა

ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.