# DeepSeek V4.1 Flash

Long-context reasoning, coding and agents, with image input. DeepSeek's open-weights V4.1 Flash model for reasoning, coding, agentic tasks and images. Served on GraphN managed inference behind an OpenAI-compatible API as `deepseek-v4.1-flash`.

## Overview

DeepSeek V4.1 Flash (the 1017 release) is DeepSeek's open-weights mixture-of-experts model, a minor update that DeepSeek says improves reasoning, coding, agentic tasks and visual benchmarks. It accepts text interleaved with images, supports tool calling and a thinking mode, and is served here with a 1M-token context window.

## Strengths

- Reasoning, coding and agentic tasks in one model
- Image input alongside text
- 1M-token context window

## Use cases

- Coding agents that work over large codebases or long histories
- Questions over long documents, screenshots and charts

## Good to know

Text and image input only on this alias; no video or audio. Thinking is on unless turned off, and the reasoning counts against max_tokens: with a small budget the whole budget can go to reasoning, returning empty content with finish_reason "length". Turn thinking off or allow a few thousand output tokens.

## Specifications

- **Type**: Chat
- **Context**: 1049K context
- **Parameters**: 763B total (MoE)
- **License**: MIT
- **Family**: DeepSeek V4
- **Weights**: deepseek-ai/DeepSeek-V4.1-Flash-1017
- **Pricing**: Input $0.30/1M · Output $1.20/1M

## API access

### curl

```bash
curl https://gateway.graphn.ai/v1/chat/completions \
  -H "Authorization: Bearer $GRAPHN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
```

### CLI

```bash
graphn model chat deepseek-v4.1-flash -m "What is GraphN?"
```

### Python

```python
@function
async def ask(question: str) -> str:
    return await chat.complete(question, model="deepseek-v4.1-flash")
```

[Start free](https://graphn.ai/signup?next=%2Finference%2Fdeepseek-v4.1-flash)

[Model card](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017) · [Managed inference](https://graphn.ai/inference) · [Pricing](https://graphn.ai/pricing) · [API reference](https://graphn.ai/api)
