What is the DeepSeek API and how do I use it?
The DeepSeek API is DeepSeek’s API for its DeepSeek models: a key is created at platform.deepseek.com/api_keys, and the base URL is https://api.deepseek.com. The same models are also served through MartLLM’s OpenAI-compatible API at https://api.martllm.com/v1: on November 20, 2026, 11 DeepSeek models were taking requests there. DeepSeek V4 Flash cost $0.0208 per million input tokens and $0.044 per million output tokens. A request that fails is not billed. Credit is prepaid, from $5, with no subscription.
Prices as of November 20, 2026, 11:00 UTC. This page is rebuilt every hour.