DeepSeek

DeepSeek-V3

deepseek/deepseek-v3
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

DeepSeek-V3是DeepSeek公司发布的一款大型语言模型,以其在数学、编码和中文等任务上的卓越性能而闻名。该模型采用了MoE架构,拥有6710亿参数,每个token激活的参数量为370亿,并且支持128K token的超长上下文窗口。DeepSeek-V3不仅在性能上对标GPT-4o等主流模型,还在推理速度和效率上取得了显著提升。

Input / output modalities
文本 to 文本
Reference input / output price
Input¥2Output¥8per 1M tokens
Context window
65.5K
Added to catalog
Feb 20, 2025

Providers and pricing

ProviderInput /MOutput /MCached /MContextMax outputDetails
Bytedance¥2¥8¥0.465.5K8.2K
Ali¥2¥8¥065.5K8.2K

Bytedance

Latency
2.72s
Throughput
22 tokens/s
Context
65.5K

Pricing

Input
¥2/M tokens
Output
¥8/M tokens
Cached
¥0.4/M tokens

Specifications

Context
65.5K
Max output
8.2K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Ali

Latency
0.97s
Throughput
41 tokens/s
Context
65.5K

Pricing

Input
¥2/M tokens
Output
¥8/M tokens
Cached
¥0/M tokens

Specifications

Context
65.5K
Max output
8.2K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

DeepSeek-V3 code examples and API guide

Modelmesh normalizes requests and responses across service providers behind one consistent API.

Modelmesh provides an OpenAI-compatible Completion API for more than 300 models and service providers. Call it directly, through the OpenAI SDK, or with supported third-party SDKs.

Modelmesh-specific request headers in these examples are optional. When supplied, your application can appear on the Modelmesh rankings.

Supported endpointsSelect an endpoint to switch the example below.
/v1/chat/completions
from openai import OpenAI API_KEY = "$SSY_API_KEY" client = OpenAI( base_url="https://router.shengsuanyun.com/api/v1", api_key=API_KEY, ) try: completion = client.chat.completions.create( model="deepseek/deepseek-v3", messages=[{"role": "user", "content": "Which number is larger, 9.11 or 9.8?"}], temperature=0.6, top_p=0.7, stream=True, ) response_text = "" for chunk in completion: if chunk.choices and chunk.choices[0].delta.content is not None: content = chunk.choices[0].delta.content print(content, end="", flush=True) response_text += content except Exception as error: print(f"Request failed: {error}")
                
              

Related Models