Solutions

Cheap Grok 4.7 API

Grok 4.7 is xAI's Grok model listed at $2 / $6 per 1M input/output tokens. Through Somnus every top-up is credited at 2× to 2.5×, so you effectively pay $1 / $3 or less, on the same OpenAI-compatible key as 50+ other models.

What a top-up buys on Grok 4.7

You payCredit≈ 1M output tokens of Grok 4.7
$20 (2×)$406.7
$50 (2.2×)$11018
$100 (2.35×)$23539
$200 (2.5×)$50083

Output-token count only; input tokens are cheaper. First top-up is at least 2.5×.

When to pick Grok 4.7

Grok 4.7 costs $0.0060 per 1,500-in/500-out request at list price, $0.0030 effective. It sits in the mid price range — a good default for production apps.

Grok 4.7 vs similarly priced models

ModelMakerList (in / out)EffectiveSame request, effective
Qwen 3.8 MaxAlibaba$1.65 / $4.95$0.83 / $2.48$0.0025
GPT-5.6 LunaOpenAI$1 / $6$0.5 / $3$0.0022
GLM 5.3Zhipu$1.4 / $4.4$0.7 / $2.2$0.0022
Claude Sonnet 5Anthropic$2 / $10$1 / $5$0.0040

Nearest models to Grok 4.7 by blended price (3 input : 1 output). All run on one Somnus key.

Getting the most out of Grok 4.7 for less

  • Input is 3.0× cheaper than output on Grok 4.7, so long context with short answers is the cheapest pattern.
  • A $200 top-up gives $500 credit — about 167M blended Grok 4.7 tokens.
  • Mix models: send easy steps to DeepSeek V4 Flash and keep Grok 4.7 for the steps that need it.

Use Grok 4.7

javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.SOMNUS_API_KEY,
  baseURL: "https://gateway-production-c837.up.railway.app/v1",
});

const resp = await client.chat.completions.create({
  model: "claude-sonnet-5",
  messages: [
    {"role": "user", "content": "Summarise this in one line"}
  ],
});
console.log(resp.choices[0].message.content);

Copy the exact model id from your dashboard.

Questions

Is Grok 4.7 really cheaper on Somnus?

Usage is billed at xAI's list price, but each dollar you pay is credited as $2–$2.50, so the effective price is half or less.

Do I need a subscription?

No. Top up any amount from $5, or start with the free $5 credit.

Is Somnus affiliated with xAI?

No. Somnus is an independent gateway.

Try Grok 4.7 with free credit

$5 free on sign-up, then 2× or more on every top-up.

Create a free account

Related

Browse more: Alternatives · Compare · Use cases · Developers · Solutions · Tools

WindowsStart with $5 free