DeepSeek V4.1 Flash (Alibaba) API

Alibaba · serves deepseek-v4.1-flash

Call it

OpenAI-compatible endpoint — set QWENCLOUD_API_KEY.

curl https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions \
  -H "Authorization: Bearer $QWENCLOUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI  # pip install openai

client = OpenAI(
    base_url="https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
    api_key="...",  # QWENCLOUD_API_KEY
)
resp = client.chat.completions.create(
    model="deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Use this data

Raw JSON for this page: deepseek-v4.1-flash.json. Free to reuse under CC BY 4.0 with attribution to apipriceindex.com.