This example uses the built pelion.judgment module. It runs against real LLM APIs and consumes real budget on those APIs.
A copy-pasteable Python example that produces a real verdict from the built frontier-model council. Takes under a minute end to end once the API keys are set.
Prerequisites
Python 3.11 or later. API keys for at least two of the three supported providers (Anthropic, OpenAI, Google).
You don’t need all three. The default min_responses is 2, so two providers are sufficient. Skipping a provider just means it won’t participate in the council.
Install
The frontier extra pulls in the Anthropic, OpenAI, and Google SDKs. The core Pelion package is lightweight.
Run this
Expected output
Something like this (text varies by model):
Each provider’s individual reasoning is stored in verdict.reasoning.miner_provenance if you want to inspect the per-provider outputs.
Try a harder question
The moon-landing question is easy. Every frontier model knows the answer from training. To see the council handle disagreement, try a genuinely ambiguous question.
This question has a defensible biological answer but the criteria are ambiguous. The council may split or return UNRESOLVABLE. Either outcome is legitimate. The verdict’s per-provider reasoning shows how each model handled the ambiguity.
Cost and latency
Per call, you’re paying for one API request to each enabled provider. At current frontier model pricing, this is roughly a few cents per query total. Latency is dominated by the slowest provider, typically 5 to 30 seconds end to end.
The per_provider_timeout_s setting caps individual provider latency. If a provider is slower than the timeout, it is dropped and the others continue. min_responses=2 means the verdict still resolves as long as at least two providers respond in time.
What this demonstrates
The code path exercised in this example is the same code path that runs inside a production Pelion miner on Bittensor. The miner wraps FrontierModelClient behind an Axon, but the judgment logic is identical.
That means the accuracy you observe running this example is a lower bound on the accuracy of the Pelion subnet. The real subnet adds retrieval, validator scoring, and multi-miner aggregation on top of this base.
See Repository and modules for the broader picture of how this fits together.