DeepSeek
communityChinese AI company offering powerful open-source language models with competitive pricing.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
https://api.deepseek.com/chat/completionsGenerate text with DeepSeek models
Parameters
modeldeepseek-chat|deepseek-reasoner (stringrequiredstreamstream response (booleanoptionalmessagesconversation array (arrayrequiredmax_tokensmax response tokens (integeroptionaltemperature0-2 (numberoptionalReturns
choices[] with message.content, usage with prompt_tokens, completion_tokens, prompt_cache_hit_tokensGET
https://api.deepseek.com/modelsList available models
Returns
data[] with id, object, owned_byGET
https://api.deepseek.com/user/balanceCheck API credit balance
Returns
balance_infos[] with currency, total_balance, granted_balance, topped_up_balance