zen.mdx 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ---
  2. title: Zen
  3. description: Curated list of models provided by opencode.
  4. ---
  5. import config from "../../../config.mjs"
  6. export const console = config.console
  7. export const email = `mailto:${config.email}`
  8. opencode zen is a list of tested and verified models provided by the opencode team.
  9. :::note
  10. opencode zen is currently in beta.
  11. :::
  12. Zen works like any other provider in opencode. You login to opencode zen and get
  13. your API key. It's **completely optional** and you don't need to use it to use
  14. opencode.
  15. ---
  16. ## Background
  17. There are a large number of models out there but only a few of
  18. these models work well as coding agents. Additionally, most providers are
  19. configured very differently; so you get very different performance and quality.
  20. :::tip
  21. We tested a select group of models and providers that work well with opencode.
  22. :::
  23. So if you are using a model through something like OpenRouter, you can never be
  24. sure if you are getting the best version of the model you want.
  25. To fix this, we did a couple of things:
  26. 1. We tested a select group of models and talked to their teams about how to
  27. best run them.
  28. 2. We then worked with a few providers to make sure these were being served
  29. correctly.
  30. 3. Finally, we benchmarked the combination of the model/provider and came up
  31. with a list that we feel good recommending.
  32. opencode zen is an AI gateway that gives you access to these models.
  33. ---
  34. ## How it works
  35. opencode zen works like any other provider in opencode.
  36. 1. You sign in to **<a href={console}>opencode zen</a>**, add your billing
  37. details, and copy your API key.
  38. 2. You run `opencode auth login`, select opencode, and paste your API key.
  39. 3. Run `/models` in the TUI to see the list of models we recommend.
  40. You are charged per request and you can add credits to your account.
  41. ---
  42. ## Endpoints
  43. You can also access our models through the following API endpoints.
  44. | Model | Model ID | Endpoint | AI SDK Package |
  45. | ---------------- | ---------------- | --------------------------------------------- | --------------------------- |
  46. | GPT 5 | gpt-5 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
  47. | GPT 5 Codex | gpt-5-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
  48. | Claude Sonnet 4 | claude-sonnet-4 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
  49. | Claude Haiku 3.5 | claude-3-5-haiku | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
  50. | Claude Opus 4.1 | claude-opus-4-1 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
  51. | Qwen3 Coder 480B | qwen3-coder | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
  52. | Grok Code Fast 1 | grok-code | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
  53. | Kimi K2 | kimi-k2 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
  54. ---
  55. ## Pricing
  56. We support a pay-as-you-go model. Below are the prices **per 1M tokens**.
  57. | Model | Input | Output | Cached Read | Cached Write |
  58. | --------------------------------- | ------ | ------ | ----------- | ------------ |
  59. | Qwen3 Coder 480B | $0.45 | $1.50 | - | - |
  60. | Kimi K2 | $0.60 | $2.50 | $0.36 | - |
  61. | Grok Code Fast 1 | Free | Free | - | - |
  62. | Code Supernova | Free | Free | - | - |
  63. | Claude Sonnet 4.5 (≤ 200K tokens) | $3.00 | $15.00 | $0.30 | $3.75 |
  64. | Claude Sonnet 4.5 (> 200K tokens) | $6.00 | $22.50 | $0.60 | $7.50 |
  65. | Claude Sonnet 4 (≤ 200K tokens) | $3.00 | $15.00 | $0.30 | $3.75 |
  66. | Claude Sonnet 4 (> 200K tokens) | $6.00 | $22.50 | $0.60 | $7.50 |
  67. | Claude Haiku 3.5 | $0.80 | $4.00 | $0.08 | $1.00 |
  68. | Claude Opus 4.1 | $15.00 | $75.00 | $1.50 | $18.75 |
  69. | GPT 5 | $1.25 | $10.00 | $0.125 | - |
  70. | GPT 5 Codex | $1.25 | $10.00 | $0.125 | - |
  71. :::note
  72. Credit card fees are passed along at cost; we don’t charge anything beyond that.
  73. :::
  74. The free models:
  75. - Grok Code Fast 1 is currently free on opencode for a limited time. The xAI team is using this time to collect feedback and improve Grok Code.
  76. - Code Supernova is a stealth model that's free on opencode for a limited time. The team is using this time to collect feedback and improve the model.
  77. :::tip
  78. Subscription plans and a free tier are coming soon.
  79. :::
  80. <a href={email}>Contact us</a> if you have any questions.
  81. ---
  82. ## Privacy
  83. All our models are hosted in the US. Our providers follow a zero-retention policy and do not use your data for model training, with the following exceptions:
  84. - Grok Code Fast 1: During its free period, collected data may be used to improve Grok Code.
  85. - Code Supernova: During its free period, collected data may be used to improve
  86. the model.
  87. - OpenAI APIs: Requests are retained for 30 days in accordance with [OpenAI's Data Policies](https://platform.openai.com/docs/guides/your-data).
  88. - Anthropic APIs: Requests are retained for 30 days in accordance with [Anthropic's Data Policies](https://docs.anthropic.com/en/docs/claude-code/data-usage).
  89. ---
  90. ## Goals
  91. We created opencode zen to:
  92. 1. **Benchmark** the best models/providers for coding agents.
  93. 2. Have access to the **highest quality** options and not downgrade performance or route to cheaper providers.
  94. 3. Pass along any **price drops** by selling at cost; so the only markup is to cover our processing fees.
  95. 4. Have **no lock-in** by allowing you to use it with any other coding agent. And always let you use any other provider with opencode as well.