GreenPT Docs

DeepSeek V4.1 Flash

Use DeepSeek V4.1 Flash on the GreenPT API with EU hosting, a 1M-token context, configurable reasoning, and discounted prompt caching.

Use deepseek-v4.1-flash for chat, reasoning, and coding through GreenPT's OpenAI-compatible API. The model runs on EU infrastructure and has a 1M-token context window.

Make a request

Set GREENPT_API_KEY to your GreenPT API key, then run:

curl https://api.greenpt.ai/v1/chat/completions \
  -H "Authorization: Bearer $GREENPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash",
    "messages": [
      { "role": "user", "content": "Explain how a database index speeds up a query." }
    ],
    "reasoning_effort": "none",
    "max_tokens": 512
  }'

The GreenPT model ID is deepseek-v4.1-flash. Keep the v4.1 version in the ID when configuring an OpenAI-compatible client. See Coding with GreenPT for client setup and Streaming for streamed responses.

Pricing

Token classEUR per million tokens
Input€0.22
Output€1.10
Cached input€0.011

These are GreenPT customer rates. Cached input replaces the normal input rate only for tokens reported as cache hits. Cache reuse is automatic when the provider recognizes a repeated prefix; a hit is not guaranteed. See Prompt caching and Pricing.

Reasoning effort

Accepted values are none, minimal, low, medium, and high. The example disables reasoning for a short answer. For a task that needs deliberation, set reasoning_effort to low, medium, or high and increase max_tokens.

Reasoning tokens consume the output budget. A small budget can be exhausted before the model returns visible answer text. Omit reasoning_effort to use the provider's default. See Reasoning effort.

Energy and hosting

GreenPT estimates energy from input, output, and cached-input token counts. This model adopts the DeepSeek V4 Flash 0731 configuration:

SettingValue
Input energy4.7 Wh per million tokens
Output energy280 Wh per million tokens
Cached-input energy0.2 Wh per million tokens
PUE multiplier1.3
Carbon intensity0.193 kgCO2/kWh

The token coefficients are estimates inherited from 0731, not a separate measurement of V4.1 Flash. They represent IT energy before the PUE multiplier. See Carbon calculations for the method and Processing locations for hosting details.

Existing integrations

Adding V4.1 Flash does not change your selected model. The deepseek-v4-flash-0731 ID remains a separate catalogue entry with its own pricing. Change the model ID explicitly when you want to use V4.1 Flash.

On this page