Create a client

import { GalliunClient } from "galliun";

const client = new GalliunClient({
  baseUrl: "https://api.galliun.com",
  chain: "sui", // or "solana"
  wallet, // marketplace payments
  inferenceWallet, // inference payments
});

Options

Option Required Description
baseUrl Yes API base URL (https://api.galliun.com)
chain Recommended "sui" or "solana" — must match your wallet
wallet For marketplace Marketplace payment adapter
inferenceWallet For inference Inference payment adapter
fetch No Custom fetch implementation
authToken No Bearer token for inference conversations
hooks / inferenceHooks No Optional payment-flow callbacks

You can pass only the wallet you need. For both products in one app, pass both adapters (often wrapping the same signer).

Wallet setup: Connect a wallet.

Namespaces

client.inference.chat(...)
client.inference.models.list()
client.marketplace.call({ path: "/p/..." })
client.marketplace.directory.listApis()