Use cases & prompt MCP
Copy vào Cursor, Claude Desktop hoặc IDE có Gommo MCP. Nói "dùng Gommo MCP" nếu có nhiều server.
Cùng lộ trình Quickstart (một job ảnh)
REST: Quickstart → Vòng đời request. MCP (token /vi/app/token/):
| Bước REST | Tool MCP |
|---|---|
| Credit / session | gommo_credit_balance |
POST /ai/models?type=image | gommo_models_list — không đoán ratio/mode |
| Create job | gommo_image_create |
| Poll | gommo_task_stream hoặc gommo_image_status (id_base) |
Gommo MCP giống Quickstart:
1. gommo_credit_balance
2. gommo_models_list type=image
3. gommo_image_create + prompt + field catalog
4. gommo_task_stream đến URL kết quảĐọc nhanh (không tốn credit)
| Mục tiêu | Prompt mẫu |
|---|---|
| Credit | Dùng Gommo MCP: kiểm tra số dư credit. |
| Hồ sơ | Show account info qua Gommo MCP. |
| Model ảnh | List image models với ratio và mode. |
| Model video | List video models và duration hợp lệ. |
| Job gần đây | gommo_tasks_list — job ảnh/video gần nhất. |
Tạo ảnh (tốn credit)
Dùng Gommo MCP:
1. Kiểm tra credit
2. List image models
3. Tạo ảnh model [từ list], prompt "[mô tả]", ratio từ catalog
4. gommo_task_stream chờ URL kết quảTạo video (tốn credit)
Gommo MCP: list video models → create video với ratio/duration từ catalog → task_stream chờ xongPoll thủ công
gommo_image_status id_base
[id_base]
Hoặc:
gommo_tasks_list type=all limit=20
Thông báo khi xong
Khi video xong, gommo_notify_send title "Xong" kèm URL output.
Gửi inbox + push/Telegram (nếu đã liên kết tài khoản Gommo). Agent không tự gọi — bạn phải yêu cầu.
Full tour
Gommo MCP full tour:
1. Account + credit
2. List image và video models
3. Tạo 1 ảnh test nhỏ
4. task_stream chờ URL
5. tasks_list xem lịch sử
6. (Tùy chọn) notify_send "Hoàn tất"Quy tắc nhắc agent
gommo_models_listtrước create- Không đoán ratio/mode/duration
- Poll bằng
id_base, khôngtask_id gommo_credit_balancetrước create
Workflow
credit → models_list → create → task_stream → (notify) → tasks_list