Skip to content

แผนที่ endpoint ​

ตารางเปรียบเทียบสำหรับงานทั่วไป

การ integrate สาธารณะ (แนะนำ): เรียก Gommo โดยตรง — ดู Gommo public API
ทางเลือก dev: แทน {gateway} ด้วย base URL ของ Gommo Developer (เช่น http://localhost:3001)

Media & jobs ​

งานMode A (Direct)Mode B (REST)Mode C (Proxy)
รายการโมเดลPOST https://v2.api.gommo.net/ai/models?type={type}GET {gateway}/gateway/models?type={type}POST {gateway}/v2/ai/models?type={type}
สร้าง jobPOST https://v2.api.gommo.net/ai/jobs/{type}/{slug}POST {gateway}/gateway/jobs/{type}POST {gateway}/v2/ai/jobs/{type}/{slug}
Poll jobPOST https://v2.api.gommo.net/ai/jobs/{id}?media={media}GET {gateway}/gateway/jobs/{id}?media={media}POST {gateway}/v2/ai/jobs/{id}?media={media}

ประเภท job: image, video, tts, music, avatar-lipsync, image-upscale, remove-bg, video-upscale, video-vfx, video-subtitle, video-cut

Poll media: image | video | music

Body สร้าง job Mode B (JSON):

json
{
  "modelSlug": "flux-dev",
  "wait": false,
  "fields": { "prompt": "…", "ratio": "16:9" }
}

Body สร้าง job Mode A/C (form): domain, project_id, prompt, ratio, …

Upload ​

งานMode AMode BMode C
อัปโหลดภาพPOST v2…/ai/upload/imagePOST {gateway}/gateway/upload/imagePOST {gateway}/v2/ai/upload/image
อัปโหลดวิดีโอPOST v2…/ai/upload/videoPOST {gateway}/gateway/upload/videoPOST {gateway}/v2/ai/upload/video

Chat ​

งานMode AMode BMode C
Chat (JSON)POST api…/api/v2/chatPOST {gateway}/gateway/chatPOST {gateway}/api/v2/chat
Chat (stream)เหมือนกัน + SSEเหมือนกัน — gateway pipe streamเหมือนกัน — proxy pipe stream
Chat modelsPOST api…/api/v2/chat action=modelsGET {gateway}/gateway/chat-modelsPOST api…/api/v2/chat
Chat sessionsPOST api…/api/v2/ai-chat-sessionsPOST {gateway}/gateway/chat-sessionsPOST api…/api/v2/ai-chat-sessions
OpenAI shim—POST {gateway}/v1/chat/completions—

Stream ทำงานเมื่อ URL มี /chat หรือ Content-Type: text/event-stream

OpenAI shim รับ messages[] มาตรฐาน + stream: true (optional) รูปแบบ model: model::server (เช่น gpt-5.5::cheap) หรือ default server จาก env

→ OpenAI-compatible chat

Audio ​

งานMode AMode BMode C
VoicesPOST api…/ai/audioPOST {gateway}/gateway/audio/voicesPOST {gateway}/ai/audio
TTSPOST api…/ai/audioPOST {gateway}/gateway/audio/ttsPOST {gateway}/ai/audio
ListsGET api…/…GET {gateway}/gateway/audio/listsผ่าน platform paths

Library (รายการและอัลบั้ม) ​

งานMode AMode BMode C
อัลบั้มภาพPOST v2…/ai/library/album-imagesPOST {gateway}/gateway/library/album-imagesPOST {gateway}/v2/ai/library/album-images
อัลบั้มวิดีโอPOST v2…/ai/library/album-videosPOST {gateway}/gateway/library/album-videosPOST {gateway}/v2/ai/library/album-videos
รายการ music / audio / image / videoPOST v2…/ai/library/{musics|audios|images|videos}POST {gateway}/gateway/library/{resource}POST {gateway}/v2/ai/library/{resource}

Body Mode B (JSON): projectId, limit, order_by, sort_by, และ device_id / device_name / device_info (optional) — gateway เติม domain และ access_token จาก Bearer

Explore ชุมชน ​

งานMode AMode BMode C
วิดีโอสาธารณะPOST api…/api/apps/go-mmo/ai/public-videosPOST {gateway}/gateway/explore/public-videosPOST {gateway}/api/apps/go-mmo/ai/public-videos
รูปสาธารณะPOST api…/api/apps/go-mmo/ai/imagesPOST {gateway}/gateway/explore/imagesPOST {gateway}/api/apps/go-mmo/ai/images

Mode B (JSON): วิดีโอ — type, publicPrompt, language, model (optional); รูป — projectId, afterId, feedType (upstream feed_type), search, category, model, type, language (optional) — Bearer ไม่บังคับเมื่อ browse สาธารณะ

ฟีดข่าว home (newfeeds) ​

งานMode AMode BMode C
NewfeedsPOST api…/ai/newfeedsPOST {gateway}/gateway/newfeedsPOST {gateway}/ai/newfeeds

Mode B JSON: preset (public_timeline | my_feed, alias public / mine), limit, projectId, afterVideoId, afterImageId, language, privacy (optional) — Bearer จำเป็น

Auth (ผ่าน platform host เสมอ) ​

งานMode AMode B/C
LoginPOST api…/api/apps/go-mmo/auth/loginPOST {gateway}/api/apps/go-mmo/auth/login หรือ POST {gateway}/gateway/auth/login (JSON)
สมัครMerchant POST …/auth/register (server only)POST {gateway}/gateway/auth/register (JSON; merchant env บนเซิร์ฟเวอร์)
เปลี่ยนรหัสผ่านPOST api…/api/apps/go-mmo/auth/change-passwordPOST {gateway}/gateway/auth/change-password only (JSON + Bearer)
โอน creditPOST api…/users/sendBalancesPOST {gateway}/gateway/credits/transfer only (JSON + Bearer)
ประวัติธุรกรรมPOST api…/users/paymentsHistoryPOST {gateway}/gateway/credits/transactions only (JSON + Bearer)
อุปกรณ์เซสชันPOST api…/api/v2/devicesPOST {gateway}/gateway/devices only (JSON + Bearer)
ตั๋วซัพพอร์ตPOST api…/support/*POST {gateway}/gateway/support/tickets (+ /create, /detail, /reply)
โปรแกรมพาร์ทเนอร์POST api…/users/partner_programPOST {gateway}/gateway/partner-program
Creator RewardsPOST api…/users/creator_rewardsPOST {gateway}/gateway/creator-rewards
ProfilePOST api…/api/apps/go-mmo/ai/mePOST {gateway}/ai/me หรือ proxy POST {gateway}/api/apps/go-mmo/ai/me

Mode A: เรียก api.gommo.net โดยตรง (login, เปลี่ยนรหัส, โอน credit, ledger, devices, support, partner, creator rewards, /ai/me) Mode B self-host: JSON typed login/register/change-password/transfer, /gateway/credits/transactions, /gateway/devices, /gateway/support/tickets, /gateway/partner-program, /gateway/creator-rewards ดู สมัครสมาชิก · เปลี่ยนรหัส · โอน credit · ประวัติธุรกรรม · อุปกรณ์เซสชัน · ตั๋วซัพพอร์ต · โปรแกรมพาร์ทเนอร์ · Creator Rewards

ฟิลด์ domain ​

โหมดใครส่ง domain
A DirectClient ในทุก form body
B RESTไม่บังคับ — gateway ใช้ GOMMO_API_DOMAIN
C ProxyClient ใน form (upstream บังคับ)

ค่าเริ่มต้น polling (Mode B wait: true) ​

การตั้งค่าค่า
Interval3500 ms
จำนวนครั้งสูงสุด80 (~4.7 นาที)
Webhookไม่มี — Gommo ไม่ push เมื่อเสร็จ

Home app shell ​

งานMode AMode BMode C
List projects (legacy)POST api…/ai/projectsPOST {gateway}/gateway/projectsPOST {gateway}/ai/projects
AI projects V2POST api…/api/v2/ai-projects … set_password, get + password, invite, member_kick, stats, activity_list, …POST {gateway}/gateway/ai-projects JSON { action, id_base?, password?, … }POST {gateway}/api/v2/ai-projects
Project mediafiles-manager list; /ai/audio get.list; ai_musics/getAll/gateway/files-manager, /gateway/project-media/audio, /gateway/project-media/musicPOST {gateway}/api/v2/files-manager
Credit poolsPOST api…/api/v2/credit-pools — list, ledger, create, deposit, delete, set_share_credit; scope_type, scope_id, pool_idPOST {gateway}/gateway/credit-pools JSONPOST {gateway}/api/v2/credit-pools
NotificationsPOST api…/ai/notificationsPOST {gateway}/gateway/notificationsPOST {gateway}/ai/notifications
News & updatesPOST api…/api/apps/go-mmo/news/getAllPOST {gateway}/gateway/newsPOST {gateway}/api/apps/go-mmo/news/getAll
Changelogs (recent updates)POST api…/api/apps/go-mmo/app/changelogsPOST {gateway}/gateway/changelogsPOST {gateway}/api/apps/go-mmo/app/changelogs
DevicesPOST api…/api/v2/devicesPOST {gateway}/gateway/devicesPOST {gateway}/api/v2/devices
SupportPOST api…/support/myTickets (+ create/detail/reply)POST {gateway}/gateway/support/tickets (+ subpaths)POST {gateway}/api/apps/go-mmo/support/*
โปรแกรมพาร์ทเนอร์POST api…/users/partner_programPOST {gateway}/gateway/partner-programPOST {gateway}/api/apps/go-mmo/users/partner_program
Creator RewardsPOST api…/users/creator_rewardsPOST {gateway}/gateway/creator-rewardsPOST {gateway}/api/apps/go-mmo/users/creator_rewards

Mode B JSON (devices): action register | list | rename | disable; ไม่บังคับ current_device_id, language, device_id / device_name / device_info — Bearer จำเป็น — rename/disable ใช้ device_id (UUID) ดู อุปกรณ์เซสชัน. Support: ticket_id_base (SUP-…) — ตั๋วซัพพอร์ต. Partner: action_type status | apply — โปรแกรมพาร์ทเนอร์. Creator Rewards: action_type status | pool | apply — Creator Rewards. Notifications: ไม่บังคับ limit, page ที่ /gateway/notifications

รายละเอียด media (info) ​

งานMode AMode BMode C
Image infoPOST api…/ai/info/image/{id}POST {gateway}/gateway/info/image/{id}POST {gateway}/ai/info/image/{id}
Video infoPOST api…/ai/info/video/{id}POST {gateway}/gateway/info/video/{id}POST {gateway}/ai/info/video/{id}
Music infoPOST api…/ai/info/music/{id}POST {gateway}/gateway/info/music/{id}POST {gateway}/ai/info/music/{id}

Mode B JSON (optional): projectId — path {id} คือ job id / id_base — Bearer จำเป็น

เอกสาร API ละเอียด ​

→ Media & jobs · Upload · Chat · AI projects

ขั้นตอนถัดไป ​

→ Integration modes · Choosing a mode