All endpoints are accessed through the current site domain (proxied). The domain in the examples below is generated dynamically by the page — no manual replacement needed.
echo exaiv.com;; *) echo https://exaiv.com;; esac)Auth: send an Authorization: Bearer YOUR_API_KEY header; for sub-sites also send x-site-id (credits are isolated per site)..
گفتگو کے لیے OpenAI Responses API استعمال کریں۔ Responses API زیادہ لچکدار ان پٹ کے ساتھ تازہ ترین OpenAI API فارمیٹ ہے۔
Bearer YOUR_API_KEY| پیرامیٹر | قسم | ضروری | تفصیل |
|---|---|---|---|
| model | string | ضروری | ماڈل کا نام، مثلاً deepseek-v4.1-flash, qwen3.8-max |
| input | string | ضروری | ان پٹ متن یا گفتگو کا مواد |
| max_tokens | integer | اختیاری | آؤٹ پٹ ٹوکنز کی زیادہ سے زیادہ تعداد |
| temperature | float | اختیاری | سیمپلنگ ٹمپریچر، بے ترتیبی کو کنٹرول کرتا ہے (0-2) |
| stream | boolean | اختیاری | سٹریمنگ رسپانس فعال کریں، SSE کے لیے true سیٹ کریں |
| پیرامیٹر | قسم | تفصیل |
|---|---|---|
| id | string | منفرد رسپانس شناخت کنندہ |
| model | string | استعمال شدہ اصل ماڈل |
| output | string | تیار کردہ متن آؤٹ پٹ |
| usage | object | ٹوکن استعمال کے اعداد و شمار بشمول prompt_tokens, completion_tokens, total_tokens |
curl echo exaiv.com;; *) echo https://exaiv.com;; esac)/api/ai/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "deepseek-v4.1-flash",
"input": "Hello, who are you?",
"max_tokens": 1000
}'