Skip to content

TypeScript SDK — Gommo platform ​

Gommo Developer client

Official Gommo Developer TypeScript client — npm alias @ai-gateway/client. Calls Gommo public API (api.gommo.net, v2.api.gommo.net).

→ Gommo public API · Roadmap

GommoClient (official Gommo client) exposes namespaced resources:

typescript
import { GommoClient } from '@ai-gateway/client';

const client = new GommoClient({
  accessToken: process.env.GOMMO_ACCESS_TOKEN,
  domain: process.env.GOMMO_DOMAIN ?? 'YOUR_REGISTRATION_DOMAIN',
});
ResourceMethods
client.authlogin(), me()
client.modelslist({ type })
client.jobscreate(), poll(), createAndWait(), pollUntilDone(), createAndPoll()
client.chatsend(), stream()
client.uploadimage(), video()
client.audiosearchVoices(), tts(), lists()
client.billingself-hosted gateway only — status(), packages(), createPayment()
client.byokself-hosted gateway only — see BYOK reference
clienthealth(), transport, v2BaseUrl, authBaseUrl, setAccessToken()

See Installation to get started.