Use Kimi K3.1 Pro and GLM-5.3 in Aider
Point Aider at ParamHub with the setup below. You pay per token from prepaid credits; there is no subscription.
What you need
- Aider installed:
python -m pip install aider-install && aider-install - A ParamHub API key with credits on the account.Create a key →
Set it up
Set two environment variables and pass the model on the command line. No config file is needed.
export OPENAI_API_BASE="https://api.paramhub.com/v1"
export OPENAI_API_KEY="YOUR_API_KEY"
aider --model openai/kimi-k3.1-pro --edit-format diffCheck that it works
- 1Send any prompt. The request appears under Usage in your ParamHub console with its token counts and cost.
Which model to pick
We ran Aider 0.86.2 through ParamHub on one task: fix 4 planted bugs and add a feature in a 6-file Python library, graded by 11 hidden tests.
| Model | Passed | Time | Input | Cached | Output | Cost |
|---|---|---|---|---|---|---|
| kimi-k3.1-pro | 2/2 | 7.1 min | 14,000 | 28% | 22,900 | $0.21 |
| GLM-5.3 | 2/2 | 6.0 min | 8,000 | 20% | 20,600 | $0.07 |
| GLM-5.2 | 1/1 | 1.6 min | 8,000 | 18% | 11,000 | $0.03 |
Passed is how many runs of the task passed every hidden test, out of how many we made: 4/5 means 5 runs, 4 passed. Time, input and output are medians per task; output includes thinking. Tested on November 23, 2026 on a small task with few runs, so read the numbers as rough. Cost is per task, calculated from those medians at the current prices. Pricing →
Good to know
- The openai/ prefix before the model name is required.
- Keep --edit-format diff. Without it Aider rewrites whole files for models it does not know.
- Aider does not explore a repository by itself. For the test we gave it the source files, the issue text and a test command up front, so its time and token numbers are not comparable with the other tools.
- For a model it does not know, Aider also uses that model to summarize chat history, which adds a few requests per session.
- Thinking is on by default and is billed as output tokens.
- Model names are case-sensitive. Use them exactly as listed on the pricing page.
- Requests are processed by model providers located in China. Read the Privacy Policy before sending confidential code. Privacy Policy →
If something goes wrong
The key is wrong or disabled. Copy it again from API Keys.
The account has no credits. Add credits on the Billing page.
Check the spelling and case of the model name.
Switch back
Unset the two variables.
Create an account, add credits from $5, and paste your key into the setup above.
Other tools
Aider belongs to its respective owner. ParamHub is an independent service and is not affiliated with or endorsed by it.