DeepSeek Chat

DeepSeek Chat (V3) is a general-purpose Mixture-of-Experts model from DeepSeek, pre-trained on nearly 15 trillion tokens. It delivers strong performance across reasoning, math, and code generation tasks at a fraction of the cost of comparable frontier models.

Quick Reference

PropertyValue
Model IDdeepseek/deepseek-chat
Context window128,000 tokens
Max output8,192 tokens
Streaming
Function calling
Structured output
Batch API

Pricing

TypePrice
Input$0.04 / 1M tokens / 1M tokens
Output$0.06 / 1M tokens / 1M tokens

Strengths

  • Cost-effective — Frontier-level performance at competitive pricing
  • Reasoning — Strong analytical and logical capabilities
  • Math — Solid mathematical problem solving
  • Coding — Reliable code generation for common tasks

Example

from openai import OpenAI

client = OpenAI(
    base_url="https://openapi.linkwo.ai/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="deepseek/deepseek-chat",
    messages=[
        {"role": "user", "content": "Write a Python function to find the longest common subsequence of two strings."}
    ],
    temperature=0.3
)

print(response.choices[0].message.content)