HeyPuter / HeyPuter/puter

backend new models check - xai - 2026-09-16

Open
#3,879 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
43.5k
Forks
4.1k
Avg merge
1d 3h
Merged PRs (30d)
226

Description

Files checked: `src/backend/drivers/ai-chat/providers/xai/models.ts`, `src/backend/drivers/ai-image/providers/xai/models.ts`, `src/backend/drivers/ai-tts/providers/xai/costs.ts`

**chat (0)** — all upstream grok chat ids/aliases (grok-4.3, grok-4.5, grok-4.6... wait, see note) already match backend id/alias set except as noted below.

**image (2)**
- `grok-imagine-image-2.0` | aliases: none | context: 64000 | created: 2026-08-08 | price: tiered — low/1k: $0.40, low/2k: $0.60, medium/1k: $0.60, medium/2k: $0.80 (per raw payload scale; verify against https://docs.x.ai/developers/pricing)
Notes: distinct major version id, not a dated snapshot of `grok-imagine-image` (base already in backend) — genuinely new.
- `grok-imagine-image-pro` | aliases: found only inside the upstream `aliases[]` of parent id `grok-imagine-image-quality` | context: 16000 | created: 2026-04-03 (parent's created date) | price: see provider pricing page
Notes: this name never appears in the backend id/alias set even though its parent id `grok-imagine-image-quality` is supported — analogous to the known `grok-code-fast-1`-inside-`grok-build-0.1` alias-hiding pattern. Recommend verifying whether "pro" is a distinct paid tier worth adding as an alias or separate model.

skipped (unsupported modality): 2 — `grok-imagine-video` (created 2026-01-28), `grok-imagine-video-1.5` (created 2026-05-27, aliases `grok-imagine-video-1.5-preview` / `grok-imagine-video-1.5-2026-05-30`) — video, no xai video provider in backend.
legacy upstream models not in backend (verify intent): none

Alias-suggestion notes (not new, base already supported, already collapsed into base, no action needed): several dated `grok-4.20-*` reasoning/non-reasoning/multi-agent variants, and `grok-imagine-image`/`grok-imagine-image-quality` dated snapshots, are already covered by existing backend aliases.

Contributor guide

Open the contributing guide

Research direction

Start with the three named files under src/backend/drivers/ai-* and compare their current xAI model IDs, aliases, and costs with the upstream entries. Verify the image pricing at the linked xAI pricing page and determine whether grok-imagine-image-2.0 and grok-imagine-image-pro need backend entries or aliases; done means confirmed additions are represented consistently while unsupported video models remain skipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.