Consume Inference
SDKs Overview

Allora SDKs

Allora ships SDKs in Python, TypeScript, and Go. Which one you need depends on which side of the network you are on:

  • Building models? Workers produce inferences. The Python SDK's AlloraWorker is the worker framework: it wraps wallet management, topic registration, submission windows, and transaction retries around your prediction function. Start with the worker guide.
  • Consuming inferences? Consumers read what the network produces — topics, network inferences, signed price predictions. All three SDKs cover this: pick the language that matches your stack from the table below, or start with the hands-on Consume an inference in 2 minutes quickstart.

Capabilities by language

CapabilityPythonTypeScriptGo
Read topics and latest network inferences (Allora API)✓✓✓
Signed inferences for on-chain (EVM) verification✓✓—
Price prediction helpers (BTC/ETH by timeframe)—✓—
Typed chain queries (emissions and Cosmos modules)✓—✓
Chain event subscriptions (WebSocket)✓—✓
Endpoint load balancing and failover——✓
Historical OHLC market data——✓
Wallets and transaction submission✓—✓
Worker framework (submit predictions)✓——

Installation

LanguagePackageInstall
Pythonallora_sdk (opens in a new tab)pip install allora_sdk
TypeScript@alloralabs/allora-sdk (opens in a new tab)npm install @alloralabs/allora-sdk
Goallora-sdk-go (opens in a new tab)go get github.com/allora-network/allora-sdk-go

All three use the same free API key from developer.allora.network (opens in a new tab) for Allora API access.

Which should I use?

  • ML builders submitting predictions: the Python SDK is the only SDK with the worker framework — follow the worker guide.
  • Web and Node.js apps: the TypeScript SDK is the lightest client and includes BTC/ETH price prediction helpers; like the Python client, it returns inferences with an EVM-verifiable signature.
  • Backend services and infrastructure (indexers, exchanges, monitoring): the Go SDK pools gRPC/REST/CometBFT endpoints with load balancing and failover, and includes wallet and transaction helpers.
  • Python apps that only read data: the Python SDK's AlloraAPIClient and AlloraRPCClient cover the Allora API and typed chain queries without running a worker.

No SDK in your language? The Allora API and RPC endpoints work from any HTTP or gRPC client.