1. Installation
First, install the Aurora Python SDK using pip. This package contains everything needed to interact with the network.
pip install aurora-protocol
2. Get API Key
To interact with the Aurora network, you'll need an API key. For this demo, we use a public test key.
AURORA_API_KEY="pk_test_aurora_v1_demo"
3. Live Browser Demo
Run a verifiable inference right here. This request is routed to our distributed network of Workers (or Consensus Nodes for verification).
4. Code Implementation
Here is how you would achieve the same result using our Python SDK in your own application.
import aurora
import os
aurora.api_key = os.getenv("AURORA_API_KEY")
# Define task
model_id = "llama3-8b-instruct"
input_data = {"prompt": "Explain Zero Knowledge Proofs"}
# Run on network
print("Broadcasting to Aurora Network...")
result, proof = aurora.run_inference(model_id, input_data)
print(f"Result: {result.response}")
print(f"ZK-Proof: {proof.hex}")