> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DeepSeek

> DeepSeek offers its own frontier models (DeepSeek-V4-Pro, DeepSeek-V4-Flash) through an OpenAI-compatible API, with 1M-token context and thinking mode by default.

DeepSeek offers 4 models through Lava's AI Gateway, supporting Chat Completions. Authentication uses `Authorization: Bearer`. See the [DeepSeek API docs](https://api-docs.deepseek.com) for provider-specific parameters.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Quick Start

```typescript theme={null}
const response = await fetch('https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.deepseek.com%2Fv1%2Fchat%2Fcompletions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${forwardToken}`,
  },
  body: JSON.stringify({
    model: 'deepseek-v4-pro',
    messages: [{ role: "user", content: "Hello!" }],
  }),
});
```

## Chat Completions

**Target URL:** `https://api.deepseek.com/v1/chat/completions`

|                  |                                          |
| ---------------- | ---------------------------------------- |
| **Content Type** | `application/json`                       |
| **Streaming**    | Yes (set `stream: true` in request body) |

| Model             | Input / 1M tokens | Output / 1M tokens |
| ----------------- | ----------------- | ------------------ |
| deepseek-v4-pro   | \$0.435           | \$0.87             |
| deepseek-v4-flash | \$0.14            | \$0.28             |
| deepseek-chat     | \$0.14            | \$0.28             |
| deepseek-reasoner | \$0.14            | \$0.28             |

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
