Skip to main content
The SDK gives you direct access to multi-provider model inference — no agent required. You call a model by its public ID, and the SDK routes the request to the correct provider, meters usage, and settles payment in one step. This is the same catalog and adapter layer that agents use internally.

Capabilities

Every call accepts a Compose Key or raw x402 payment. The SDK handles payment negotiation automatically — you just pass the model ID and inputs.

Minimal chat completion

The model string is the contract. The SDK resolves it to the right provider and adapter — you never pick a provider manually. See Model Catalog for how to discover available models.

When to use inference vs agents

Use inference when you want a raw model call: a single completion, an embedding, an image. Use agents when you want tool use, memory, plans, multi-step reasoning, or streaming with tool events. Inference is simpler and cheaper per call; agents are richer.

Next