# DeepSeek V4.1 Flash 1017 Uncensored API

DeepSeek V4.1 Flash 1017 Uncensored from DeepSeek, served through RouterHub on the OpenAI-compatible Chat Completions API.

Canonical page: https://routerhub.si/models/deepseek-v4.1-flash-1017-uncensored

- ID: `deepseek-v4.1-flash-1017-uncensored`
- Details and setup: https://routerhub.si/models/deepseek-v4.1-flash-1017-uncensored
- Provider: DeepSeek
- Variant: Uncensored
- Protocols: chat (OpenAI-compatible Chat Completions API, https://routerhub.si/v1/chat/completions)
- Availability: preview
- Input per million tokens: $0.15
- Output per million tokens: $0.6
- Cached input per million tokens (cache hit): $0.0026906
- Cache write per million tokens: $0.15
- Context limit: 1,048,576 tokens
- Compatible tools: OpenCode, VS Code + Continue, VS Code + Cline, Hermes Agent, cURL / Python

## RouterHub vs DeepSeek API pricing

USD per 1 million tokens; official rates are for the standard base model.

| Token type | RouterHub | Official API |
| --- | ---: | ---: |
| Input | $0.15 | $0.3 |
| Output | $0.6 | $1.2 |
| Cached input | $0.0026906 | Not published |
| Cache write | $0.15 | Not published |

RouterHub costs 50% less at 1,000 input and 500 output tokens, before caching.

[Official pricing source](https://api-docs.deepseek.com/quick_start/pricing/) · Checked 2026-10-15 · Same base-model retail comparison as DeepSeek V4.1 Flash.


## cURL

```bash
curl --connect-timeout 30 --max-time 600 https://routerhub.si/v1/chat/completions \
  -H "Authorization: Bearer $ROUTERHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4.1-flash-1017-uncensored","messages":[{"role":"user","content":"Write a short noir scene set in a lighthouse."}],"max_tokens":256}'
```

## Python

```python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ROUTERHUB_API_KEY"],
    base_url="https://routerhub.si/v1",
    timeout=600.0,
    max_retries=0,
)
response = client.chat.completions.create(
    model="deepseek-v4.1-flash-1017-uncensored",
    messages=[{"role": "user", "content": "Write a short noir scene set in a lighthouse."}],
    max_tokens=256,
)
print(response.choices[0].message.content)
```

## Setup guides

- OpenCode: https://routerhub.si/guides/opencode
- VS Code + Continue: https://routerhub.si/guides/vscode-continue
- VS Code + Cline: https://routerhub.si/guides/vscode-cline
- Hermes Agent: https://routerhub.si/docs/tools/hermes-agent
- cURL / Python: https://routerhub.si/docs/tools/api-request
