Skip to content

Endpoint map ​

So sánh thao tác phổ biến.

Tích hợp public (khuyến nghị): gọi thẳng Gommo — Gommo public API.
Dev tùy chọn: {gateway} = Gommo Developer local (vd. http://localhost:3001).

Media & jobs ​

Thao tácMode A (Direct)Mode B (REST)Mode C (Proxy)
List modelsPOST https://v2.api.gommo.net/ai/models?type={type}GET {gateway}/gateway/models?type={type}POST {gateway}/v2/ai/models?type={type}
Create 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 types: image, video, tts, music, avatar-lipsync, image-upscale, remove-bg, …

Poll media: image | video | music

Body Mode B (JSON):

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

Mode A/C: form domain, project_id, prompt, ratio, …

Upload ​

Thao tácMode AMode BMode C
ImagePOST v2…/ai/upload/imagePOST {gateway}/gateway/upload/imagePOST {gateway}/v2/ai/upload/image
VideoPOST v2…/ai/upload/videoPOST {gateway}/gateway/upload/videoPOST {gateway}/v2/ai/upload/video

Chat ​

Thao tácMode AMode BMode C
ChatPOST api…/api/v2/chatPOST {gateway}/gateway/chatPOST {gateway}/api/v2/chat
StreamSSE upstreamGateway pipeProxy pipe
ModelsPOST api…/api/v2/chat action=modelsGET {gateway}/gateway/chat-modelsPOST api…/api/v2/chat
SessionsPOST api…/api/v2/ai-chat-sessionsPOST {gateway}/gateway/chat-sessionsPOST api…/api/v2/ai-chat-sessions

Audio ​

Thao tácMode 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/listsqua platform paths

Library (album & danh sách) ​

Thao tácMode AMode BMode C
Album ảnhPOST v2…/ai/library/album-imagesPOST {gateway}/gateway/library/album-imagesPOST {gateway}/v2/ai/library/album-images
Album videoPOST v2…/ai/library/album-videosPOST {gateway}/gateway/library/album-videosPOST {gateway}/v2/ai/library/album-videos
Danh sách music / audio / image / videoPOST v2…/ai/library/{musics|audios|images|videos}POST {gateway}/gateway/library/{resource}POST {gateway}/v2/ai/library/{resource}

Mode B (JSON): projectId, limit, order_by, sort_by, tùy chọn device_id / device_name / device_info. Gateway điền domain và access_token upstream từ Bearer.

Explore cộng đồng ​

Thao tácMode AMode BMode C
Video công khaiPOST api…/api/apps/go-mmo/ai/public-videosPOST {gateway}/gateway/explore/public-videosPOST {gateway}/api/apps/go-mmo/ai/public-videos
Ảnh công khaiPOST api…/api/apps/go-mmo/ai/imagesPOST {gateway}/gateway/explore/imagesPOST {gateway}/api/apps/go-mmo/ai/images

Mode B (JSON): video — type, publicPrompt, language, tùy chọn model; ảnh — projectId, afterId, feedType (upstream feed_type), tùy chọn search, category, model, type, language. Bearer tùy chọn (browse công khai).

Bảng tin home (newfeeds) ​

Thao tácMode 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, tùy chọn privacy. Bearer bắt buộc.

Auth ​

Thao tácMode AMode B/C
LoginPOST api…/api/apps/go-mmo/auth/loginPOST {gateway}/api/apps/go-mmo/auth/login hoặc POST {gateway}/gateway/auth/login (JSON)
Đăng kýMerchant POST …/auth/register (chỉ server)POST {gateway}/gateway/auth/register (JSON; env merchant trên server)
Đổi mật khẩuPOST api…/api/apps/go-mmo/auth/change-passwordPOST {gateway}/gateway/auth/change-password only (JSON + Bearer)
Chuyển creditPOST api…/users/sendBalancesPOST {gateway}/gateway/credits/transfer only (JSON + Bearer)
Lịch sử giao dịchPOST api…/users/paymentsHistoryPOST {gateway}/gateway/credits/transactions only (JSON + Bearer)
Thiết bị đăng nhậpPOST api…/api/v2/devicesPOST {gateway}/gateway/devices only (JSON + Bearer)
Ticket hỗ trợPOST api…/support/*POST {gateway}/gateway/support/tickets (+ /create, /detail, /reply)
Chương trình đối tácPOST api…/users/partner_programPOST {gateway}/gateway/partner-program
Creator RewardsPOST api…/users/creator_rewardsPOST {gateway}/gateway/creator-rewards
ProfilePOST api…/…/ai/mePOST {gateway}/ai/me hoặc proxy POST {gateway}/api/apps/go-mmo/ai/me

Mode A: gọi trực tiếp api.gommo.net (login, đổi mật khẩu, chuyển credit, ledger paymentsHistory, 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. Chi tiết: Đăng ký · Đổi mật khẩu · Chuyển credit · Lịch sử giao dịch · Thiết bị đăng nhập · Ticket hỗ trợ · Chương trình đối tác · Creator Rewards.

Field domain ​

ModeAi gửi domain
AClient mọi form
BTùy chọn — gateway dùng env
CClient (bắt buộc)

Poll mặc định (wait: true) ​

Interval3500 ms
Max80 (~4.7 phút)
WebhookKhông

Home app shell ​

Thao tácMode 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
Media dự ánfiles-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
Tin tức & cập nhậtPOST 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/*
Partner programPOST 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; tùy chọn current_device_id, language, device_id / device_name / device_info. Bearer bắt buộc. Rename/disable dùng device_id (UUID). Xem Thiết bị đăng nhập. Support: ticket_id_base (SUP-…) — Ticket hỗ trợ. Partner: action_type status | apply — Chương trình đối tác. Creator Rewards: action_type status | pool | apply — Creator Rewards. Notifications: tùy chọn limit, page trên /gateway/notifications.

Chi tiết media (info) ​

Thao tácMode 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 tùy chọn: projectId. Path {id} là job id / id_base. Bearer bắt buộc.

API chi tiết ​

→ Media · Upload · Chat · AI projects

Tiếp theo ​

→ Integration modes · Choosing a mode