# DeepSeek V3 API

> DeepSeek-V3 is the latest model from the DeepSeek team, building upon the instruction following and coding abilities of the previous versions. Pre-trained on nearly 15 trillion tokens, the reported evaluations reveal that the model outperforms other open-source models and rivals leading closed-source models. For model details, please visit [the DeepSeek-V3 repo](https://github.com/deepseek-ai/DeepSeek-V3) for more information, or see the [launch announcement](https://api-docs.deepseek.com/news/news1226).

Source: https://www.sandbase.ai/models/deepseek/deepseek-chat
API reference: https://www.sandbase.ai/models/deepseek/deepseek-chat/docs

## Facts

- Provider: DeepSeek
- Type: Language model
- Model ID: `deepseek/deepseek-chat`
- Price: $0.32 per 1M input tokens, $0.89 per 1M output tokens
- Context window: 163.8K tokens, up to 16.4K output tokens
- Capabilities: chat, structured output, function calling
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Chat Completions API: `POST https://api.sandbase.ai/v1/chat/completions`

```bash
curl -X POST https://api.sandbase.ai/v1/chat/completions \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek/deepseek-chat",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 2048
}'
```

## FAQ

### How do I call DeepSeek V3 through SandBase?

Create a SandBase API key, then send requests with the model ID "deepseek/deepseek-chat" to Chat Completions API (/v1/chat/completions) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### How much does DeepSeek V3 cost?

$0.32 per 1M input tokens and $0.89 per 1M output tokens, billed per request from your SandBase balance. Discounts, when available, are shown in the pricing on this page.

### What is the context window of DeepSeek V3?

163.8K tokens of context, with up to 16.4K output tokens per response.

### Which features does DeepSeek V3 support?

DeepSeek V3 supports function calling, structured output. See Specifications above for the full list.

### Do I need a separate DeepSeek account?

No. One SandBase API key and balance gives you access to DeepSeek V3 and the other models in the catalog; you do not need to sign up with DeepSeek separately.
