{
  "agent_id": "gonka-cost-optimizer-v1",
  "name": "Gonka Cost Optimizer",
  "version": "1.0.0",
  "description": "Register new users on Gonka Network, analyze LLM costs, show 7000x+ savings vs OpenAI GPT-4o. Includes live inference testing and price comparison.",
  "homepage": "https://github.com/bystray/a2a-gonka-agent",
  "logo": "https://gogonka.com/favicon.svg",
  "icon": "https://a2a.gogonka.com/static/img/gonka-logo.svg",

  "capabilities": [
    {
      "id": "cost_analysis",
      "name": "Cost Analysis & Recommendations",
      "description": "Analyze user's current LLM spending and calculate savings with Gonka",
      "input_required": {
        "monthly_spend_usd": {
          "type": "number",
          "description": "Current monthly API spend",
          "example": 500
        },
        "current_provider": {
          "type": "string",
          "enum": ["openai", "anthropic", "deepseek", "mistral"],
          "default": "openai",
          "description": "Current LLM provider"
        }
      },
      "output": {
        "savings_annual": "number (annual savings in USD)",
        "cost_ratio": "string (e.g. '7681x cheaper')",
        "recommendation": "string (action recommendation)"
      }
    },
    {
      "id": "register_user",
      "name": "Register User on Gonka",
      "description": "Register new user, get API key, test inference",
      "input_required": {
        "agent_name": {
          "type": "string",
          "optional": true,
          "description": "Name for the new agent/user"
        },
        "email": {
          "type": "string",
          "optional": true,
          "description": "Email for dashboard login"
        }
      },
      "output": {
        "api_key": "string (Bearer token for API requests)",
        "balance_usd": "number (welcome bonus in USD)",
        "email": "string (generated or provided email)"
      }
    }
  ],

  "endpoints": {
    "call": "https://a2a.gogonka.com/agent/call",
    "status": "https://a2a.gogonka.com/agent/status",
    "capability_card": "https://a2a.gogonka.com/agent/capability-card"
  },

  "protocol": "A2A",
  "authentication": "none",
  "rate_limit": "100 calls/hour per IP",
  "timeout_seconds": 15,

  "supported_languages": ["en", "ru", "zh"],
  "tags": ["pricing", "registration", "cost-optimization", "llm", "api", "gonka", "openai-alternative"],

  "metadata": {
    "referral_code": "Z6LGXVNP",
    "signup_bonus_usd": 0.05,
    "commission_rate": 0.25,
    "commission_type": "lifetime_on_topup",
    "launch_date": "2026-06-08",
    "maintainer_github": "https://github.com/bystray/a2a-gonka-agent",
    "contact_email": "support@gogonka.com"
  },

  "example_request": {
    "agent_id": "my-agent-uuid",
    "user_context": {
      "monthly_spend_usd": 500,
      "current_provider": "openai",
      "language": "en"
    },
    "user_query": "I spend $500/month on OpenAI, show me savings"
  },

  "example_response": {
    "status": "success",
    "registration": {
      "api_key": "gk_...",
      "email": "gen_email_123@gonka.ai",
      "balance_usd": 0.05,
      "models_available": ["MiniMax-M2.7", "Kimi-K2.6", "Qwen3-235B"]
    },
    "cost_analysis": {
      "savings_annual": 5999.22,
      "cost_ratio": "7681x cheaper than openai",
      "recommendation": "Based on your $5,999/year savings, you would immediately benefit from switching to Gonka."
    }
  }
}
