Accessing the Deepsek Service
Once the service is running and has an EXTERNAL-IP, you can access the service using the EXTERNAL-IP and port 80.
List Models
To list available models, use the following curl command.
curl -X GET http://<EXTERNAL-IP>/v1/models
Create a Completion
To create a completion, use the following curl
command.
curl -X POST http://<EXTERNAL-IP>/v1/completions \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-ai/DeepSeek-R1-Distill-Llama-70B",
"messages": [
{
"role": "system",
"content": "You are helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
]
}'
Last updated