DzTokens

x-ai/grok-4.20

Tool use
Model id — paste this in your code
x-ai/grok-4.20

Pricing · per 1M tokens

1 Pulse = 1 DA
Input225 Pulses= 225 DA
Output450 Pulses= 450 DA
Cached input36 Pulses= 36 DA
Context window2MMax output: —

Capabilities

  • Tool use — Can call your functions / tools

Estimate your cost

Estimated cost

Use this model

Create an account, top up in dinars and call it with your key:

from openai import OpenAI

client = OpenAI(
    base_url="https://dztokens.com/v1",
    api_key="sk-dz-…",
)

reply = client.chat.completions.create(
    model="x-ai/grok-4.20",
    messages=[{"role": "user", "content": "Salam!"}],
)
print(reply.choices[0].message.content)
Create a free account Console

More from xAI

Start building with AI today

Create your account, top up from 500 DA and send your first request in minutes.

Create a free account Console