Inference via API
Connect your client
With an API key and prepaid credits (created at /account), the endpoints work as a drop-in provider inside tools you already run. One gateway root, two client conventions:
OPENAI_BASE_URL=https://clawhunter.fun/api/v1 OPENAI_API_KEY=chk_your_key
ANTHROPIC_BASE_URL=https://clawhunter.fun/api ANTHROPIC_API_KEY=chk_your_key
- OpenAI clients land on
/api/v1/chat/completionsand/api/v1/models; Anthropic clients land on/api/v1/messages. Either header works for the key —Authorization: Bearerorx-api-key. - Streaming works on both, key-only. Each call reserves its cost ceiling up front (your input plus max_tokens at the listed rates), then settles for actual usage and refunds the rest — so keep enough balance to cover in-flight ceilings.
- Dated Anthropic model ids like
claude-sonnet-5-20250929normalize to their menu id, and haiku-class small/fast ids map to the cheapest Claude on the menu. Unknown ids get a 400 with the menu.
Smart Router
Send clawhunter/smart as the model and Claw Hunter classifies each request as easy, medium, hard, or frontier, then serves it from that tier's model pool. The pools are grouped by capability, so an easy ask gets a fast, low-cost model and a hard one reaches for the frontier. Within a tier it routes to the best-value model on live marketplace prices, and re-ranks as costs move through the day. You pay the routed model's per-token rates, and the response's billing block names the model that ran and the difficulty it landed on.
The free model
clawhunter/free runs today's featured free model — it rotates daily and is covered by your daily free usage. The response names the real model that served it.
Daily free usage
Every account gets a free-usage allowance that refills every 24 hours. Eligible calls bill to the allowance before touching credits. Your tier and today's allowance show on the dashboard — it grows as you earn activity points or hold $CLAWHUNTER.
The model menu
Every model and its live price is on the models page, or machine-readable on the free models endpoint:
GET https://clawhunter.fun/api/v1/chat/models