Skip to content

OpenAPI ​

ดาวน์โหลดหรือเรียกดูสเปก OpenAPI 3.0 สำหรับ Gommo public API (v2.api.gommo.net + api.gommo.net) ไฟล์เดียวกันยังรวม endpoint dev ของ Gommo Developer สำหรับ operator (billing, admin, Mode B REST)

งานมีเดีย async (Tier A) ​

แท็ก Gommo V2: POST /ai/models → create job → poll POST /ai/jobs/{id} (3.5s สูงสุด 80) ไม่มี webhook งานบน public API — วงจร request · อ่านแคตตาล็อก

ไฟล์สเปก ​

DevProduction
http://localhost:5173/openapi.yamlhttps://docs.yourdomain.com/openapi.yaml

เซิร์ฟเวอร์เริ่มต้น (Swagger) ​

เซิร์ฟเวอร์คำอธิบาย
https://v2.api.gommo.netงาน โมเดล อัปโหลด คลัง album
https://api.gommo.netAuth แชท เสียง info รายการคลัง

แต่ละ operation ตั้ง servers เมื่อใช้ได้กับ host เดียว ดู Gommo public API สำหรับแผนที่ครบ

กลุ่ม path Gommo public ​

TagHostตัวอย่าง
Gommo V2v2.api.gommo.net/th/ai/models, /th/ai/jobs/{type}/{model}, /th/ai/library/album-images
Gommo Platformapi.gommo.net/th/ai/me, /th/api/v2/chat, /th/ai/info/image/{id}

Self-host only (operator) ​

tag เหล่านี้เมื่อรัน repo บนเครื่อง (localhost:3001) — ไม่ใช่ contract การเชื่อมต่อค่าเริ่มต้น:

TagServerตัวอย่าง
Gateway Devlocalhost:3001/gateway/jobs/{type}, /gateway/models
Billinglocalhost:3001/th/billing/payment/*
Adminlocalhost:3001/th/admin/*

→ Deploy → Self-host ขั้นสูง

Auth ในสเปก ​

Security schemeใช้กับ
bearerAuthpath สาธารณะ Gommo, /gateway/*, billing
adminKey (x-admin-key)/th/admin/*

อ้างอิงสำหรับมนุษย์ ​

→ Gommo public API · มีเดีย & งาน · การยืนยันตัวตน

ถัดไป ​

→ แผนที่ endpoint · โหมดการเชื่อมต่อ