ต่อ n8n / ระบบอัตโนมัติด้วย เครดิตก้อนเดียวกับหน้าเว็บ — ไม่ต้องสมัคร kie.ai ไม่ต้องเติมเงินแยก เรียกทุกเครื่องมือ AI ผ่าน endpoint เดียว
aiwork_live_…) — โชว์ครั้งเดียว คัดลอกเก็บทันทีAuthorization: Bearer aiwork_live_xxxxxPOST https://aiwork.furredco.com/api/v1/run
Content-Type: application/json
{
"action": "topaz_4x",
"input": { "image_url": "https://…/photo.jpg" },
"idempotency_key": "uuid-กันยิงซ้ำ"
}| action | ทำอะไร | เครดิต | input |
|---|---|---|---|
| caption | เจนแคปชั่นขายของ | 1 | brief (จำเป็น), platforms[], count, tone, audience |
| content_factory | แคปชั่น + โปสเตอร์ | 12 | page_desc + audience (จำเป็น), details, tone |
| topaz_2x | อัปภาพคม 2x | 6 | image_url (https) |
| topaz_4x | อัปภาพคม 4x | 12 | image_url |
| topaz_8x | อัปภาพคม 8x | 25 | image_url — ด้านยาว ≤ 2,500px |
caption ตอบผลทันที (status: "success") · งานภาพเป็น async — ตอบ status: "processing" + task_id แล้ว poll ต่อ:
GET https://aiwork.furredco.com/api/v1/task?task_id=xxx
Authorization: Bearer aiwork_live_xxxxx
→ { "ok": true, "status": "success",
"result": { "url": "https://…" }, "credits_left": 172 }status processing → poll ต่อทุก 3–5 วิ · failed → เครดิตคืนอัตโนมัติ
ใช้ key เดิมกับเว็บได้เลย ระบบ hold เครดิตจากเวลาประเมิน แล้วปรับตามความยาวจริงหลังถอดเสียง สำเร็จ ล้มเหลว และ retry ทั้งหมดใช้ job เดิม ไม่หักซ้ำ
# 1) ขอ signed upload URL (durationEstimateSec ไม่บังคับสำหรับ API key)
POST /api/meeting/upload-url
Authorization: Bearer aiwork_live_xxxxx
Content-Type: application/json
{ "name": "meeting.m4a", "type": "audio/mp4", "size": 5242880, "mode": "paid" }
→ { "path": "user-id/uuid", "uploadUrl": "https://…", "durationEstimateSec": 1500 }
# 2) PUT binary ไป uploadUrl แล้วสร้าง job
POST /api/meeting/jobs
{ "storagePath": "user-id/uuid", "filename": "meeting.m4a",
"mime": "audio/mp4", "size": 5242880, "mode": "paid" }
# 3) poll
GET /api/meeting/jobs/{jobId}durationEstimateSec ระบบประเมินแบบเผื่อสูงจากขนาดไฟล์ แล้วคืน/ปรับเครดิตจากเวลาจริงdone, failed, expired หรือ needs_credit; สถานะหลังสุดเติมเครดิตแล้วเรียก POST /api/meeting/jobs/{jobId}/resumeidempotency_key เดิม = ไม่หักซ้ำ (ได้งานเดิมกลับมา) — n8n retry ปลอดภัยHTTP Request node เดียว:
POST · URL https://aiwork.furredco.com/api/v1/runAuthorization = Bearer aiwork_live_xxxxx{ "action": "caption", "input": { "brief": "{{ $json.product }}" }, "idempotency_key": "{{ $execution.id }}" }งานภาพ: ต่อด้วย Wait 5s → HTTP GET /api/v1/task วน loop จน status != "processing"
workflow สรุปประชุมแบบเต็ม (Google Drive → upload → create job → poll → LINE + email) อยู่ในแพ็ค สรุปประชุมอัตโนมัติ