DeepSeek AI
DeepSeek AI model supports powerful chat dialogue capabilities.
This is only a basic call example. See the full docs for more parameters and advanced usage.
View DocsDeepSeek API
Integrate conversation, text analysis, and coding assistance into your application.
Text and code
Handle conversation, text analysis, and coding assistance tasks.
Standard message format
Pass questions in messages and read replies from choices.
Usage-based billing
Select a model from the current catalog and view input and output prices.
Start with your first request
Get a Key, copy the request, and view the corresponding response JSON below.
export ACEDATACLOUD_API_KEY="YOUR_API_KEY"
curl --request POST "https://api.acedata.cloud/v1/chat/completions" \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "deepseek-flash",
"messages": [
{
"role": "user",
"content": "Explain what an API is in one sentence."
}
]
}'The following is an excerpt of key fields from the existing API response. The task identifier, usage, and generated content depend on the values returned by your request.
{
"id": "chatcmpl-050bf20a-ebcd-498a-bf6e-63ee0738013b",
"object": "chat.completion",
"created": 1764846609,
"usage": {
"prompt_tokens": 8,
"completion_tokens": 11,
"total_tokens": 19
},
"choices": [
{
"index": 0,
"message": {
"content": "Hello! 😊 How can I help you today?",
"role": "assistant"
},
"refs": null,
"logprobs": null,
"finish_reason": "stop",
"service_tier": null
}
]
}Read the response
Read the reply from choices[0].message.content. When more context is needed, retain the relevant history in messages.
Select a model from the current public catalog. Usage is measured by input and output tokens.
API Calls and Pricing
Refer to the current API and pricing pages for request parameters, available models, and pricing. If you encounter authentication, balance, or rate limit errors, check the Key's associated application, validity period, and usage restrictions. Retain the trace_id when troubleshooting requests.
Integrate the DeepSeek API into your application
Continue to the complete guide for parameters, result fields, and error handling.
DeepSeek Chat Completion API, compatible with the official API format.
Packages
We offer various credit packages. The more you purchase, the higher the discount you receive.
up to46% OFF