Logo

deepseek-r1 (Text To Text)

POST/v1/chat/completions

Authentication

  1. Sign up for an account
  2. Navigate to the API Keys section in your dashboard
  3. Generate a new API key (sk-xxxxx)
  4. Copy and securely store your API key
curl -X POST "https://api.maxtoken.io/v1/chat/completions" 
  -H "x-api-key: YOUR_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
  "model": "deepseek-r1",
  "messages": [
    {
      "role": "user",
      "content": "Who are you?"
    }
  ],
  "stream": false
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
modelstring✅ Yesdeepseek-r1The model to use for the request. deepseek-r1
messagesarray✅ Yes-Array of message objects for the conversation * role:user,The role of the message. * role:assistant,The role of the message. * role:system,The role of the message.
contentarray✅ Yes-text
textstring✅ Yes-* type:text,The positive prompt for the generation.
streamboolean❌ NotrueWhether to stream the response