Grok API — 即時價格表、介面協議與 SDK 接入指南

Gateway Overview & Live Pricing

透過 API Store Hub 接入 Grok API(9 個線上模型),低至 12,400 ST/1M tokens。Grok 4.7、4.6、4.5 与 Grok Imagine — 实时推理与多模态生成。統一 ST 餘額與高可用路由。

Base URL
https://apistorehub.com/v1
Primary Endpoint
/v1/chat/completions
API Key Prefix
sk-ash-
Live Models
9
Starting Price
12,400 ST/1M tokens (1 VND = 1 ST)

Live Grok API Model Pricing

Grok API
Model IDDisplay NameFamilyBillingPrice (ST)Min FloorContextAPI
grok-4.5Grok 4.5grok1M tokens12,400 ST/1M tok150 ST500Kopenai
grok-4.6Grok 4.6grok1M tokens12,600 ST/1M tok150 ST500Kopenai
grok-4.7Grok 4.7grok1M tokens12,600 ST/1M tok150 ST500Kopenai
grok-image-2.0Grok Imagine Image 2.0grokPer request1,000 ST/req--openai
req/grok-4.5Grok 4.5grokPer request1,900 ST/req-500Kopenai
req/grok-4.6Grok 4.6grokPer request1,900 ST/req-500Kopenai
req/grok-4.7Grok 4.7grokPer request1,900 ST/req-500Kopenai
st2/grok-imagine-video-1.5Grok Imagine Video 1.5 (ST2)grokPer request6s: 13,200 ST · 10s: 22,000 ST · 15s: 33,000 ST--openai
apistorehub/grok-4.7Grok 4.7grok1M tokens43,900 ST/1M tok450 ST500Kopenai

OpenAI-Compatible SDK (/v1/chat/completions)

cURL

curl https://apistorehub.com/v1/chat/completions \
  -H "Authorization: Bearer sk-ash-your_key" \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-4.5","messages":[{"role":"user","content":"Hello"}]}'

Python SDK

import os
from openai import OpenAI

client = OpenAI(base_url="https://apistorehub.com/v1", api_key=os.environ["API_KEY"])
resp = client.chat.completions.create(model="grok-4.5", messages=[{"role": "user", "content": "Hello"}])
print(resp.choices[0].message.content)

Grok API FAQ

What is the starting price for Grok API on API Store Hub?
Grok API currently includes 9 active variants starting from 12,400 ST/1M tokens (1 VND = 1 ST).
Which endpoints and SDKs work with Grok API?
Connect via /v1/chat/completions on https://apistorehub.com using standard OpenAI SDKs, Google GenAI SDK, Python, TypeScript, or cURL.
How is billing handled for Grok API?
Usage is deducted per request or per 1M tokens from your prepaid ST credit balance on API Store Hub with full per-call logs.
Can one API key call Grok API alongside Claude and GPT?
Yes. Switch model IDs dynamically on API Store Hub using a single API key and unified ST wallet.