# DeepSeek (/docs/providers/deepseek)


Overview [#overview]

[DeepSeek](https://www.deepseek.com) is a Chinese AI company specializing in open-source large language models with excellent mathematical and coding capabilities at competitive pricing.

**Official Website:** [https://www.deepseek.com](https://www.deepseek.com)
&#x2A;*API Documentation:** [https://api-docs.deepseek.com](https://api-docs.deepseek.com)

Key Features [#key-features]

* **Open-Source Reasoning** — Visible thinking processes for complex problems
* **High Cost Efficiency** — Competitive pricing for high-volume applications
* **Strong Math & Coding** — Excellent at mathematical reasoning and code generation
* **Function Calling** — Tool use support

Usage Example [#usage-example]

<Tabs items="[&#x22;Python&#x22;, &#x22;JavaScript&#x22;, &#x22;cURL&#x22;]">
  <Tab value="Python">
    ```python
    from openai import OpenAI

    client = OpenAI(
        api_key="YOUR_API_KEY",
        base_url="https://api.yuhuanstudio.com/v1"
    )

    response = client.chat.completions.create(
        model="model-id",
        messages=[
            {"role": "user", "content": "Write a Python quicksort"}
        ]
    )

    print(response.choices[0].message.content)
    ```
  </Tab>

  <Tab value="JavaScript">
    ```javascript
    import OpenAI from "openai";

    const client = new OpenAI({
      apiKey: "YOUR_API_KEY",
      baseURL: "https://api.yuhuanstudio.com/v1",
    });

    const response = await client.chat.completions.create({
      model: "model-id",
      messages: [{ role: "user", content: "Write a Python quicksort" }],
    });

    console.log(response.choices[0].message.content);
    ```
  </Tab>

  <Tab value="cURL">
    ```bash
    curl https://api.yuhuanstudio.com/v1/chat/completions \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -d '{
        "model": "model-id",
        "messages": [{"role": "user", "content": "Write a Python quicksort"}]
      }'
    ```
  </Tab>
</Tabs>

Reasoning Models [#reasoning-models]

Some DeepSeek models expose the thinking process:

```json
{
  "choices": [{
    "message": {
      "role": "assistant",
      "content": "The answer is 42",
      "reasoning_content": "Let me think through this step by step..."
    }
  }]
}
```

Available Models [#available-models]

Use the [Models API](/docs/models-api) to query available models:

```bash
curl https://api.yuhuanstudio.com/v1/models?provider=deepseek \
  -H "Authorization: Bearer YOUR_API_KEY"
```

<Callout type="info">
  Models and pricing are synced automatically from DeepSeek. Check the dashboard for current availability and rates.
</Callout>

Official Resources [#official-resources]

* [DeepSeek Website](https://www.deepseek.com)
* [API Documentation](https://api-docs.deepseek.com)
* [GitHub](https://github.com/deepseek-ai)
