Run Hy4 Outlaw in Aider
Run hy4-outlaw in Aider through Wild West: one key, a hard spend cap, and a model that answers instead of refusing.
| Model id | hy4-outlaw |
|---|---|
| Context window | 1,048,576 tokens (1M) |
| Tool calling | Supported |
| Price per 1M tokens | $3.20 input, $0.60 on a cache hit, $6.40 output |
| Web search | Add :online to the id |
Set it up
- Set OPENAI_API_BASE to https://wildwestapi.com/v1 and OPENAI_API_KEY to your key.
- Run aider --model openai/hy4-outlaw; the openai/ prefix is what sends it to the base URL.
- Add the metadata file below so Aider knows the real context window and price instead of warning that it does not.
# shell setx OPENAI_API_BASE https://wildwestapi.com/v1 setx OPENAI_API_KEY sk-ww-... aider --model openai/hy4-outlaw # .aider.model.metadata.json { "openai/hy4-outlaw": { "max_input_tokens": 1048576, "max_output_tokens": 32768, "input_cost_per_token": 0.0000032, "output_cost_per_token": 0.0000064, "litellm_provider": "openai", "mode": "chat" } }
Hy4 Outlaw has its own page with every limit and price.
What a session costs
For a 12-turn Aider session (about 180K input tokens, half of them cache hits, 12K output), Hy4 Outlaw comes to about $0.42 at today's prices; the cache price does most of the work, since re-read context is billed at $0.60 rather than $3.20 per million.
FAQ
Can Hy4 Outlaw be used in Aider?
Yes. Aider does not depend on tool calling, so any chat model works; this one also brings a 1M context.
What does a session cost?
About $0.42 for a 12-turn Aider session (about 180K input tokens, half of them cache hits, 12K output), at $3.20 in, $6.40 out and $0.60 per million on cache hits. Put a spend cap on the key so a long run cannot overrun it.
Is it uncensored?
Tencent's Hy4, uncensored: a million tokens of context, tool calling, reasoning and vision.