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

  1. Send your request
  2. Receive 402 Payment Required with payment options
  3. Ask your wallet to pay USDC on Sui or Solana
  4. Retry the same request with an X-PAYMENT proof
  5. Return the API response (or a typed error)

Next steps