# DeepSeek V4.1 Flash 1017

- Model ID for the API: `deepseek-ai/DeepSeek-V4.1-Flash-1017`
- Privacy tier: Private TEE. Runs in a secure enclave on NEAR AI's infrastructure. Not even NEAR AI can see your prompts. Verify it with a free attestation report.
- Input price: $0.3 per 1M tokens
- Output price: $1.2 per 1M tokens
- Cache read price: $0.006 per 1M tokens
- Context window: 1.05M tokens
- Input modalities: Text, Image
- Output modalities: Text
- API base URL: https://cloud-api.near.ai/v1

Canonical page: https://near.ai/models/deepseek-ai/DeepSeek-V4.1-Flash-1017
Generated: 2026-11-18T10:03:08.660Z

## About this model

October 17, 2026 snapshot of DeepSeek V4.1 Flash, a reasoning and coding model. Served privately from NEAR AI's attested TEE infrastructure.

## Make your first request

Send `POST https://cloud-api.near.ai/v1/chat/completions` over HTTPS. Get an API key at https://cloud.near.ai/signin, then set it as the `NEARAI_API_KEY` environment variable.

```bash
curl --fail-with-body "https://cloud-api.near.ai/v1/chat/completions" \
  -H "Authorization: Bearer $NEARAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'
```

## Verify

- Attestation report for this model: https://cloud.near.ai/verify?model=deepseek-ai%2FDeepSeek-V4.1-Flash-1017
- How verification works: https://docs.near.ai/cloud/verification
- Inference SDK, which checks attestations and signatures for you: https://docs.near.ai/cloud/inference-sdk

## More

- Try it in the Playground: https://cloud.near.ai/playground?model=deepseek-ai%2FDeepSeek-V4.1-Flash-1017
- All models: https://near.ai/models.md
- Pricing: https://near.ai/pricing.md
- Documentation: https://docs.near.ai/cloud/introduction
