5-minute quickstart
Connect a wallet, prepare credits, create a key and send your first request.
On this page
1. Prepare credits
Connect a wallet in the console and deposit MA or check your spendable credits. Admission checks MA plus spendable referral credits; a zero total blocks even free models.
2. Create an API key
Choose a resource group and model scope when creating an API key. You can edit model permissions later in the console; the resource group is fixed. Grant only the models your project needs.
3. Send a request
Export your key, then run the example. The model must belong to your key's group and be authorized; copy its API ID from the catalog. This example incurs normal usage charges.
export DECLOUD_API_KEY='dcld-sk-...'
curl https://macdecloud.com/v1/chat/completions \
-H "Authorization: Bearer $DECLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-chat",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'Check the result and continue
Read a normal text reply from choices[0].message.content; usage describes this call. Continue below to client setup, model selection or troubleshooting.