چت
● checking
تصویرساز ChatGPT
این بخش دیگر از Pollinations استفاده نمیکند. درخواست داخل همان حساب ChatGPT وارد میشود و خروجی ساختهشده از مرورگر گرفته میشود.
Provider: ChatGPT Image • Web session
تصویر ساختهشده اینجا نمایش داده میشود
درخواست چت
–
درخواست تصویر
–
کاراکتر ورودی
–
کاراکتر خروجی
–
سهمیه/Reset خود ChatGPT
–
۱) ساخت Thread
POST https://chatai.khaneh360.com/api/threads
Authorization: Bearer YOUR_RELAY_SECRET
Content-Type: application/json
{}
Response:
{
"ok": true,
"thread": { "id": "..." }
}
۲) ارسال و ادامه همان Thread
POST https://chatai.khaneh360.com/api/chat
Authorization: Bearer YOUR_RELAY_SECRET
Content-Type: application/json
{
"threadId": "{{$json.threadId}}",
"model": "gpt-5.6-sol",
"prompt": "{{$json.prompt}}"
}
Response only after completion:
{
"ok": true,
"status": "completed",
"finished": true,
"threadId": "...",
"answer": "..."
}
n8n condition:
{{$json.finished === true && $json.status === 'completed'}}
۳) لیست / خواندن Threadها
GET https://chatai.khaneh360.com/api/threads
GET https://chatai.khaneh360.com/api/threads/THREAD_ID
Authorization: Bearer YOUR_RELAY_SECRET
۴) Streaming
POST https://chatai.khaneh360.com/api/chat/stream
Authorization: Bearer YOUR_RELAY_SECRET
Content-Type: application/json
{
"threadId": "...",
"prompt": "...",
"model": "gpt-5.6-sol"
}
NDJSON events:
{"type":"start"}
{"type":"delta","text":"..."}
{"type":"done","finished":true}
۵) تصویر با ChatGPT
POST https://chatai.khaneh360.com/api/image
Authorization: Bearer YOUR_RELAY_SECRET
Content-Type: application/json
{
"prompt": "{{$json.image_prompt}}",
"width": 1024,
"height": 1024
}
Response:
{
"ok": true,
"status": "completed",
"finished": true,
"provider": "chatgpt-web",
"imageUrl": "/generated/...png"
}