Ainfera

Documentation

Quickstart.

Mint an Agent Card and run your first signed, settled, audited Inference.

[02]InstallIncludes code

Install

The Python SDK is the fastest path. It wraps the Ainfera API and handles Agent Card signing for you.

pip install ainfera
[03]Register an Agent and fund the WalletIncludes code

Register an Agent and fund the Wallet

A Tenant owns your Agents, Wallet, and Audit Chains. Registration mints a signed Agent Card — that is what makes every Inference provably yours. The Wallet ships empty, so top it up before your first call.

from ainfera import AinferaClient

# api_key also reads from AINFERA_API_KEY
client = AinferaClient(api_key="ai_infera_...")

agent = client.agents.register(name="my-first-agent")

# Self-serve x402 + Stripe topup ship in Week 1 fast-follow. For
# launch, new accounts get a $5 free credit auto-allocated; reach
# out via hi@ainfera.ai for additional manual top-ups within ~1 hr.
agent.wallet.topup(amount_usd=5)
[04]Run a signed InferenceIncludes code

Run a signed Inference

One call routes to a Provider under your spend policy, debits your Wallet, and writes the Audit Chain. The Receipt URL is publicly verifiable.

response = agent.inference(
    model="claude-opus-4-7",
    messages=[{"role": "user", "content": "Hello"}],
)

print(response.text)
print(response.receipt.audit_url)
[05]Verify the Audit ChainIncludes code

Verify the Audit Chain

The Audit Chain is hash-chained, so you — or an Auditor — can verify it offline without trusting Ainfera.

# pip install ainfera-verify
# ainfera-verify chain my-first-agent