AppsGrid

xAI

Grok 4.7 API

Grok 4.7 by xAI, with a 500,000-token context window.

Try Grok 4.7

Pricing

UsageUSDPKR
Input per 1M tokens$2.16Rs 605
Cached input per 1M tokens$0.54Rs 151
Output per 1M tokens$6.48Rs 1,814

PKR prices are approximate and depend on the exchange rate on the day you top up.

Quick start

Create an API key in your dashboard, then call grok-4.7:

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(base_url="https://api.appsgrid.co/v1", api_key="ag_sk_...")

response = client.chat.completions.create(
    model="grok-4.7",
    messages=[{"role": "user", "content": "Write a tagline for a coffee shop"}],
)
print(response.choices[0].message.content)

cURL

curl https://api.appsgrid.co/v1/chat/completions \
  -H "Authorization: Bearer $APPSGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "grok-4.7", "messages": [{"role": "user", "content": "Hello"}]}'

FAQ

How much does the Grok 4.7 API cost?
Input: $2.16 (Rs 605) per 1M tokens. Cached input: $0.54 (Rs 151) per 1M tokens. Output: $6.48 (Rs 1,814) per 1M tokens. You are only charged for what you use.
Can I pay for Grok 4.7 in Pakistani rupees?
Yes. Top up your AppsGrid balance in PKR with a local card or bank account, or in USD with an international card. The same balance works for every model.
Do I need a separate xAI account?
No. Your AppsGrid API key gives you access to Grok 4.7 and every other model in the catalog.

Other text & chat models