Wild West

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 idhy4-outlaw
Context window1,048,576 tokens (1M)
Tool callingSupported
Price per 1M tokens$3.20 input, $0.60 on a cache hit, $6.40 output
Web searchAdd :online to the id

Set it up

  1. Set OPENAI_API_BASE to https://wildwestapi.com/v1 and OPENAI_API_KEY to your key.
  2. Run aider --model openai/hy4-outlaw; the openai/ prefix is what sends it to the base URL.
  3. 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"
  }
}
Aider with Hy4 Outlaw Aider edits through its own diff format rather than tool calls, so it does not depend on tool calling. It does re-send the files you add on every turn, so add only what the change needs.

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.

The other model in Aider

Uncensored AI models on one key

OpenAI and Anthropic compatible, pay as you go. New to it? Start with uncensored AI, explained.