Skip to content

[SUPERSEDED by #27396] feat(xai): cherry-pick grok-4.3 model entries onto main (#27154) - #27395

Closed
mateo-berri wants to merge 1 commit into
mainfrom
litellm_cherry-pick-grok-4.3-d843
Closed

[SUPERSEDED by #27396] feat(xai): cherry-pick grok-4.3 model entries onto main (#27154)#27395
mateo-berri wants to merge 1 commit into
mainfrom
litellm_cherry-pick-grok-4.3-d843

Conversation

@mateo-berri

@mateo-berri mateo-berri commented May 7, 2026

Copy link
Copy Markdown
Contributor

This PR is superseded by #27396 (rebranded with the required litellm_hotfix_ branch prefix). The branch litellm_cherry-pick-grok-4.3-d843 has been deleted; please close this PR.


Original description retained for history:

Cherry-picks #27154 from litellm_internal_staging onto main so that xai/grok-4.3 and xai/grok-4.3-latest show up in /v1/models for users running off main.

Resolves LIT-2914.

Slack Thread

Open in Web Open in Cursor 

#27154)

* feat(xai): add grok-4.3 and grok-4.3-latest to model_prices_and_context_window.json

xAI's docs page now lists grok-4.3 as the recommended chat / coding model:
"We strongly recommend all API callers use grok-4.3. It is the most
intelligent and fastest model we've built." (https://docs.x.ai/docs/models)

Pricing/specs sourced from xAI's published model metadata:
  - input:  $1.25 / 1M tokens (<=200k),  $2.50 / 1M tokens (>200k)
  - output: $2.50 / 1M tokens (<=200k),  $5.00 / 1M tokens (>200k)
  - cached: $0.20 / 1M tokens (<=200k),  $0.40 / 1M tokens (>200k)
  - context: 1,000,000 tokens
  - capabilities: vision, reasoning, function calling, structured outputs,
    prompt caching, web search

Adds two entries: `xai/grok-4.3` (canonical) and `xai/grok-4.3-latest` (alias),
mirroring the pattern used for the rest of the xAI/Grok-4 family.

* test(xai): add model_info test for grok-4.3 + sync backup cost map

- Mirror xai/grok-4.3 and xai/grok-4.3-latest entries into
  litellm/model_prices_and_context_window_backup.json so the bundled
  model cost map matches the canonical model_prices_and_context_window.json.
- Add tests/test_litellm/test_xai_grok_4_3_model_metadata.py covering
  pricing tiers, capability flags, context window, provider routing,
  and parity between the main and backup cost maps.
- Point 'source' at the live xAI models page (the per-model URL
  https://docs.x.ai/docs/models/grok-4.3 currently 404s).

Co-authored-by: Mateo Wang <mateo-berri@users.noreply.github.com>

---------

Co-authored-by: shin-watcher <shin-watcher@berri.ai>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Mateo Wang <mateo-berri@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codspeed-hq

codspeed-hq Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 16 untouched benchmarks


Comparing litellm_cherry-pick-grok-4.3-d843 (4b587dc) with main (6ff668c)

Open in CodSpeed

@cursor
cursor Bot deleted the litellm_cherry-pick-grok-4.3-d843 branch May 7, 2026 16:13
@cursor cursor Bot changed the title feat(xai): cherry-pick grok-4.3 model entries onto main (#27154) [SUPERSEDED by #27396] feat(xai): cherry-pick grok-4.3 model entries onto main (#27154) May 7, 2026
@mateo-berri mateo-berri closed this May 7, 2026
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.

3 participants