{
  "x402Version": 2,
  "name": "Clawy AI Gateway",
  "description": "Pay-per-call AI inference gateway. GPT-5.5 (OpenAI) and Claude Opus 4.8 (Anthropic) served via direct billing APIs. x402 micropayments on Base, USDC. Listed on x402scan.",
  "image": "https://clawy.uk/logo.png",
  "endpoints": [
    {
      "path": "/v1/chat/chatgpt",
      "method": "POST",
      "description": "GPT-5.5 chat completion via the OpenAI API. Returns an OpenAI-shape chat.completion object. Falls back to Anthropic Haiku 4.5 on error. x_clawy.provider in response always reports the actual backend.",
      "price": "$0.10 USDC per call",
      "inputSchema": {
        "type": "object",
        "required": ["messages"],
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["role", "content"],
              "properties": {
                "role": {"type": "string", "enum": ["system", "user", "assistant"]},
                "content": {"type": "string", "maxLength": 100000}
              }
            }
          },
          "model": {"type": "string", "description": "Optional model override"},
          "max_tokens": {"type": "integer", "minimum": 1, "maximum": 16000},
          "temperature": {"type": "number", "minimum": 0, "maximum": 2}
        }
      }
    },
    {
      "path": "/v1/chat/opus",
      "method": "POST",
      "description": "Claude Opus 4.8 chat completion via the Anthropic API. Returns an OpenAI-shape chat.completion object. x_clawy.provider in response always reports the actual backend.",
      "price": "$0.15 USDC per call",
      "inputSchema": {
        "type": "object",
        "required": ["messages"],
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["role", "content"],
              "properties": {
                "role": {"type": "string", "enum": ["system", "user", "assistant"]},
                "content": {"type": "string", "maxLength": 200000}
              }
            }
          },
          "model": {"type": "string", "description": "Optional model override"},
          "max_tokens": {"type": "integer", "minimum": 1, "maximum": 16000},
          "temperature": {"type": "number", "minimum": 0, "maximum": 2}
        }
      }
    },
    {
      "path": "/v1/chat/auto",
      "method": "POST",
      "description": "Cost-optimized tier — cheapest reliable inference. Returns an OpenAI-shape chat.completion object. x_clawy.provider in response always reports the actual backend.",
      "price": "$0.04 USDC per call"
    },
    {
      "path": "/v1/images/generate",
      "method": "POST",
      "description": "AI image generation via MiniMax image-01. Single tier (no model selection). OpenAI-compatible response shape. Returns base64-encoded images. Currently promo-priced ($0.01); normal price $0.05.",
      "price": "$0.01 USDC per call (promo) / $0.05 USDC per call (normal)",
      "inputSchema": {
        "type": "object",
        "required": ["prompt"],
        "properties": {
          "prompt": {"type": "string", "minLength": 1, "maxLength": 4000, "description": "Text description of the desired image"},
          "size": {"type": "string", "enum": ["1024x1024", "1024x1792", "1792x1024"], "description": "Output resolution. Default 1024x1024."},
          "n": {"type": "integer", "minimum": 1, "maximum": 4, "description": "Number of images. Default 1."}
        }
      }
    },
    {
      "path": "/health",
      "method": "GET",
      "description": "Free health check. No payment required. Returns current providers, pricing, and warnings.",
      "price": "free"
    }
  ],
  "payTo": "0x767C96C228560DE259C2DB1D3c636B4C87b01a0C",
  "network": "eip155:8453",
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "facilitator": "https://api.cdp.coinbase.com/platform/v2/x402",
  "networks": [
    {
      "caip2": "eip155:8453",
      "name": "Base mainnet",
      "asset": "USDC",
      "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x767C96C228560DE259C2DB1D3c636B4C87b01a0C",
      "facilitator": "Coinbase CDP"
    },
    {
      "caip2": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "name": "Solana mainnet",
      "asset": "USDC",
      "assetAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "payTo": "8Zob6pHeTeCp7YTYAKbxEhncWVkevs2o1Ydi6mrSBj9w",
      "facilitator": "Satoshi (https://facilitator.bitcoinsapi.com)",
      "enabled": false,
      "note": "Set SOLANA_ENABLED=1 in .env after funding the payTo address with USDC on Solana to activate."
    }
  ],
  "categories": ["inference", "ai", "llm", "chatgpt", "claude", "openai-compatible", "gpt-5", "opus-4", "image-generation"],
  "tags": ["x402", "usdc", "base", "solana", "ai-agent", "inference", "chat", "openai-compatible", "frontier-models", "minimax-image-01"],
  "version": "1.1.0",
  "legal": {
    "imprint": "https://clawy.uk/impressum.html",
    "privacy": "https://clawy.uk/datenschutz.html",
    "terms": "https://clawy.uk/agb.html",
    "withdrawal": "https://clawy.uk/widerruf.html"
  }
}
