Skip to content
FluxCDNFluxCDN
esc

xAI: Grok Latest

This model always redirects to the latest Grok model from xAI.

Input
769,686 Toman/M tokens
Output
2,309,057 Toman/M tokens
Context
500K
Max output
450K
Published
Jul 8, 2026
Maker
xAI

Free plan prices, in Toman at today's rate. Plans and prices

Price by plan

Toman per million tokens at today's rate. A plan lowers the price of your usage up to a limit each period. Up to 200K tokens.

PlanInputOutput
Free769,6862,309,057
Pro738,1412,214,424
Max706,5972,119,790

Long prompts

This model costs more when a request's prompt is long: once the prompt reaches the size below, the whole request is billed at the higher price (as its provider bills it). Toman per million tokens, per plan.

Above 200K tokens
PlanInputOutput
Free1,539,3724,618,115
Pro1,476,2834,428,848
Max1,413,1944,239,581

Capabilities

  • Text
  • Vision
  • Tools
  • JSON
  • Reasoning

What it takes and gives

Accepts
  • Text
  • Image
  • File (PDF)
Creates
  • Text

Every input listed here works through the API and the playground: images and PDFs as data URLs or https links, audio as base64, video as a data URL or a link the model supports.

Call it

Pass ~x-ai/grok-latest as the model name, or let router/auto choose for you.

import os

from openai import OpenAI

client = OpenAI(
    base_url="https://ai.fluxcdn.cloud/api/v1",
    api_key=os.environ["FLUXCDN_API_KEY"],
)

resp = client.chat.completions.create(
    model="router/auto",
    messages=[{"role": "user", "content": "Hello"}],
)

print(resp.choices[0].message.content)