DeepSeek V4.1 Flash is now available as a fully managed API in Model Garden
DeepSeek V4.1 Flash from DeepSeek is now available in Public Preview as a fully managed model (MaaS) in Model Garden in Gemini platform. You can learn more on the model card on Model Garden.
Why DeepSeek-V4.1-Flash
DeepSeek V4.1 Flash is DeepSeek’s newest model, released as open weights under the MIT license in September 2026. It takes text and images in, returns text, and carries a 1M-token context window. It is built for agentic and coding work where the input is far larger than the output: agent loops that re-read a growing transcript at every step, changes that span an entire repository, and long documents with charts and screenshots mixed in. To keep that work affordable, the model activates only 8B of its 552B backbone parameters per token while reading a prompt and 16B while writing, and its key-value cache needs about a quarter of the memory per token that DeepSeek V4 Flash’s did.
Independent evaluators rank it among the strongest open models. Artificial Analysis scores DeepSeek-V4.1-Flash at 39 on its Intelligence Index at maximum reasoning effort, ranking it #8 of 173 open-weights models. For agentic coding specifically, DeepSeek’s published evals put it at 90.6% on Terminal-Bench 2.1 and 74.2% on DeepSWE v1.1.
What the managed endpoint gives you
-
Serverless: No provisioning, no scaling policies, no patching. Pay only for the tokens you use, and repeated input that hits the implicit context cache is billed at a 90% discount.
-
OpenAI-compatible API: Chat Completions requests work with the OpenAI SDKs and libraries you already use, without significant code changes.
-
Enterprise Readiness: One project, one bill, and one IAM policy under one roof. The model runs on Google Cloud infrastructure, and DeepSeek cannot access data sent through our endpoints.
Get started
Call it through the OpenAI-compatible Chat Completions API. The model ID is publishers/deepseek-ai/models/deepseek-v4.1-flash-maas, which you reference as deepseek-ai/deepseek-v4.1-flash-maas in the request body.
Here is a complete request against the global endpoint:
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
https://aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/global/endpoints/openapi/chat/completions \
-d '{
"model": "deepseek-ai/deepseek-v4.1-flash-maas",
"messages": [
{"role": "user", "content": "Who are you?"}
]
}'
Preview details
DeepSeek V4.1 Flash is offered at the Preview launch stage, on the global endpoint. Function calling, structured output, and thinking are supported, and requests can use the full 1,048,576-token context window. Provisioned Throughput and batch inference are not available for this model at launch.
Quota is dynamic rather than fixed, so there is no per-project limit to raise. Pricing is flat across the full context window: $0.30 per million input tokens and $1.20 per million output tokens, with cached input at $0.03 per million.
What’s next
Point DeepSeek V4.1 Flash at your longest-context coding agent now in Model Garden in Gemini platform.