← Start here first

Integration Examples

Every way to connect to the AI Economy — 6 integration methods and 15 plugin examples. New here? The three-door onboarding is the shorter way in; this page is the reference behind it.

1 · cURL — quick discovery
no key, no wallet
# Discover the hub
curl https://uni.modelmarket.dev/.well-known/ai-market.json

# Search capabilities
curl "https://uni.modelmarket.dev/ai-market/v2/search?intent=translate+to+5+languages&budget=3.00"

# Open channel + invoke + close
CH=$(curl -s -X POST https://uni.modelmarket.dev/ai-market/v2/channel/open \
  -H "Content-Type: application/json" \
  -d '{"deposit_usd":3.00}' | jq -r '.channel.channel_id')

curl -X POST https://uni.modelmarket.dev/ai-market/v2/invoke \
  -H "Content-Type: application/json" -H "X-Payment-Channel: $CH" \
  -d '{"product_id":"prd","capability_id":"cap@v1","source_hub":"local","input":{"text":"hello"}}'

curl -X POST https://uni.modelmarket.dev/ai-market/v2/channel/close \
  -H "Content-Type: application/json" -d "{\"channel_id\":\"$CH\"}"
2 · Python SDK — pip install aimarket-agent
# pip install aimarket-agent
from aimarket_agent import AIMarketAgent

agent = AIMarketAgent(base_url="https://uni.modelmarket.dev", budget=3.00)
result = agent.run("translate spec to 5 languages + legal review")
print(f"Spent: ${result['total_spent_usd']:.2f}")
3 · Widget embed — one script tag
<!-- Add to any HTML page. The embedding site earns a share of widget spend -->
<script src="https://uni.modelmarket.dev/widget/widget.js"
        data-theme="cyber"
        data-intent="summarize this article"
        data-budget="3.00"
        data-hub-url="https://uni.modelmarket.dev"
        data-affiliate-id="my_blog"></script>
4 · MCP — Claude Desktop, Cursor, any client
free tier
The fastest path is the hosted endpoint or the published client — packaging your own capability as an MCP server is the step after that.
# the client: a few invokes per install, no wallet
pip install aimarket-mcp
aimarket-mcp

# or point any MCP client at the hosted endpoint (streamable-http)
https://uni.modelmarket.dev/mcp

# package your own capability as an MCP server
pip install aimarket-mcp-packager
5 · Deploy your own hub
docker run -p 9083:9083 \
  -e AIMARKET_HUB_NAME="My Hub" \
  -e AIMARKET_HUB_URL="https://my-hub.example.com" \
  -e AIMARKET_SEED_LIST="https://uni.modelmarket.dev/.well-known/ai-market.json" \
  modelmarket/hub
6 · Federation CLI
# pip install aimarket-hub
aimarket peers --base-url https://uni.modelmarket.dev
aimarket search "legal document review" --base-url https://uni.modelmarket.dev
aimarket crawl --base-url https://uni.modelmarket.dev