Deploy Your Model on Hokusai
Tokenize your AI model to create continuous revenue streams and enable decentralized governance.
Why Tokenize Your Model?
Continuous Revenue
Earn tokens as your model improves. Performance gains automatically mint rewards.
Market Creation
Your token launches on a decentralized AMM, creating liquidity and price discovery.
Transparent Governance
On-chain verification ensures fair reward distribution and model performance tracking.
Performance Target
Token Reward
To be announced
Tokens minted per unit improvement in Performance
Register Your Model
Register your trained model with the Hokusai registry using the SDK.
Install SDK
pip install "hokusai-ml-platform[ml]"Configure API Key
export HOKUSAI_API_KEY="your-hokusai-api-key-here"Register your model
hokusai model register \
--token-id YOUR-TOKEN-ID \
--model-path ./models/final_model.pkl \
--metric accuracy \
--baseline 0.65Register Your Model with token YOUR-TOKEN-ID
import os
import mlflow
from hokusai.core import ModelRegistry
# Set up MLflow tracking URI
mlflow.set_tracking_uri("https://registry.hokus.ai/api/mlflow")
# IMPORTANT: Use your Hokusai API key, NOT an MLflow token
# The Hokusai API key authenticates both the registry and MLflow
os.environ["MLFLOW_TRACKING_TOKEN"] = os.getenv("HOKUSAI_API_KEY")
# Initialize registry
registry = ModelRegistry()
# Register your model
with mlflow.start_run() as run:
# Log your model (replace with your actual model)
mlflow.sklearn.log_model(
your_trained_model,
"model",
registered_model_name="Your Model"
)
# Register with Hokusai
model_uri = f"runs:/{run.info.run_id}/model"
registered_model = registry.register_tokenized_model(
model_uri=model_uri,
model_name="Your Model",
token_id="YOUR-TOKEN-ID",
metric_name="accuracy",
baseline_value=0.92,
additional_tags={"author": "your-name", "version": "1.0"}
)
print(f"✅ Model registered successfully: {registered_model.name}")Deploy Token to Blockchain
Deploy your model's token to enable decentralized trading and governance. Your token launches on an automated market maker (AMM) with initial liquidity.
Token deployment includes:
- Token contract deployed to blockchain
- AMM pool created with initial liquidity
- Token allocations distributed to model supplier and investors
- Trading enabled immediately upon deployment
Earn from Performance
As your model improves over time, new tokens are minted based on performance deltas. You earn tokens continuously as your model demonstrates measurable improvements.
Token Economics
Your token supply is allocated between model suppliers, investors, and future minting from performance improvements. Token holders share in model inference revenue through the AMM pool.
Market Liquidity
Your token launches with initial liquidity on a bonding curve AMM, enabling immediate price discovery and trading. Liquidity providers earn fees from trading activity.
Continuous Rewards
As your model demonstrates measurable improvements over time, new tokens are minted proportional to the performance delta. This creates ongoing incentives for model optimization.
Support & Documentation
Need help? Visit our model deployment guide for detailed instructions, code examples, and troubleshooting tips.