Grok 4.7 API — Live Pricing, Specs & SDK Guide

Technical Summary & Live Pricing

Call Grok 4.7 API (grok-4.7) on API Store Hub starting from 12,600 ST/1M tokens · 500K context via /v1/chat/completions (OpenAI Chat Completions & Responses API). Prepaid ST billing with cURL, Python, TypeScript and IDE examples.

Model Name
Grok 4.7
Primary Model ID
grok-4.7
Model Family
xAI Grok
Starting Price
12,600 ST/1M tokens (1 VND = 1 ST)
Context Window
500K tokens
Max Output
128K tokens
Protocol & Endpoint
/v1/chat/completions — OpenAI Chat Completions & Responses API
Compatible Apps & SDKs
Cursor, Codex CLI, Cline, Roo Code, Continue, Open WebUI, Dify, n8n, OpenAI SDK

Active Lanes & Variants

Grok 4.7
Model IDLaneBilling UnitPrice (ST / VND)Min/RequestContext WindowMax OutputFeatures
grok-4.7Standard Token1M tokens12,600 ST/1M tok150 ST500K128KReasoning, Vision, Tool use, Streaming, OpenAI API, Thinking, Coding, 500k context
req/grok-4.7Fixed Request (req/)Per request1,900 ST/req-500K128KReasoning, Vision, Tool use, Streaming, OpenAI API, Thinking, Coding, 500k context
apistorehub/grok-4.7AWS High-Speed1M tokens43,900 ST/1M tok450 ST500K128KAWS, Premium, Streaming, Vision, Tool use, Reasoning, Max thinking, Coding, 500k context, OpenAI API

Practical Cost Estimator (ST / VND)

Token VolumeEstimated Cost (ST)VND Equivalent
10,000 tokens (10K)126 ST126 VNĐ
100,000 tokens (100K)1,260 ST1,260 VNĐ
1,000,000 tokens (1M)12,600 ST12,600 VNĐ
10,000,000 tokens (10M)126,000 ST126,000 VNĐ
VolumeEstimated Cost (ST)VND Equivalent
10 requests19,000 ST19,000 VNĐ
100 requests190,000 ST190,000 VNĐ
1,000 requests1,900,000 ST1,900,000 VNĐ
10,000 requests19,000,000 ST19,000,000 VNĐ

Integration Snippets: cURL, Python, TypeScript & Anthropic / Claude Code

cURL

curl https://apistorehub.com/v1/chat/completions \
  -H "Authorization: Bearer sk-ash-your_key" \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-4.7","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.7",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

TypeScript SDK

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://apistorehub.com/v1", apiKey: process.env.API_KEY });
const res = await client.chat.completions.create({
  model: "grok-4.7",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(res.choices[0].message.content);

Anthropic / Claude Code & CLI

export OPENAI_BASE_URL="https://apistorehub.com/v1"
export OPENAI_API_KEY="sk-ash-your_key"
export ANTHROPIC_BASE_URL="https://apistorehub.com"
export ANTHROPIC_AUTH_TOKEN="sk-ash-your_key"
export MODEL_ID="grok-4.7"

Model FAQ

How much does Grok 4.7 API cost on API Store Hub?
Grok 4.7 is live across 3 lane variant(s) starting from 12,600 ST/1M tokens (1 VND = 1 ST), settled accurately to actual usage.
What context window and protocol does Grok 4.7 support?
Grok 4.7 (xAI Grok) provides 500K context over /v1/chat/completions (OpenAI Chat Completions & Responses API) and works with Cursor, Codex CLI, Cline, Roo Code, Continue, Open WebUI, Dify, n8n, OpenAI SDK.
How do I integrate Grok 4.7 with Python, TypeScript, or Claude Code?
Set base_url to https://apistorehub.com/v1 (OpenAI SDK) or https://apistorehub.com (Anthropic SDK / Claude Code), pass model="grok-4.7", and authenticate with a sk-ash- key.
Does Grok 4.7 share one ST credit balance with other AI models?
Yes. Every model on API Store Hub shares one prepaid ST credit balance and a single API key.