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 جدیدترین فرمت API OpenAI با ورودی انعطافپذیرتر است.
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
}'