Skip to content

feat(models): add OpenRouter Kimi K2 model support#34

Merged
wubin1989 merged 4 commits intomainfrom
upstream-open-pr-315
Apr 28, 2026
Merged

feat(models): add OpenRouter Kimi K2 model support#34
wubin1989 merged 4 commits intomainfrom
upstream-open-pr-315

Conversation

@wubin1989
Copy link
Copy Markdown
Owner

Migrated open PR from upstream for local review.

Upstream: opencode-ai#315
Upstream head: imsaar:feature/openrouter-kimi-k2 @ 5570427

ali-avvo and others added 4 commits July 13, 2025 09:36
Add support for Moonshot AI's Kimi K2 model via OpenRouter with:
- 131K token context window
- $0.57/million input tokens
- $2.30/million output tokens
- API model name: moonshotai/kimi-k2
Add missing Kimi K2 model ID to opencode-schema.json enum arrays
- Add openrouter.kimi-k2-free to model enum lists in schema
- Add OpenRouterKimiK2Free constant and configuration
- Set zero costs for free tier with same context window (131k) as paid version
@wubin1989 wubin1989 merged commit 0b07b7c into main Apr 28, 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