SDK reference
Package: galliun.
Client
import { GalliunClient, Galliun } from "galliun";
| Member | Description |
|---|---|
inference.chat |
Chat completions |
inference.embeddings.create |
Embeddings |
inference.models.list / catalog |
Models |
inference.conversations.* |
Managed conversations |
inference.auth.* |
Wallet auth session |
inference.client() |
Underlying PaidAIClient |
marketplace.call |
Paid fetch by path |
marketplace.callEndpoint |
Paid fetch from path template |
marketplace.directory.* |
Public directory |
Wallet adapters
| Export | Product |
|---|---|
createSuiWalletAdapter |
Marketplace |
createSolanaWalletAdapter |
Marketplace |
createInferenceSuiWalletAdapter |
Inference |
createInferenceSolanaWalletAdapter |
Inference |
Errors
| Class | Typical cause |
|---|---|
SDKError |
Missing wallet/chain, auth required, wallet mismatch |
PaymentRequiredSDKError |
Payment still required after retry |
APIError |
Non-OK HTTP response |
Helpers
paidFetch/paidFetchJson— low-level paid fetchbuildProtectedEndpointPath— build/p/{slug}/...normalizeChatRequest— normalize vision file inputs- Proof encode/decode and
selectPaymentOption/buildPaymentProof(marketplace and inference variants)
Types
Re-exported payment types include PaymentRequirement, PaymentProof, InferencePaymentRequirement, and InferencePaymentProof.
Image defaults: DEFAULT_ALLOWED_IMAGE_MIME_TYPES, DEFAULT_MAX_IMAGE_BYTES.