Skip to main content

DeepSeek-SiliconFlow

This topic describes service activation, endpoints, request parameters, response fields, supported features, and billing for SiliconFlow DeepSeek models.

Alibaba Cloud Model Studio offers DeepSeek model services from two inference service providers. The SiliconFlow provider supports a longer context, while the Alibaba Cloud Model Studio provider has more relaxed throttling limits and supports web search and context cache.
This document applies only to the China (Beijing) region. To use models, you must use an API Key from the China (Beijing) region.

Activate the service

  1. Go to the Model Studio console, search for deepseek, find the SiliconFlow DeepSeek model card, and click Activate Now.
  2. In the dialog box, confirm the activation and authorization.
After completing these steps, you can call the DeepSeek model service provided by SiliconFlow.

Prerequisites

Before calling a model, obtain an API Key and configure it as an environment variable. If you use an SDK, you must also install the SDK.

Service endpoints

This topic applies only to the China (Beijing) region. Replace {WorkspaceId} with your actual workspace ID.
Call methodSDK base_urlHTTP request URL
OpenAI compatiblehttps://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1POST https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1/chat/completions
DashScopehttps://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1POST https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/services/aigc/text-generation/generation

Call methods

The OpenAI-compatible API supports calls through the OpenAI Python SDK, Node.js SDK, or HTTP. enable_thinking is not a standard OpenAI parameter: pass it in extra_body for the Python SDK and as a top-level parameter for the Node.js SDK. DashScope supports calls through the Python SDK, Java SDK, or HTTP. DashScope Java SDK version 2.19.4 or later is required.

Request parameters

ParameterDescription
modelThe ID of the model to call.
messagesThe input message list.
enable_thinkingControls whether thinking mode is enabled for models that support this parameter.
streamSet to true to enable streaming output.
stream_options.include_usageSet to true to return token usage in a streaming response.
incremental_outputFor DashScope calls, set to true to enable incremental output.
result_formatFor DashScope calls, set to message to return results in message format.

Response fields

FieldDescription
reasoning_contentThe complete thinking process.
contentThe complete response.
usageToken usage information.

Other features

ModelMulti-turn conversationFunction callingPrefix completionWeb searchContext cacheStructured output
siliconflow/deepseek-v3.1-terminusSupportedSupportedSupported
Non-thinking mode only
Not supportedNot supportedNot supported
siliconflow/deepseek-v3-0324SupportedSupportedSupportedNot supportedNot supportedNot supported

Default parameter values

Model

Temperature

Top p

Repetition penalty

Presence penalty

siliconflow/deepseek-v3.1-terminus

1.0

1.0

-

-

siliconflow/deepseek-v3-0324

1.0

1.0

-

-

A hyphen (-) indicates that the parameter is not supported.

Models and billing

SiliconFlow uses its self-developed inference engine to provide low-latency, highly stable inference services for DeepSeek models.
  • Hybrid Thinking Models (thinking is controlled by the enable_thinking parameter): siliconflow/deepseek-v3.1-terminus
  • Non-thinking models: siliconflow/deepseek-v3-0324
For information about model context length and pricing, see the Model Studio console. Billing is based on the number of input and output tokens.
In thinking mode, the chain of thought is billed as output tokens.

Error codes

For troubleshooting, see Error Messages.
Token Plan
Model Playground
Fine-tuning
Model Compression
Statistics and Monitoring
Support