อ่านแคตตาล็อก
ฟิลด์งานมีเดีย (ratio, mode, resolution, duration, model id) ต้องมาจาก POST https://v2.api.gommo.net/ai/models?type=… อ่าน JSON ก่อน create + poll
| ขั้น | Doc |
|---|---|
| List + เลือกฟิลด์ | หน้านี้ |
| พารามิเตอร์ | Parameters |
| HTTP create/poll | Media & jobs · คู่มือเชื่อมต่อ |
| ดู live | Models catalog |
ไม่เดา enum
คัดลอกจาก docs หรือโมเดลอื่นจะ fail — ใช้ response list ของโมเดลนั้น
เรียกแคตตาล็อก
http
POST https://v2.api.gommo.net/ai/models?type=image
Authorization: Bearer {access_token}
Content-Type: application/x-www-form-urlencoded
type=image&domain=%REGISTRATION_DOMAIN%type ตาม job types domain ลงทะเบียน — การยืนยันตัวตน
รูปแบบ response (ทั่วไป)
json
{
"success": true,
"data": [
{
"model": "example_slug",
"ratios": [{ "value": "1:1", "label": "Square" }],
"modes": [{ "value": "low", "label": "Low" }]
}
]
}เลือก model id (path create)
POST …/ai/jobs/{type}/{model_id} — อาจเป็น model, slug, id_base
อ่าน ratios / modes / resolutions / duration
ส่ง value จาก object ใน array ไม่ใช่ label — รายละเอียด Parameters
TypeScript: SDK เส้นทาง 5 นาที
หลังได้ slug + ฟิลด์
- Create — Media
- Poll — วงจร request
- ข้อผิดพลาด — ข้อผิดพลาดที่พบบ่อย
ถัดไป
→ Parameters · Job types · Quickstart
