1 USD ≈ 27,000 credits · display only
Reference rate may change over time.
1 USD ≈ 27,000 credits · display only
Reference rate may change over time.
Advanced / operator docs
Linked from Deploy → Self-host (advanced). Most new apps use Mode A (Direct Gommo) — see Quickstart.
Pick the integration mode once per client surface.
Do you already have a Gommo frontend using /v2 and /api/v2 paths?
├─ YES → Mode C (change base URL to gateway only)
└─ NO
├─ Can you call Gommo upstream directly (recommended)?
│ ├─ YES → Mode A Direct (v2.api.gommo.net + api.gommo.net)
│ └─ NO
│ └─ Do you need billing, BYOK, or wait: true on a self-hosted server?
│ ├─ YES → Mode B REST (/gateway/*)
│ └─ NO → Mode A Direct (simplest — no gateway dependency)| Use case | Recommended | Why |
|---|---|---|
| New app or backend | Mode A | Public API, no gateway dependency |
| Mobile app (via your backend) | Mode A | Direct upstream; you control poll |
| Internal batch scripts | Mode A or Mode B | A = no infra; B = wait: true on self-host |
| Existing site-ai / Gommo FE client | Mode C | Minimal code change — swap base URL |
| Service needing gateway billing / BYOK | Mode B | Gommo billing, BYOK, JSON errors |
| Browser playground (dev) | Mode A or B/C | Playground shows public URLs; dev may proxy |
| Cross-origin browser + self-host | Mode B + GATEWAY_CORS_ORIGIN | REST + CORS on gateway |
| LLM agent / automation | Mode A or Gommo MCP | Direct HTTP or hosted MCP tools |
Pros: No gateway dependency; lowest latency; official Gommo hosts.
Cons: Two hostnames in client config; manual polling; domain in every form.
Pros: One path prefix; JSON; built-in poll; optional domain injection; billing/BYOK.
Cons: Requires self-hosted gateway; different API shape from raw Gommo.
Pros: Drop-in for existing Gommo clients; preserves upstream envelopes.
Cons: Client still sends domain; no wait: true; you implement polling like Mode A.
| From → To | Effort |
|---|---|
| A → B | Medium — point to gateway, adopt JSON bodies |
| C → B | Medium — rewrite calls to /gateway/* JSON |
| B → A | Low — use public hosts, form bodies + client poll |
| B → C | Low for media — map REST back to /v2 paths |
Tokens and model slugs stay the same across modes.
type and copied ratio from responsedomain is sent (client form for Mode A)wait: true)