> ## Documentation Index
> Fetch the complete documentation index at: https://docs.venice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# DeepSeek v4.1 Flash (1017) E2EE API

> DeepSeek v4.1 Flash (1017) E2EE API on Venice: 1M context, $0.30 input and $1.20 output per 1M tokens. End-to-end encrypted. Pricing, specs and code examples.



## DeepSeek v4.1 Flash (1017) E2EE API

DeepSeek v4.1 Flash (1017) E2EE is a large language model by DeepSeek, available on the Venice API as `e2ee-deepseek-v4-1-flash-1017`. This model supports end-to-end encryption (E2EE) and runs in a Trusted Execution Environment (TEE). Your prompt is encrypted on your client and decrypted inside a verified TEE. The response is then encrypted and sent back to your client for decryption. Venice's system prompt and web search are disabled to preserve end-to-end encryption. Attestation evidence is available for independent verification. It is also available without end-to-end encryption, as [DeepSeek v4.1 Flash (1017)](https://docs.venice.ai/models/deepseek-v4-1-flash-1017.md).

DeepSeek V4.1 Flash 1017 running in a Trusted Execution Environment (TEE). Hardware attestation evidence is available for independent verification of enclave identity and configuration.

### DeepSeek v4.1 Flash (1017) E2EE API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `e2ee-deepseek-v4-1-flash-1017` | E2EE | E2EE | $0.30 / $1.20 per 1M |

### DeepSeek v4.1 Flash (1017) E2EE specifications

| Spec | Value |
| - | - |
| Provider | DeepSeek |
| Released | Jul 7, 2026 |
| Privacy | E2EE |
| Status | Stable |
| Open weights | [deepseek-ai/DeepSeek-V4.1-Flash-1017](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017) |
| Context window | 1M tokens |
| Max output | 8K tokens |
| Reasoning effort | Not adjustable |
| Served precision | FP8 |
| [Live speed and uptime](https://docs.venice.ai/models/methodology.md#machine-readable-data) | [https://metrics.venice.ai/v1/models/e2ee-deepseek-v4-1-flash-1017.json](https://metrics.venice.ai/v1/models/e2ee-deepseek-v4-1-flash-1017.json), refreshed every 5 minutes |

### How to use the DeepSeek v4.1 Flash (1017) E2EE API

Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "e2ee-deepseek-v4-1-flash-1017"` and your API key.

This sample sends the prompt as plaintext, so the request runs TEE-only. For end-to-end encryption, send encrypted messages with the E2EE headers, as the [TEE and E2EE guide](https://docs.venice.ai/guides/features/tee-e2ee-models.md#e2ee-models) shows.

```bash theme={"system"}
curl https://api.venice.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "e2ee-deepseek-v4-1-flash-1017",
    "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }]
  }'
```

### Related models

* [MiniMax M3 Preview API](https://docs.venice.ai/models/minimax-m3-preview.md): $0.30 / $1.20 per 1M
* [GPT-5.6 Luna API](https://docs.venice.ai/models/gpt-5-6-luna.md): $0.20 / $1.20 per 1M
* [GPT-5.6 Luna Pro API](https://docs.venice.ai/models/gpt-5-6-luna-pro.md): $0.20 / $1.20 per 1M
* [Qwen 3.6 35B A3B E2EE API](https://docs.venice.ai/models/qwen-3-6-35b-a3b-e2ee.md): $0.182 / $1.18 per 1M


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.