DeepSeek-R1 OpenAI-Compatible API

⚠️ Important Notice

For private use, please duplicate this space:
1. Click your profile picture in the top-right
2. Select "Duplicate Space"
3. Set visibility to Private

API Documentation

API Endpoints

Chat Completion

POST /v1/chat/completions

Parameters:

Example Request

curl -X POST "gefiwek187-deepseek-r1-1-5b-api.hf.space/v1/chat/completions" \
-H "Content-Type: application/json" \
-d '{
  "messages": [{"role": "user", "content": "Explain quantum computing"}],
  "max_tokens": 150
}'