Large Language Models, Reasoning and Code Generation
DeepSeek API
The DeepSeek API provides hosted access to DeepSeek language models for conversational generation, reasoning, coding and structured text processing. It offers an API interface compatible with common OpenAI-style chat completion workflows, allowing developers to integrate supported DeepSeek models into applications.
Key features
- Chat completion endpoints for language generation
- Reasoning capabilities on supported models
- Code generation and code explanation
- OpenAI-compatible request patterns
- Streaming text responses
- JSON output support on compatible models
- Tool calling where supported
- Context caching and separate cache-hit pricing where available
Pricing
- Usage-based pricing in USD, typically measured per 1 million input and output tokens. DeepSeek distinguishes cache-hit and cache-miss input pricing for supported models. Model-specific rates can change and may differ between model versions or service periods. For current model-specific rates, consult the official pricing page. Free API production usage should not be assumed.
Best use cases
- AI coding assistants
- Reasoning-based question answering
- Automated text processing
- Customer support chatbots
- Document summarization
- Developer tools and workflow automation
Authentication method
API key authentication through the HTTP Authorization: Bearer header. Developers configure the DeepSeek API base URL when using compatible third-party SDKs.
