Skip to content

feat(cheapaimodel): add cheapaimodel provider - #11684

Merged
rekram1-node merged 2 commits into
anomalyco:devfrom
nicho810:add-cheapaimodel
Nov 14, 2026
Merged

rekram1-node merged 2 commits into
anomalyco:devfrom
nicho810:add-cheapaimodel

Conversation

@nicho810

Copy link
Copy Markdown
Contributor

Summary

  • Add cheapaimodel (https://cheapaimodel.ai) as an OpenAI-compatible multi-model relay (providers/cheapaimodel), with base_model for all 5 API IDs: deepseek-v4-1-flash, glm-5.3, glm-5.3-flash, grok-4.7, kimi-k3.
  • Costs are USD/MTok from the public catalog. They sit below the labs' list prices on purpose (30% off; Grok 4.7 90% off), and the same catalog returns the list price next to ours (listPricing) for comparison. DeepSeek V4.1 Flash bills a 2x peak multiplier on weekdays 01:00–04:00 and 06:00–10:00 UTC (no holiday exemption on this host); the other four are flat.
  • Reasoning controls are mapped from each lab's first-party entry (relay policy in AGENTS.md); requests are passed through to the lab.
  • Limits and modalities follow the lab files, so the model files are override-only.

Disclosure: I work on cheapaimodel, and we'll keep this entry up to date when models or prices change.

Test plan

  • bun validate
  • bun run v1:check: only additions (the new provider and its 5 models), no existing fields changed
  • OPENCODE_MODELS_PATH=packages/web/dist/_api.json opencode models cheapaimodel lists 5 models (opencode 1.19.4)
  • opencode run -m cheapaimodel/<id> returns a chat completion for all 5 models
  • Live /v1/chat/completions: DeepSeek V4.1 Flash, GLM-5.3, GLM-5.3-Flash and Kimi K3 return reasoning in reasoning_content; DeepSeek with thinking.type = disabled reports 0 reasoning tokens. Grok 4.7 returns no reasoning text, only reasoning_tokens (which rise with reasoning_effort), so its file sets no reasoning_field

Sources

🤖 Generated with Claude Code

Add cheapaimodel, an OpenAI-compatible multi-model relay, with base_model
entries for deepseek-v4-1-flash, glm-5.3, glm-5.3-flash, grok-4.7 and kimi-k3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

The gateway re-derives its USD prices from a monthly fixed exchange rate;
the November rate raises every price by about 0.32%. Values match
https://cheapaimodel.ai/api/models as of 2026-11-02.
@github-actions github-actions Bot removed the reviewer: ready Automated review found no actionable items label Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Nov 2, 2026
@rekram1-node
rekram1-node merged commit e346e92 into anomalyco:dev Nov 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewer: ready Automated review found no actionable items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants