How to Audit My Code for Old Grok Model Aliases

If your development team uses Grok models — whether for AI-powered B2B SaaS or internal tooling — you might have run into confusion caused by old model aliases. These aliases sometimes silently redirect requests to different versions behind the scenes, leading to unpredictable costs, unexpected rate limits, or degraded performance. This post walks you through the essential steps to audit your codebase, check model IDs directly, and make informed decisions about your Grok usage — without losing track in confusing bundles or dual storefronts.

Why Auditing Grok Model Aliases Matters

Grok’s deployment strategy includes two storefronts— grok.com and the grok models surfaced at a second storefront often referred to as “X”. Each may feature differing product packaging, paywalls, and importantly, pricing strategies. The aliases or model IDs your code references might be silently redirecting to newer or bundled models you didn’t explicitly pick. This can create hidden surprises:

    Silent redirects: Your existing code's model_alias may now invoke a different underlying model entirely. Hidden rate limits: Some aliases belong to bundles or premium plans you’re not enrolled in, causing throttling or errors. Pricing traps: You might think you’re using a free demo tier but are being billed unexpectedly. Obscured value decisions: Choices like SuperGrok vs SuperGrok Heavy have major cost and capability tradeoffs.

So, auditing these aliases is not just a code hygiene task; it’s an important way to maintain budget control and feature predictability.

Step 1: Understand Grok's Two Storefronts and Bundling

Before deep diving into your code, get clarity on where your Grok models come from:

grok.com storefront: This is Grok’s classic storefront. Many teams started here with demo and free tiers. The $0 Free tier available here is essentially a demo environment, not a paid plan trial. Expect strict rate limits and fewer concurrency slots. X storefront: Often offers more advanced or bundled products, sometimes under different plan names (e.g., SuperGrok Heavy). Pricing and rate limits can differ wildly here. Bundles often mix multiple models for a flat rate.

Bundles: Sometimes what looks like a single "model alias" is actually a bundle of several related models or modifiers. This can cause silent redirects where your alias suddenly points to a different set of resources. You absolutely want to know if your alias is truly a product or just a bundle packaging.

Things Worth Not Searching For:

Don’t waste time hunting for “official” simple mappings or public documentation that explicitly lists all silent redirects from old aliases. Grok’s product evolves rapidly and such info is typically partial or out-of-date. Instead, focus on static self-assessment methods and the following auditing approach.

Step 2: Extract and Catalog All Model Aliases in Your Codebase

Start by scanning your repositories for all model_alias or explicit model_id usages. Here are common patterns:

    Hardcoded strings or config variables named model_alias or model_id Environment variables like GROK_MODEL_ALIAS API request objects containing a model or modelId field

Tools like DeepSearch can help you execute regex-based analysis across your repos quickly. For example, search for "model_alias"\s*:\s*".*" to find all references.

Once found, build a list or table for reference:

File/Module Alias/ID Source (grok.com vs X) Notes src/api/calls.js SuperGrok grok.com Billed under Free tier, check limits functions/textgen.py SuperGrok Heavy X storefront Bundled plan, premium cost

Step 3: Check Model IDs to Avoid Silent Redirects

Knowing the alias is half the battle. Hidden behind aliases are internal model_ids that can change silently. This causes what I like to call silent redirects — where your code thinks it called “SuperGrok” but Grok’s servers run “SuperGrokV2plus” instead, with potentially different pricing and limits.

How to detect this: your toolchain or API calls should be able to programmatically fetch the current model_id behind an alias before or after usage.

image

Big Brain, an observability-focused tool, has an AI integration that can:

    Query Grok’s model catalog APIs for live mappings of aliases to model_ids Flag expected aliases with multiple underlying models Highlight when your alias points to a deprecated or bundled model variant

If your code uses API calls, make a quick verification step to list the current model_id behind each alias. E.g.,

GET https://api.grok.com/models?alias=SuperGrok Response: "model_id": "grok-supergrok-v2.1", "billing_tier": "pro", "rate_limits": "requests_per_minute": 60

If the model_id isn’t what you expected, update your code or request clarification from your Grok account manager.

Step 4: Understand Rate Limits and What’s Locked Behind Paywalls

A very common confusion comes from the $0 Free tier. Note this:

    The Free tier is a demo, NOT a trial of paid plans. This means constraints like stringent rate limits (e.g., 20 requests/minute), lower concurrency, and reduced model quality. Upgrading to plans like SuperGrok Heavy can offer higher limits but also comes with significant price bumps. Sometimes, your current alias may be locked behind a paywall or require buying a bundle, even if you accidentally call it on the Free tier.

Make sure you have your team’s typical volume in requests/minute and concurrency slots matched against the stated limits for your models. Tools like DeepSearch can help you analyze request logs and rate-limit hits to identify where production leaks may here be happening.

Step 5: Evaluate the Value Decision – SuperGrok vs SuperGrok Heavy

Choosing between SuperGrok and SuperGrok Heavy is a classic cost vs power tradeoff:

Model Pricing Rate Limits Use Cases SuperGrok $0 Free tier (demo) Lower (20 rpm) Basic testing, low volume automations SuperGrok Heavy Paid bundle; contact sales for pricing Higher (200+ rpm) High volume, business-critical apps

Don’t assume you’re safe calling “SuperGrok” aliases if your traffic would suit “Heavy” — model alias redirects can silently downgrade or throttle your throughput.

Step 6: Plan and Execute the Alias Audit

Run exhaustive search for all alias usages through code and infra. Fetch live mappings for all aliases using Grok’s public or internal APIs via tools like Big Brain. Compare rate limits and costs for the mapped model_ids; flag any unexpected payment tiers. Replace or pin aliases to explicit model_ids if your integration permits, or update aliases to the appropriate named alias after validation. Monitor logs for unexpected 429 rate-limit errors or billing spikes. Educate developers on the difference between free/demo tier models vs paid bundles and the impacts of silent redirects. https://instaquoteapp.com/x-premium-8-vs-supergrok-lite-10-which-is-better-for-grok/

Step 7: Using DeepSearch and Big Brain Effectively

DeepSearch shines at crawling all your code repos and config files to rapidly locate all model alias usages and suspicious variable interpolations.

image

Big Brain can interact with Grok APIs programmatically to get the latest canonical model_id behind an alias, visualize your consumption patterns, and correlate against rate limits and billing tiers automatically.

Between these two, you have a powerful combo:

    DeepSearch: Find every reference that might use an old or deprecated alias Big Brain: Check those aliases live against current Grok configurations, pricing plans, and limits

Summary: Your Audit Checklist

    ✅ Identify all Grok model_alias occurrences ✅ Cross-check each alias’s current model_id via API ✅ Confirm which storefront and pricing tier your alias belongs to ✅ Understand that $0 Free tier is a demo, not a true paid plan trial ✅ Watch out for silent redirects that can change your model mid-flight ✅ Monitor rate limits to avoid unexpected throttling ✅ Make informed choices between SuperGrok vs SuperGrok Heavy based on actual needs ✅ Use tools like DeepSearch and Big Brain for comprehensive code and API analysis

This approach isn’t just about cleaning up code — it’s about protecting your budget and ensuring your AI infrastructure runs exactly as you expect.

Further Reading & Tools

    DeepSearch official site — for codebase scanning and AI-enhanced searches Big Brain platform — for live alias validation, API mapping, and monitoring Grok pricing page — beware vague “starting at” pricing and confirm exact limits