Run Hy4 Outlaw in Zed
Run hy4-outlaw in Zed 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
- Declare an openai_compatible provider in settings.json with hy4-outlaw in available_models.
- Add the key through Agent Settings, Add Provider, so it lives in the OS keychain rather than the file.
- Pick the model in the Agent Panel.
{
"language_models": {
"openai_compatible": {
"wildwest": {
"api_url": "https://wildwestapi.com/v1",
"available_models": [
{
"name": "hy4-outlaw",
"display_name": "Hy4 Outlaw (Wild West)",
"max_tokens": 1048576,
"max_output_tokens": 32768,
"capabilities": { "tools": true }
}
]
}
}
}
}
Hy4 Outlaw has its own page with every limit and price.
What a session costs
For a 25-turn agent task (about 750K input tokens re-read across turns, 85% of them cache hits, 25K output), Hy4 Outlaw comes to about $0.90 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 edit files and run commands in Zed?
Yes. Zed acts through tool calls and this model supports tool calling, so it can read, edit and run, not just chat.
What does a session cost?
About $0.90 for a 25-turn agent task (about 750K input tokens re-read across turns, 85% of them cache hits, 25K 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.