डेवलपर कॉर्नर

चैट पूर्णताएँ
API दस्तावेज़।

पहचाना API, नई संभावनाएँ।
अपने मौजूदा टूल को ओपन-वेट मॉडल से जोड़ें।

परिचित बातचीत।

POST/v1/chat/completions

मॉडल ID और messages की सूची भेजें। tools, reasoning, structured output और parameters का समर्थन मॉडल के अनुसार बदलता है। हर checkpoint में OpenAI की सभी सुविधाएँ मानकर न चलें।

{
  "model": "YOUR_MODEL_ID",
  "messages": [
    {"role": "system", "content": "Be a useful writing partner."},
    {"role": "user", "content": "Help me explore an idea."}
  ],
  "max_tokens": 512,
  "stream": false
}

response से उपयोग पढ़ें

सफल non-streaming प्रतिक्रिया upstream के compatible completion format का पालन करती है। बिलिंग मिलान के लिए रिपोर्ट किए गए token उपयोग और console रिकॉर्ड का उपयोग करें, अक्षर-गिनती का अनुमान नहीं।

curl https://unlimit.chat/v1/chat/completions \
  -H "Authorization: Bearer $UNLIMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "messages": [
      {"role": "user", "content": "What if we built something different?"}
    ],
    "stream": true
  }'