Refract

Refract › Models › DeepSeek V4.1 Flash 1017

DeepSeek V4.1 Flash 1017 API

Use DeepSeek V4.1 Flash 1017 by DeepSeek through Refract's OpenAI-compatible API for $0.12 per 1M input and $0.48 per 1M output tokens. Pay per token, no subscription.

Model IDdeepseek-v4.1-flash-1017
ProviderDeepSeek
Input, per 1M tokens$0.12
Output, per 1M tokens$0.48
Context window1,048,576 tokens

About this model

DeepSeek V4.1 Flash 1017 is DeepSeek's DeepSeek V Flash 1017 model on Refract, and the highest-priced of the 3 DeepSeek models here. It reads up to 1M tokens of context. Repeated prompt prefixes are read from cache at $0.003 per 1M tokens, 97% less than fresh input, which is what makes long agent sessions cheap.

How it compares

What a request costs

A typical chat message (2,000 tokens in, 400 out) costs about $0.0004. A coding-agent step (60,000 tokens in, 54,000 of them from cache, 800 out) costs about $0.0013.

Chat with DeepSeek V4.1 Flash 1017 · Get an API key

Use it from code

curl https://refracthub.com/v1/chat/completions \
  -H "Authorization: Bearer $REFRACT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek-v4.1-flash-1017", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI

client = OpenAI(base_url="https://refracthub.com/v1", api_key="YOUR_REFRACT_KEY")
reply = client.chat.completions.create(model="deepseek-v4.1-flash-1017", messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)

Questions

How much does DeepSeek V4.1 Flash 1017 cost on Refract?

$0.12 per 1M input tokens and $0.48 per 1M output tokens. You pay only for the tokens you use, with no subscription.

DeepSeek V4.1 Flash 1017 or DeepSeek V4.1 Flash: which should I use?

They cost the same. Both work with the same key and the same API, so you can try one and switch by changing the model name from "deepseek-v4.1-flash-1017" to "deepseek-v4.1-flash".

Does it work with the OpenAI SDK?

Yes. Point the OpenAI SDK, or any OpenAI-compatible app, at https://refracthub.com/v1 with your Refract key and use the model name "deepseek-v4.1-flash-1017". The Anthropic Messages format works too.

Can I use DeepSeek V4.1 Flash 1017 without writing code?

Yes. Chat with it on the web at https://refracthub.com/chat, or use the Refract desktop app for Windows.

Other DeepSeek models

All 56 models