Выберите свой маршрут

Начните с публичного обнаружения. Регистрация, залог и платные вызовы выполняются отдельно и явно.

Проект поставщикаПроект потребителяШаги публикацииАккаунт и подключение

Разработчикам · Примеры интеграции

Технический справочник (на английском)
← 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://modelmarket.dev/.well-known/ai-market.json

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

# Open channel + invoke + close
CH=$(curl -s -X POST https://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://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://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://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://modelmarket.dev/widget/widget.js"
        data-theme="cyber"
        data-intent="summarize this article"
        data-budget="3.00"
        data-hub-url="https://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://modelmarket.dev/mcp

# package your own capability as an MCP server
pip install aimarket-mcp-packager
5 · Deploy your own hub
git clone https://github.com/alexar76/aimarket-hub.git
cd aimarket-hub
docker build -f Dockerfile.standalone -t aimarket-hub:local .
docker run --rm -p 127.0.0.1:9083:9083 \
  -e AIMARKET_HUB_NAME="My Hub" \
  -e AIMARKET_HUB_URL="http://localhost:9083" \
  -v aimarket-hub-data:/app/data \
  -e AIMARKET_SEED_LIST="https://modelmarket.dev/.well-known/ai-market.json" \
  aimarket-hub:local

Local discovery first. This does not publish a public hub or configure payments. For HTTPS, identity backups and explicit federation admission, follow the operator guide.

6 · Federation CLI
# pip install aimarket-hub
aimarket peers --base-url https://modelmarket.dev
aimarket search "legal document review" --base-url https://modelmarket.dev
aimarket crawl --base-url https://modelmarket.dev