grok-4.7 API
Use grok-4.7 on APISea for text generation and multi-turn chat with up to 500,000 input tokens.
grok-4.7grok-4.7 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.7?
grok-4.7 is a chat model from xAI's Grok family, available through APISea for text generation and multi-turn conversations. It accepts messages 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 offers room for substantial source material and longer responses. The OpenAI-compatible Chat Completions interface provides streaming and non-streaming responses, plus controls for randomness, output length, and stop sequences.
Call grok-4.7 using one APISea key and the base URL https://api.apisea.ai/v1. Billing is pay-as-you-go, with charges only for successful requests. For inputs up to 199,999 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. Prompt-cache reads cost $0.44 per 1M tokens; the default configuration is about 12% below provider list price.
grok-4.7-ის მთავარი მახასიათებლები
Large Input Allowance
Supply up to 500,000 input tokens for text-generation and chat requests.
Long Output Support
Generate up to 128,000 output tokens. Set max_tokens to bound the requested response length.
Prompt Cache Reads
grok-4.7 supports prompt-cache reads, priced at $0.44 per 1M tokens on APISea.
Flexible Response Delivery
Choose streaming SSE responses or receive the complete response at once. The interface follows the OpenAI Chat Completions API format.
როგორ გამოვიძახოთ grok-4.7 API 4 ნაბიჯში
- 01
მიიღეთ API გასაღები
შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.
- 02
დააყენეთ საბაზისო URL
თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.
- 03
გაგზავნეთ მოთხოვნა
გამოიძახეთ POST /v1/chat/completions პარამეტრებით "model": "grok-4.7" და ქვემოთ ჩამოთვლილი პარამეტრებით.
- 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.7",
"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.7-ით
Document Summaries
Build workflows that supply lengthy source text and ask for summaries organized around specific questions or sections.
Multi-Turn Assistants
Include prior user and assistant messages to build conversational applications, with a system message defining the assistant's role.
Long-Form Drafting
Generate reports or other extended drafts from supplied briefs, using max_tokens to control response length.
Source-Based Q&A
Provide reference material in the message content and ask the model to answer questions using that material.
რჩევები უკეთესი შედეგებისთვის
- 01
Watch the Pricing Threshold
Estimate input size before sending large requests. Inputs above 199,999 tokens use the higher input and output pricing tier.
- 02
Budget Output Tokens
Set max_tokens to match the length your application needs rather than always requesting the maximum. Output is billed per generated token.
- 03
Tune One Sampling Control
Use a lower temperature, such as 0.2, for more deterministic output. The documentation recommends adjusting either temperature or top_p rather than both.
- 04
Evaluate Cache Read Usage
Prompt-cache reads have a lower rate than standard input. Check cache behavior for your workload before assuming repeated messages will receive cache-read pricing.
შეზღუდვები და გასათვალისწინებელი საკითხები
Maximum input is 500,000 tokens; maximum output is 128,000 tokens.
Input above 199,999 tokens moves both input and output to the higher pricing tier.
A response can end with a length finish reason when the generation limit is reached.
grok-4.7 API-ის ხშირად დასმული კითხვები
How much does grok-4.7 cost on APISea?
For inputs up to 199,999 tokens, input is $1.76 per 1M tokens and output is $5.28 per 1M tokens; above that tier, input is $3.52 per 1M tokens and output is $10.56 per 1M tokens. Cached input reads cost $0.44 per 1M tokens. The default configuration is about 12% below provider list price, and APISea bills only successful requests.
How do I call grok-4.7 through the API?
Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions. Authenticate with your APISea key as a Bearer token, set the model field to grok-4.7, and provide a messages array.
Does grok-4.7 support streaming?
The Chat Completions interface supports streaming SSE output with stream set to true. Set stream to false to receive the complete response at once.
Which generation parameters can I use?
The documented interface includes temperature, top_p, max_tokens, frequency_penalty, presence_penalty, stop, and n. Messages use role and content fields, with system, user, and assistant roles.
What are grok-4.7's token limits?
The maximum input is 500,000 tokens, and the maximum output is 128,000 tokens. These are separate limits; use max_tokens to request a smaller output budget.
Can I use grok-4.7 commercially?
Commercial use is subject to the provider's terms. Review xAI's applicable terms and APISea's service terms before deploying your application.
მსგავსი მოდელები
grok-4.20-0309-non-reasoning
grok-4.20-0309-reasoning
grok-4.20-multi-agent-0309
grok-4.3
grok-4.5
grok-4.6
qwen-turbo
qwen3.6-flash
დაიწყეთ grok-4.7-ით შექმნა
ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.