TypeScript SDK — nền tảng Gommo (preview)
Gommo Developer client
Client Gommo Developer TypeScript — npm alias @ai-gateway/client. Gọi Gommo public API (api.gommo.net, v2.api.gommo.net).
GommoClient (official Gommo client) có resources theo namespace:
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',
});| Resource | Methods |
|---|---|
client.auth | login(), me() |
client.models | list({ type }) |
client.jobs | create(), poll(), createAndWait(), pollUntilDone(), createAndPoll() |
client.chat | send(), stream() |
client.upload | image(), video() |
client.audio | searchVoices(), tts(), lists() |
client.billing | chỉ self-hosted gateway — status(), packages(), createPayment() |
client.byok | chỉ self-hosted gateway — xem BYOK reference |
client | health(), transport, v2BaseUrl, authBaseUrl, setAccessToken() |
See Installation to get started.
