DeepSeek
first_party
Getting credentials
api-key
api_key via header (header Authorization: Bearer)
Environment: DEEPSEEK_API_KEY
Create a key at platform.deepseek.com. Works in Claude Code, Copilot, OpenCode via the Anthropic-compatible endpoint.
Endpoints
| ID | URL | Protocol | Auth |
|---|---|---|---|
| chat-completions | https://api.deepseek.com/chat/completions | openai-chat | any |
| anthropic | https://api.deepseek.com/anthropic | anthropic-messages | any |
API surfaces
textstreaming
Quirks
- Root path /chat/completions works without /v1. Stateless OpenAI Responses API also supported. In tool-call flows, prior-turn reasoning_content must be passed back or you get a 400; without tools it is ignored. When thinking is on, temperature/top_p/presence_penalty/frequency_penalty are silently ignored. FIM only in non-thinking mode. The old deepseek-chat / deepseek-reasoner split is gone — same model names serve both modes via the thinking toggle. (docs)
Models offered
| Model | Wire ID | Endpoint | Status | Reasoning |
|---|---|---|---|---|
| deepseek/deepseek-v4-flash | deepseek-v4-flash | anthropic | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |
| deepseek/deepseek-v4-flash | deepseek-v4-flash | chat-completions | ga | effort · default on · returns reasoning_content · round-trips reasoning_content |
| deepseek/deepseek-v4-pro | deepseek-v4-pro | anthropic | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |
| deepseek/deepseek-v4-pro | deepseek-v4-pro | chat-completions | ga | effort · default on · returns reasoning_content · round-trips reasoning_content |