import requests
HUB = "http://localhost:9080" # or https://modelmarket.dev
# 1. Confirm plugin is loaded
plugins = requests.get(f"{HUB}/ai-market/v2/plugins").json()
assert any(p["name"] == "aimarket-personas" for p in plugins["plugins"])
# 2. Example call
requests.post(f"{HUB}/ai-market/v2/p/aimarket-personas/personas/generate", json={
"niche": "fintech compliance", "platform": "claude"
})When this plugin registers invoke hooks, the hub calls them automatically on every /ai-market/v2/invoke:
- Pre-check — can block input (safety, ZK input proof, promo validation)
- Post-check — can block output or attach metadata (provenance receipt, TEE attestation)
Blocked invocations return HTTP 403 with signed rejection receipt and channel refund when applicable.
After install, the hub merges plugin fields into /.well-known/ai-market.json under plugin_extensions.
# Direct library use (without HTTP)
import aimarket_personas # adjust to package nameSee AIMarket Hub README for the full plugin catalog.