Skip to content

Cookbook (công thức tích hợp) ​

Các công thức từng bước cho Gommo public API (v2.api.gommo.net + api.gommo.net).

Operator

Self-host JSON/proxy → Deploy → Self-host nâng cao. Recipe bên dưới dùng Gommo public API.

Thử trên trình duyệt trước

Playground — tab Endpoints hiện URL public; Try/Send có thể qua dev proxy khi chạy npm run docs:stack.

Chuẩn bị (mọi recipe) ​

MụcGiá trị
Public APIhttps://v2.api.gommo.net (jobs) · https://api.gommo.net (auth/chat)
TokenGommo user access_token — Authentication
CatalogKhông đoán ratio / mode / resolution / duration — Models
powershell
$env:TOKEN = "<access_token>"
$h = @{ Authorization = "Bearer $env:TOKEN"; 'Content-Type' = 'application/x-www-form-urlencoded' }

Recipes ​

Bắt đầu ​

RecipeMục tiêu
Image job đầu tiênLogin → models → image + client poll
Job async + poll loopwait: false → poll thủ công / loop

Media ​

RecipeMục tiêu
Video hoặc music jobCùng pattern, khác type
Tool jobs (upscale, remove-bg)Upload → upscale / xóa nền
Upload ảnhMultipart upload → URL công khai

Platform ​

RecipeMục tiêu
App bảng tin homeLogin → projects → newfeeds → explore / thông báo
Chat + streamAgent chat và SSE
Audio TTSTìm voice → tổng hợp giọng
Agent HTTP flowVòng lặp tối thiểu cho agent / script

Billing (operator) ​

Recipe nạp credit gọi /vi/billing/* trên Gommo Developer self-host — không phải Gommo public API. Xem Portal & preview (operator):

RecipeMục tiêu
Nạp credit GommoGói credit → QR chuyển khoản → poll sync
PayOS nạp credit (legacy)Merchant PayOS + sendBalances

Tiếp theo ​