talira

DeepSeek API

DeepSeek's own API for its language models, compatible with OpenAI's and Anthropic's formats

SaaS

The DeepSeek API serves DeepSeek's language models from DeepSeek itself: deepseek-flash (now DeepSeek-V4.1-Flash, with vision) and deepseek-v4-pro, each with a 1M-token context, thinking and non-thinking modes, JSON output, tool calls and the Responses API. It accepts both OpenAI's and Anthropic's request formats, so the OpenAI and Anthropic SDKs and tools built on them (Claude Code, GitHub Copilot, OpenCode) can use it by changing the base URL. Billing is per million input and output tokens, with cached input much cheaper and off-peak hours at half price; web search, URL fetch, speech recognition and text-to-speech are offered as further APIs.

Problems it solves

  • a much cheaper LLM API for my app than GPT or Claude
  • point Claude Code or my OpenAI SDK code at a cheaper model
  • a long-context model API that takes a million tokens
  • run batch LLM jobs at off-peak prices

Features

  • deepseek-flash and deepseek-v4-pro models with 1M-token context
  • OpenAI- and Anthropic-compatible endpoints
  • thinking and non-thinking modes
  • JSON output and tool calls
  • context caching with cheaper cache hits
  • off-peak pricing at half the peak rate
  • search, fetch, speech recognition and text-to-speech APIs

Capabilities

Has an APIplan not known

Alternatives

The same job

These do what DeepSeek API does.

  1. Mistral AI API API access to Mistral's models for text, code, vision, documents and speech
  2. OpenAI API API platform for OpenAI's GPT models, embeddings, realtime voice and agents
  3. Ollama Start building with open models, locally or in the cloud
  4. Cerebras Inference Very fast LLM inference API running open-weight models on Cerebras wafer-scale chips
  5. Z.ai API API for Z.ai's GLM language, vision and image models
  6. Groq Fast inference API for open models on Groq's LPU chips

Compare DeepSeek API with the top 3