Gommo public API
ใช้ URL เหล่านี้เมื่อ integrate ตรงกับ Gommo (ตาม Gommo public API) Auth: Authorization: Bearer <access_token> บน HTTPS Form body มี domain (โดเมนแอป เช่น <registration-domain>)
โฮสต์
| โฮสต์ | ใช้สำหรับ |
|---|---|
https://v2.api.gommo.net | โมเดล สร้าง/poll งาน อัปโหลดรูป/วิดีโอ คลัง album |
https://api.gommo.net | Login, /th/ai/me, info งาน รายการคลัง แชท audio แพลตฟอร์ม |
แท็บ Endpoints ใน playground แสดง URL ครบต่อ operation (v2 vs auth)
มีเดีย & งาน (v2)
| การดำเนินการ | Method | URL |
|---|---|---|
| รายการโมเดล | GET หรือ POST | https://v2.api.gommo.net/ai/models?type={type} |
| สร้างงาน | POST | https://v2.api.gommo.net/ai/jobs/{type}/{model_id} |
| Poll งาน | POST | https://v2.api.gommo.net/ai/jobs/{id_base}?media=image|video|music |
| อัปโหลดรูป | POST | https://v2.api.gommo.net/ai/upload/image |
| อัปโหลดวิดีโอ | POST | https://v2.api.gommo.net/ai/upload/video |
สร้าง/poll ใช้ application/x-www-form-urlencoded (ไม่ใช่ JSON ของ gateway) โหลดโมเดลก่อนเสมอ — ห้ามเดา ratio, mode, resolution, หรือ duration
Poll: ช่วง 3.5s สูงสุด 80 ครั้ง (~5 นาที) ไม่มี webhook
คลัง & album
| การดำเนินการ | โฮสต์ | Path |
|---|---|---|
| Album รูป | v2 | POST /ai/library/album-images |
| Album วิดีโอ | v2 | POST /ai/library/album-videos |
| คลังเพลง | v2 | POST /ai/library/musics |
| คลังเสียง | v2 | POST /ai/library/audios |
Body album (ทั่วไป): domain, project_id, limit, order_by, sort_by (+ access_token ใน form หรือ Bearer header)
Explore ชุมชน (platform app บน auth host)
ฟีดสาธารณะบนเว็บ dealer (แท็บ Explore) — application/x-www-form-urlencoded. Bearer ไม่บังคับเมื่อดูอย่างเดียว
| การดำเนินการ | URL |
|---|---|
| วิดีโอชุมชน | POST https://api.gommo.net/api/apps/go-mmo/ai/public-videos |
| รูปชุมชน | POST https://api.gommo.net/api/apps/go-mmo/ai/images |
วิดีโอ: domain, type=public_home, public_prompt, ทางเลือก language, model, access_token
รูป: domain, project_id=default, feed_type=suggested, ทางเลือก search, category, after_id, language, model, access_token
ฟีด home (newfeeds)
POST https://api.gommo.net/ai/newfeeds — ต้อง login
| Preset | Form |
|---|---|
| ฟีดสาธารณะ | privacy=PUBLIC, limit=30, after_video_id (ทางเลือก) |
| ของฉัน | privacy= ว่าง, after_video_id + after_image_id |
→ Cookbook: Home feed
Projects & การแจ้งเตือน (auth)
| การดำเนินการ | URL |
|---|---|
| รายการ AI projects (legacy) | POST https://api.gommo.net/ai/projects |
| AI projects V2 (CRUD) | POST https://api.gommo.net/api/v2/ai-projects |
| Inbox แจ้งเตือน | POST https://api.gommo.net/ai/notifications |
| News & updates | POST https://api.gommo.net/api/apps/go-mmo/news/getAll |
| Changelogs (recent updates) | POST https://api.gommo.net/api/apps/go-mmo/app/changelogs |
| Devices | POST https://api.gommo.net/api/v2/devices |
| Support tickets | POST https://api.gommo.net/api/apps/go-mmo/support/myTickets (+ create, detail, reply) |
Projects (legacy): domain, access_token — { "data": [ … ] } pass-through
AI projects V2: form action=list, create, get, update, delete, set_password, get + optional password when protected, member_list, member_kick, invite, invite_revoke, set_budget, stats, activity_list; invite ใช้ identifier, role, scopes; invite_revoke ใช้ invite_id; stats ใช้ id_base, period; activity_list ใช้ id_base, limit, offset; Credit pools (แท็บ Ngân sách): POST …/api/v2/credit-pools — list, ledger, create, deposit (pool_id, amount), delete, set_share_credit; deposit: wallet reserve 100k
Project media (modal tab): files-manager list (project, media_type); /ai/audio action_type=get.list + project_id; ai_musics/getAll + project_id.
→ รายละเอียด: AI projects
Notifications: domain, access_token, ทางเลือก limit, page — pass-through envelope (อาจมี array data)
Devices: domain, access_token, ทางเลือก action, device_id / device_name / device_info — pass-through (เรียกตอน boot แอป home) หลาย feed รับ field device ชุดเดียวกันทุก request
Support: domain, access_token — list POST …/support/myTickets; create …/support/create; detail/reply ใช้ ticket_id_base (SUP-…) ทางเลือก language, device_*
โปรแกรมพาร์ทเนอร์: domain, access_token, action_type status | apply — POST …/users/partner_program. Apply ต้องมี field จ่ายเงิน + accept_rules=1. ใช้ application?.status มากกว่า can_join เมื่อรอตรวจ
Creator Rewards: domain, access_token, action_type status | pool | apply — POST …/users/creator_rewards. Apply ใช้ payout_pref (credit | cash) + accept_rules=1. ใช้ program.application?.status มากกว่า can_join เมื่อรอตรวจ
Changelogs: modal Recent updates — POST …/app/changelogs ไม่ใช่ news/getAll → Changelogs
เฉพาะ dealer (ไม่ใช่ home Tier A)
community-chat, get_rooms, mini-apps, site-config — ไม่จำเป็นสำหรับฟีด home ของ integrator news/getAll และ app/changelogs เป็นทางเลือก ดู Cookbook home feed
สถานะงาน (auth)
| การดำเนินการ | URL |
|---|---|
| ข้อมูลรูป | POST https://api.gommo.net/ai/info/image/{id_base} |
| ข้อมูลวิดีโอ | POST https://api.gommo.net/ai/info/video/{id} |
| ข้อมูลเพลง | POST https://api.gommo.net/ai/info/music/{id_base} |
Auth & โปรไฟล์ (auth)
| การดำเนินการ | URL |
|---|---|
| Login | POST https://api.gommo.net/api/apps/go-mmo/auth/login |
| สมัคร (merchant, server) | POST https://api.gommo.net/api/apps/go-mmo/auth/register |
| เปลี่ยนรหัสผ่าน | POST https://api.gommo.net/api/apps/go-mmo/auth/change-password |
| โอน credit | POST https://api.gommo.net/api/apps/go-mmo/users/sendBalances |
| ประวัติธุรกรรม | POST https://api.gommo.net/api/apps/go-mmo/users/paymentsHistory |
| Me / credits | POST https://api.gommo.net/ai/me |
→ สมัครสมาชิก · เปลี่ยนรหัสผ่าน · โอน credit · ประวัติธุรกรรม · อุปกรณ์เซสชัน · ตั๋วซัพพอร์ต · โปรแกรมพาร์ทเนอร์ · Creator Rewards
แชท & เสียง (auth)
| การดำเนินการ | URL |
|---|---|
| แชท / stream / models | POST https://api.gommo.net/api/v2/chat |
| Chat sessions (sync) | POST https://api.gommo.net/api/v2/ai-chat-sessions |
→ Chat reference | Voices / TTS | POST https://api.gommo.net/ai/audio |
Gommo Developer (dev ทางเลือก)
Self-host (operator เท่านั้น)
Repo สามารถ expose REST/proxy ทางเลือกเมื่อ deploy — ดู Deploy → Self-host ขั้นสูง ไม่ใช่เส้นทางเชื่อมต่อค่าเริ่มต้น
OpenAPI
path สาธารณะอยู่ใน openapi.yaml ภายใต้ tag Gommo V2 และ Gommo Platform path self-host (billing, /gateway/*, admin) แยก tag — ดู Deploy → Self-host ขั้นสูง
