Skip to content

Add support for Z.AI/Zhipu AI, xAI, and Synthetic.new models#107

Merged
mike1858 merged 1 commit intoPiebald-AI:mainfrom
Sewer56:add-new-model-pricing
Jan 22, 2026
Merged

Add support for Z.AI/Zhipu AI, xAI, and Synthetic.new models#107
mike1858 merged 1 commit intoPiebald-AI:mainfrom
Sewer56:add-new-model-pricing

Conversation

@Sewer56
Copy link
Copy Markdown
Contributor

@Sewer56 Sewer56 commented Jan 22, 2026

Just adding whatever was in my usage, but missing from splitrail.

Summary

  • Added 7 new AI models with verified pricing from Z.AI (Zhipu AI), xAI, and Synthetic.new
  • Added 1 model alias for third-party naming conventions (zai-glm-4.6 -> glm-4.6)
    • This was a rename on OpenCode's end, at one point. Or specifically on models.dev

Models Added

Z.AI (Zhipu AI) Models

  • glm-4.6: $0.60 input / $0.11 cached / $2.20 output
  • glm-4.7: $0.60 input / $0.11 cached / $2.20 output (latest flagship)
  • glm-4.7-flash: FREE (designed for local deployment)
    • It doesn't say 'free time limited' on the website, so we'll see.
  • glm-4.6v: $0.30 input / $0.05 cached / $0.90 output (vision model)

https://docs.z.ai/guides/overview/pricing

Popular with 'GLM Coding Plan'.

xAI Models

  • grok-code-fast-1: $0.20 input / $0.02 cached / $1.50 output (314B-parameter MoE)

https://x.ai/news/grok-code-fast-1

Synthetic.new Models

  • hf:zai-org/GLM-4.6: $0.55 input / $2.19 output
  • hf:MiniMaxAI/MiniMax-M2: $0.55 input / $2.19 output

https://synthetic.new/chat/select-model (might require sign-in)

Aliases Added

  • zai-glm-4.6 -> glm-4.6

Details

All models use OpenAI-style cached input pricing where applicable. Pricing is verified from official sources and marked as not estimated.

- Add glm-4.6, glm-4.7, glm-4.7-flash, glm-4.6v (Z.AI/Zhipu AI)
- Add grok-code-fast-1 (xAI)
- Add hf:zai-org/GLM-4.6 and hf:MiniMaxAI/MiniMax-M2 (Synthetic.new)
- Add zai-glm-4.6 alias
- All pricing is verified (not estimated)
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 22, 2026

📝 Walkthrough

Walkthrough

New model entries have been added to the MODEL_INDEX map for Zhipu AI (Z.AI), xAI, and Synthetic.new providers with explicit pricing structure and caching configurations. Additionally, an alias mapping was created to enable canonical model name resolution.

Changes

Cohort / File(s) Summary
Model Registry Expansion
src/models.rs
Added multiple new model entries across Z.AI, xAI, and Synthetic.new sections with PricingStructure (Flat/Tiered) and CachingSupport configurations (+75 lines). Added alias "zai-glm-4.6" → "glm-4.6" for canonical model name resolution.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 New models hop into the registry bright,
With pricing tiers and caching just right,
Each alias maps the way home,
Through Zhipu, xAI, the whole model rome! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: adding support for multiple new AI models from three providers (Z.AI/Zhipu AI, xAI, and Synthetic.new), which directly matches the core changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Member

@mike1858 mike1858 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Sewer56
Copy link
Copy Markdown
Contributor Author

Sewer56 commented Jan 22, 2026

All good 👌

@mike1858 mike1858 merged commit c204ba3 into Piebald-AI:main Jan 22, 2026
6 checks passed
This was referenced Apr 16, 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.

2 participants