|
5 | 5 |
|
6 | 6 | Typed Python SDK for [claw402.ai](https://claw402.ai) — pay-per-call data APIs via [x402](https://www.x402.org/) micropayments. |
7 | 7 |
|
8 | | -**200+ endpoints** covering crypto market data, US stocks, China A-shares, forex, global time-series, and AI (OpenAI/Anthropic). No API key, no signup, no subscription — just a Base wallet with USDC. |
| 8 | +**200+ endpoints** covering crypto market data, US stocks, China A-shares, forex, global time-series, and AI (OpenAI/Anthropic/DeepSeek/Qwen). No API key, no signup, no subscription — just a Base wallet with USDC. |
9 | 9 |
|
10 | 10 | ## Install |
11 | 11 |
|
@@ -53,7 +53,7 @@ print(resp) |
53 | 53 |
|
54 | 54 | - **Typed methods** — every endpoint has a dedicated Python method with keyword arguments |
55 | 55 | - **Automatic x402 payment** — signs EIP-3009 USDC transfers locally, never sends your key |
56 | | -- **9 provider groups** — crypto, US stocks, China stocks, forex, global data, and AI |
| 56 | +- **11 provider groups** — crypto, US stocks, China stocks, forex, global data, and AI |
57 | 57 | - **Context manager** — `with Claw402(...) as client:` for automatic cleanup |
58 | 58 | - **Zero config** — just a private key, no API keys or registration |
59 | 59 | - **Base mainnet** — pays USDC per call on Coinbase L2 |
@@ -246,6 +246,30 @@ resp = client.anthropic.anthropic.messages({ |
246 | 246 | }) |
247 | 247 | ``` |
248 | 248 |
|
| 249 | +#### DeepSeek |
| 250 | + |
| 251 | +| Resource | Methods | Description | |
| 252 | +|----------|---------|-------------| |
| 253 | +| `deepseek.deepseek` | `chat`, `chat_reasoner`, `completions`, `models` | DeepSeek chat, reasoning, beta completions, model listing — $0.001–0.005/call | |
| 254 | + |
| 255 | +```python |
| 256 | +resp = client.deepseek.deepseek.chat({ |
| 257 | + "messages": [{"role": "user", "content": "Explain BTC basis trade"}] |
| 258 | +}) |
| 259 | +``` |
| 260 | + |
| 261 | +#### Qwen |
| 262 | + |
| 263 | +| Resource | Methods | Description | |
| 264 | +|----------|---------|-------------| |
| 265 | +| `qwen.qwen` | `chat_max`, `chat_plus`, `chat_turbo`, `chat_flash`, `chat_coder`, `chat_vl` | Qwen chat, coder, and vision models — $0.002–0.01/call | |
| 266 | + |
| 267 | +```python |
| 268 | +resp = client.qwen.qwen.chat_max({ |
| 269 | + "messages": [{"role": "user", "content": "Write a Go HTTP middleware"}] |
| 270 | +}) |
| 271 | +``` |
| 272 | + |
249 | 273 | ## Configuration |
250 | 274 |
|
251 | 275 | ```python |
|
0 commit comments