Menu

Your First API Call | DeepSeek API Docs
📰

Your First API Call | DeepSeek API Docs

api-docs.deepseek.com·@HashtagPLUS·7 months ago
#2Ekaxi5u
#invoke#deepseek#type#role#curl
Reading 0:00
15s threshold
curl https://api.deepseek.com/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \
-d '{
"model": "deepseek-v4-pro",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
"thinking": {"type": "enabled"},
"reasoning_effort": "high",
"stream": false
}'