# DeepSeek V4.1 Flash 1017

- Model ID for the API: `deepseek/deepseek-v4.1-flash-1017`
- Privacy tier: Incognito. NEAR AI's TEE router hides your account, and the model runs at the provider. No hardware privacy guarantee.
- 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/deepseek-v4.1-flash-1017
Generated: 2026-11-08T19:02:13.182Z

## About this model

October 17, 2026 snapshot of DeepSeek V4.1 Flash, a reasoning and coding model with image understanding. Served through OpenRouter using zero data retention inference endpoints.

## 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/deepseek-v4.1-flash-1017",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'
```

## Verify

- How verification works: https://docs.near.ai/cloud/verification
- Inference SDK, which verifies Gateway signatures for you: https://docs.near.ai/cloud/inference-sdk

## More

- Try it in the Playground: https://cloud.near.ai/playground?model=deepseek%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
