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

grok-4.5 API

Use xAI’s grok-4.5 on APISea for text generation and multi-turn chat through an OpenAI-compatible API.

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

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

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

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

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

Token-ის ტიპი200,000 token-მდეწინა საფეხურზე მეტი
შეყვანა$1.76$2.00$3.52$4.00
ქეშირებული შეყვანა$0.264$0.30$0.528$0.60
გამოტანა$5.28$6.00$10.56$12.00

რა არის grok-4.5?

grok-4.5 is an xAI model in the Grok family for text generation and chat applications. On APISea, developers can send text messages with user, assistant, and system roles to build single-turn tasks or conversations that include prior responses. The listed limits are 500,000 input tokens and 500,000 output tokens. The chat interface offers controls including temperature, top_p, max_tokens, and stop sequences, with streaming or complete-response delivery.

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

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

Large Token Limits

The model lists a maximum of 500,000 input tokens and 500,000 output tokens. These are separate input and output limits.

Prompt Cache Reads

Supports prompt-cache reads at $0.264 per 1M tokens on APISea.

Flexible Response Delivery

The chat interface offers SSE streaming or a complete response at once. Set stream explicitly to choose the delivery mode.

Generation Controls

Use max_tokens to bound generation and temperature or top_p to adjust output variation. The interface also accepts up to four stop sequences.

როგორ გამოვიძახოთ grok-4.5 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.5" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  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.5",
    "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.5-ით

Conversational Assistants

Build text-based assistants by sending system instructions, user messages, and prior assistant responses as conversation context.

Document Summaries

Submit document text with instructions for a summary, specifying the desired structure and an output budget with max_tokens.

Drafting Workflows

Generate drafts from text briefs and include previous drafts in follow-up messages to request revisions.

Long-Input Review

Send large collections of text for a requested review or synthesis, staying within the input limit and accounting for the higher pricing tier above 200,000 input tokens.

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

  • 01

    Set an Output Budget

    Choose max_tokens for the size of response your application needs rather than defaulting to the listed output maximum.

  • 02

    Track the Input Tier

    Budget for $1.76 per 1M input tokens and $5.28 per 1M output tokens up to 200,000 input tokens. Above that threshold, the rates are $3.52 and $10.56 per 1M tokens.

  • 03

    Check Cache Usage

    Prompt-cache reads are priced at $0.264 per 1M tokens. Account for cache reads separately from ordinary input when estimating costs.

  • 04

    Choose Controls Explicitly

    Set stream to true for SSE delivery or false for a complete response. For output variation, the documentation recommends using either temperature or top_p.

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

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

  • Requests above 200,000 input tokens use the higher input and output pricing tier.

  • The supplied model facts describe text chat, not image, video, or audio capabilities.

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

How much does grok-4.5 cost on APISea?

For inputs up to 200,000 tokens, input is $1.76 per 1M tokens and output is $5.28 per 1M tokens. Above that threshold, input is $3.52 per 1M tokens and output is $10.56 per 1M tokens; cache reads are $0.264 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.5 through the API?

Use the base URL https://api.apisea.ai/v1 and POST to /chat/completions with Bearer token authentication. Set model to grok-4.5 and provide a messages array containing role and content fields.

Which generation parameters can I use?

The documented chat interface includes temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Temperature ranges from 0–2, top_p from 0–1, and stop accepts up to four sequences.

What are grok-4.5’s token limits?

The listed maximum input is 500,000 tokens, and the listed maximum output is 500,000 tokens. Input length also determines whether the request falls into the pricing tier above 200,000 input tokens.

Does grok-4.5 support streaming and prompt caching?

The chat interface supports SSE streaming with stream set to true and complete responses with stream set to false. The model supports prompt-cache reads, priced at $0.264 per 1M tokens.

Can I use grok-4.5 commercially?

Commercial use is subject to the provider’s terms. Review xAI’s applicable terms and APISea’s terms before deploying it in a commercial 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.6

ჩატი
$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.5-ით შექმნა

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