Blog

Cheap Grok API: Grok 4.7 chat and Grok Imagine video pricing

Prices checked Nov 26, 2026 · 4 min read

Cheap Grok API: Grok 4.7 chat and Grok Imagine video priced side by side

A cheap Grok API means xAI's models at a lower rate. On TapModels, Grok 4.7 chat costs $0.80 per 1M input tokens and $2.40 per 1M output tokens, against $2.00 and $6.00 at xAI's list price, which is 60% lower. Grok Imagine Video 1.5 costs $0.012, $0.0225 and $0.04 per second at 480p, 720p and 1080p, against $0.08 per second at every resolution on the list. Worked bills for both follow.

Grok API pricing against xAI list price

Dollars on TapModels (100 credits = $1). List price is xAI's published rate as recorded in our catalog on 2026-11-26.

ModelUnitTapModelsList priceLower by
Grok 4.7, inputper 1M tokens$0.80$2.0060%
Grok 4.7, outputper 1M tokens$2.40$6.0060%
Grok Imagine Video 1.5, 480pper second$0.012$0.0885%
Grok Imagine Video 1.5, 720pper second$0.0225$0.0872%
Grok Imagine Video 1.5, 1080pper second$0.04$0.0850%

Percentages are rounded. The list price for Grok Imagine is flat at $0.08 per second, so the saving shrinks as resolution rises.

Grok 4.7: where the price sits among chat models

Grok 4.7's distinctive number is its output price. Output is 3 times input ($2.40 against $0.80), where the other eight chat models charge 5 times. That makes it relatively cheap for output-heavy work such as long-form writing.

Take an output-heavy job: 10M input tokens and 10M output tokens.

ModelWorkingCost
Grok 4.710 x $0.80 + 10 x $2.40$32.00
GPT-6.2 Sol10 x $0.60 + 10 x $3.00$36.00
Gemini 4 Hydrogen10 x $0.60 + 10 x $3.00$36.00
Claude Sonnet 5.510 x $0.80 + 10 x $4.00$48.00

At list price the Grok job is 10 x $2.00 + 10 x $6.00 = $80.00, so you keep $48.00. Now flip it to an input-heavy job, 20M in and 2M out:

  • Grok 4.7: 20 x $0.80 + 2 x $2.40 = $20.80
  • GPT-6.2 Sol: 20 x $0.60 + 2 x $3.00 = $18.00

Sol wins there, since its input price is lower. The cheapest model changes with your token mix, which is why the cheapest LLM API ranks on a fixed job. The full table is in the LLM price comparison.

Grok Imagine video: price and limits

Grok Imagine Video 1.5 is an image-to-video model. You give it a first frame, and it animates it. Clips are 6 or 10 seconds. Per second prices are $0.012 (480p), $0.0225 (720p) and $0.04 (1080p).

ClipWorkingCostAt list price
6 s at 480p6 x $0.012$0.072$0.48
6 s at 720p6 x $0.0225$0.135$0.48
10 s at 1080p10 x $0.04$0.40$0.80

For a batch of 100 six-second clips at 720p, the cost is 100 x $0.135 = $13.50, against $48.00 at list.

Two limits matter. It needs an input image, so it cannot start from text alone. And its status in our catalog is currently degraded, which means you should check the Grok Imagine pricing page and run a test task before building anything on it. Credits are held at submit and charged only on success, so a failed task is not charged.

Compare it with other video models on one page: AI video generator pricing lists a 10-second 1080p clip across five models.

Calling Grok from your code

Chat is OpenAI-compatible:

from openai import OpenAI
import os

client = OpenAI(base_url="https://api.tapmodels.com/v1", api_key=os.environ["TAPMODELS_API_KEY"])
res = client.chat.completions.create(
    model="grok-4-7",
    messages=[{"role": "user", "content": "Write a 300-word product update for a developer tool."}],
    max_tokens=500,
)
print(res.choices[0].message.content, res.usage)

Grok Imagine is a media task. Upload the first frame with POST /v1/files, then pass its URL:

curl https://api.tapmodels.com/v1/tasks \
  -H "Authorization: Bearer $TAPMODELS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-1-5",
    "input": {"image_url": "https://files.example/first-frame.jpg", "duration": "6", "resolution": "720p", "prompt": "Slow push-in, the leaves move in the wind"}
  }'

X AI pricing: what to check

We have not cited xAI's own pricing page for this article. The list column above comes from our catalog, dated 2026-11-26. Before you budget, compare it with xAI's current page for the same model. For head-to-head views, see GPT vs Grok, Gemini vs Grok and Claude Opus vs Grok, and for live Grok rates see the Grok pricing page.

Frequently asked questions

How much does the Grok API cost?

On TapModels, Grok 4.7 costs $0.80 per 1M input tokens and $2.40 per 1M output tokens. xAI's list price as recorded in our catalog is $2.00 and $6.00. Grok Imagine Video 1.5 costs $0.012 to $0.04 per second depending on resolution, against $0.08 per second at list.

Is the Grok API cheaper than GPT or Claude?

On output tokens, yes at this tier: Grok 4.7's $2.40 per 1M is below GPT-6.2 Sol and Gemini 4 Hydrogen at $3.00 and Claude Sonnet 5.5 at $4.00. On input, Sol and Hydrogen are lower at $0.60. Which is cheaper for you depends on your input-to-output ratio.

What is Grok Imagine?

Grok Imagine Video 1.5 is xAI's image-to-video model: you supply a first frame and it adds motion, in 6 or 10 second clips at 480p, 720p or 1080p. It does not do text-to-video in our catalog, and its status is currently marked degraded, so check the model page first.

How do I call the Grok API?

Chat uses the OpenAI-compatible endpoint: set the base URL to https://api.tapmodels.com/v1 and the model to grok-4-7. Grok Imagine is a media task: POST to /v1/tasks with the model grok-imagine-1-5, a first-frame image and a duration, then poll or use a webhook.

Sources