Skip to content

feat: add Grok 4.5 and 4.6 models - #351

Open
louisvolant wants to merge 1 commit into
superagent-ai:mainfrom
louisvolant:feat/add-grok-4.5-4.6-models
Open

feat: add Grok 4.5 and 4.6 models#351
louisvolant wants to merge 1 commit into
superagent-ai:mainfrom
louisvolant:feat/add-grok-4.5-4.6-models

Conversation

@louisvolant

@louisvolant louisvolant commented Aug 15, 2026

Copy link
Copy Markdown

Summary

Adds the newly released Grok 4.5 and Grok 4.6 models to the hardcoded model registry in src/grok/models.ts.

Currently the CLI only knows models up to Grok 4.3, so both Grok 4.5 and Grok 4.6 must be entered via --model and are not listed by grok models.

Changes

  • Add grok-4.6 — the latest flagship reasoning model.
  • Add grok-4.5 — flagship reasoning model, including its grok-4.5-latest and grok-build-latest aliases.
  • Pricing ($2 in / $6 out per 1M tokens) and context window (500K) taken directly from the xAI Models API.

Verification

  • grok models lists both new models with correct metadata.
  • bun run build succeeds.
  • Existing model tests in src/grok/models.test.ts pass.

Screenshot

  grok-4.6 — Grok 4.6 (reasoning)
    Latest flagship reasoning model | 500K context | $2/$6 per 1M tokens
  grok-4.5 — Grok 4.5 (reasoning)
    Flagship reasoning model | 500K context | $2/$6 per 1M tokens
    aliases: grok-4.5-latest, grok-build-latest

Note

Low Risk
Static catalog metadata only; no runtime, auth, or API behavior changes.

Overview
Registers Grok 4.6 and Grok 4.5 in the hardcoded MODELS list in models.ts so grok models and --model can use them without manual IDs.

Both entries are reasoning flagships with 500K context and $2 / $6 per 1M input/output tokens. Grok 4.5 also maps aliases grok-4.5-latest and grok-build-latest. DEFAULT_MODEL remains grok-4.3.

Reviewed by Cursor Bugbot for commit 5f96638. Configure here.

@open-cla

open-cla Bot commented Aug 15, 2026

Copy link
Copy Markdown

Contributor License Agreement

All contributors are covered by a CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant