What is Galliun?
Galliun lets you call paid APIs and AI models with per-request USDC payments from a connected wallet. The SDK handles HTTP 402 payment requirements so you can focus on building your app.
Products
| Product | What it does | SDK surface |
|---|---|---|
| Inference | Chat completions, embeddings, models, and managed conversations | client.inference.* |
| Marketplace | Call third-party protected APIs listed in the directory | client.marketplace.* |
Both use the same API host (https://api.galliun.com) and the same wallet-based payment flow. Inference pays a single treasury (exact). Marketplace pays provider and platform in one atomic transfer (exact_split).
What the SDK does
- Send your request
- Receive
402 Payment Requiredwith payment options - Ask your wallet to pay USDC on Sui or Solana
- Retry the same request with an
X-PAYMENTproof - Return the API response (or a typed error)