Hand it to your AI agent
Copy this prompt into Claude Code, Cursor, Codex or any coding agent. It tells the agent where the docs are and how to use your API key.
Integrate the model `qwen3.5-9b-defiant-fable` from Lovely Router into this project through the native Anthropic Messages API. - Docs (read first): https://lovelyrouter.com/docs/models/anthropic.md - Use the official Anthropic SDK and only change the base URL to https://lovelyrouter.com (or set ANTHROPIC_BASE_URL=https://lovelyrouter.com). Endpoints: POST https://lovelyrouter.com/v1/messages and /v1/messages/count_tokens, unchanged from Anthropic, so Anthropic's docs are the reference for every parameter. `Authorization: Bearer` works too. - Model id: `qwen3.5-9b-defiant-fable`. GET https://lovelyrouter.com/v1/models lists every model with its price. - Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `x-api-key: $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys. - Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large. - Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt. My task: <describe what you want to build or get>
What a request costs
10,000 input + 1,000 output tokens: $0.023
The same with 9,000 input tokens from the cache: $0.016
Price by channel group
| Channel group | Input | Output | Cache read |
|---|---|---|---|
Creative · Hosted Dedicated GPUs | $0.90 | $14.40 | $0.09 |
Call it
Quickstart →Anthropic Messages API
curl https://lovelyrouter.com/v1/messages \
-H "x-api-key: $LOVELY_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model": "qwen3.5-9b-defiant-fable", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'Frequently asked questions
How much does Qwen3.5 9B Defiant Fable (uncensored) cost per million tokens?
$0.90 per 1M input tokens and $14.40 per 1M output tokens at the lowest-priced channel group. A request with 10,000 input and 1,000 output tokens costs about $0.023.
Does Qwen3.5 9B Defiant Fable (uncensored) support prompt caching?
Yes. Cache reads cost $0.09 per 1M tokens, so the same request with 9,000 of its input tokens read from the cache costs about $0.016. Lovely Router keeps a conversation on the same channel so its cache stays warm.
What is the context window of Qwen3.5 9B Defiant Fable (uncensored)?
131K tokens.
Which API format does Qwen3.5 9B Defiant Fable (uncensored) use?
OpenAI Chat Completions, Anthropic Messages API. Use the official SDK you already have: change its base URL to Lovely Router and use your Lovely Router API key.
Is there a subscription or rate limit?
No subscription: you top up a prepaid balance and pay per token. You can set your own requests-per-minute and concurrency limits on each API key.