Agent & Bot Guide

How to use StudioMCPHub to create, enhance, and protect images via the Golden Codex pipeline.

Quick Start (3 Steps)

Step 1: Register Your Wallet FREE

curl -X POST https://studiomcphub.com/api/wallet/register \
  -H "Content-Type: application/json" \
  -d '{"wallet": "0xYOUR_WALLET_ADDRESS"}'

# Response: {"status": "created", "balance": 10, ...}
# You now have 10 GCX credits ($1.00 value)

Step 2: Choose Your Path

I want to...Tools neededCost
Upscale my image (4x)upscale_image2 GCX ($0.20)
Enhance my existing imageenrich_metadata + infuse_metadata3 GCX ($0.30)
Remove backgroundremove_backgroundFREE
Search museum artworkssearch_artworksFREE

Step 3: Make Your First Call

# Include your wallet as Bearer token for GCX payment
curl -X POST https://studiomcphub.com/api/tools/upscale_image \
  -H "Authorization: Bearer 0xYOUR_WALLET" \
  -H "Content-Type: application/json" \
  -d '{"image": "BASE64_IMAGE_DATA", "scale": 4}'

Enhance Existing Images with Golden Codex

Already have images? Run them through the Golden Codex pipeline to add AI metadata, provenance, and professional-grade processing.

Your Image
enrich_metadata 2 GCX
infuse_metadata 1 GCX
register_hash 1 GCX
Provenance-Protected Image

Step-by-Step: Enhance an Existing Image

# 1. Enrich — AI analyzes your image and generates Golden Codex metadata (2 GCX)
curl -X POST https://studiomcphub.com/api/tools/enrich_metadata \
  -H "Authorization: Bearer 0xYOUR_WALLET" \
  -H "Content-Type: application/json" \
  -d '{"image": "BASE64_IMAGE_DATA", "context": "Oil painting by a contemporary artist"}'

# Response includes full Golden Codex JSON: title, medium, palette,
# composition, symbolism, emotional resonance, provenance context

# 2. Infuse — Embed the metadata INTO the image file (1 GCX)
curl -X POST https://studiomcphub.com/api/tools/infuse_metadata \
  -H "Authorization: Bearer 0xYOUR_WALLET" \
  -H "Content-Type: application/json" \
  -d '{"image": "BASE64_IMAGE_DATA", "metadata": {...CODEX_JSON_FROM_STEP_1...}}'

# Response: image with XMP-gc, IPTC, and C2PA metadata embedded

# 3. Register Hash — Provenance protection, even if metadata is stripped (1 GCX)
curl -X POST https://studiomcphub.com/api/tools/register_hash \
  -H "Authorization: Bearer 0xYOUR_WALLET" \
  -H "Content-Type: application/json" \
  -d '{"image": "BASE64_INFUSED_IMAGE"}'

# Response: hash_id, perceptual hash registered in Aegis index
# Anyone can now verify your image with verify_provenance (FREE)
Pro tip: Chain enrich_metadata + infuse_metadata + register_hash for a complete provenance pipeline. Total: 4 GCX ($0.40).

Save & Retrieve Assets

Store your generated images and pipeline outputs in your personal wallet storage. 100MB free per wallet.

# Save an image to your storage (1 GCX)
curl -X POST https://studiomcphub.com/api/tools/save_asset \
  -H "Authorization: Bearer 0xYOUR_WALLET" \
  -H "Content-Type: application/json" \
  -d '{
    "wallet": "0xYOUR_WALLET",
    "key": "my-landscape-001",
    "data": "BASE64_IMAGE_DATA",
    "metadata": {"title": "Golden Hour Landscape", "pipeline": "full"}
  }'

# Retrieve it later (FREE)
curl -X POST https://studiomcphub.com/api/tools/get_asset \
  -H "Content-Type: application/json" \
  -d '{"wallet": "0xYOUR_WALLET", "key": "my-landscape-001"}'

# List all your assets (FREE)
curl -X POST https://studiomcphub.com/api/tools/list_assets \
  -H "Content-Type: application/json" \
  -d '{"wallet": "0xYOUR_WALLET"}'

MCP Connection (Claude, Cursor, Cline)

For AI agents using the Model Context Protocol, connect to StudioMCPHub's Streamable HTTP transport:

{
  "mcpServers": {
    "studiomcphub": {
      "url": "https://studiomcphub.com/mcp",
      "transport": "streamable-http"
    }
  }
}

Once connected, your AI agent can:

  1. Call register_wallet to get 10 free GCX
  2. Call search_tools to discover all available tools
  3. Call upscale_image to enhance image resolution
  4. Call enrich_metadata + infuse_metadata for provenance
  5. Call save_asset to store results for later

Complete Tool Reference

Creative Tools

ToolCostDescription
upscale_image2 GCX4x super-resolution (ESRGAN, NVIDIA L4).
enrich_metadata2 GCXAI artwork analysis (Gemini). 8-section Golden Codex JSON.
infuse_metadata1 GCXEmbed metadata into image (ExifTool: XMP, IPTC, C2PA).
register_hash1 GCXPerceptual hash registration. Strip-proof provenance.
verify_provenanceFREECheck an image against the Aegis hash index.

Dataset Tools (Alexandria Aeternum — 53K+ Museum Artworks)

ToolCostDescription
search_artworksFREESearch 7 world-class museums by keyword.
get_artwork1 GCXHuman-sourced metadata + image URL.
get_artwork_oracle2 GCXDeep AI analysis: 111-field NEST format.
batch_download50 GCXBulk download (100+ artworks).
compliance_manifestFREEAB 2013 + EU AI Act compliance docs.

Storage & Account Tools

ToolCostDescription
save_asset1 GCXSave to wallet storage (5MB max per asset).
get_assetFREERetrieve stored asset by key.
list_assetsFREEList all stored assets.
delete_assetFREEDelete a stored asset.
register_walletFREERegister wallet + get 10 free GCX.
check_balanceFREECheck GCX, loyalty, tier status.

Pricing Math

10 free GCX gets you:
5 upscales OR 5 enrichments OR a complete provenance pipeline (upscale + enrich + infuse + register = 6 GCX) with credits to spare. Purchase GCX packs for more.

Best value: Chain upscale + enrich + infuse + register at 6 GCX ($0.60) for a complete provenance-protected artwork.

Payment Methods

Every paid call earns 5% loyalty credits back. Volume discounts up to 30% off at $200+ monthly spend.