{"openapi":"3.1.0","info":{"title":"InterAI Plus","version":"1.0.0","description":"Pay-per-call LLM chat completions over x402, paid in USDC on Base. No account, no API key. Register your interest (free, independent): tools and services at https://interai-x402.intellaisolution.com/v1/register-interest; the I Win It tournament at https://iwinitaiapp.intellaisolution.com/v1/interest/challenge and /v1/interest.","contact":{"name":"InterAI Plus","email":"contact@interaiplus.com"},"termsOfService":"https://interai-x402.intellaisolution.com/terms","x-guidance":"Free: GET /v1/catalog (models and tier prices), GET /v1/quote (exact price of one call), GET /health. Paid: POST /v1/chat/completions (OpenAI-style body). Send it without payment to receive 402 with the price, then repeat with PAYMENT-SIGNATURE. Omit model for automatic mode."},"servers":[{"url":"https://interai-x402.intellaisolution.com","description":"InterAI Plus"}],"paths":{"/health":{"get":{"summary":"Liveness check","responses":{"200":{"description":"Service is up","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/catalog":{"get":{"summary":"Live list of models with tier prices (free)","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"Search text"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Models and prices","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/quote":{"get":{"summary":"Exact price and input cap for one call (free)","parameters":[{"name":"model","in":"query","required":false,"schema":{"type":"string"},"description":"Model id from the catalog; omit for automatic mode"},{"name":"max_tokens","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/validate":{"post":{"summary":"Check a chat request body for free: same pre-payment checks as the paid call, nothing is charged; returns the price and input cap","requestBody":{"required":true,"content":{"application/json":{"example":{"messages":[{"role":"user","content":"Hello"}],"max_tokens":256},"schema":{"type":"object","required":["messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array"},"max_tokens":{"type":"integer"}}}}}},"responses":{"200":{"description":"Valid request with its price","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/coming":{"get":{"summary":"Services in development for publishing (free)","responses":{"200":{"description":"List of upcoming services","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/autonomous-agents":{"get":{"summary":"Tools for autonomous AI agents in development (free)","responses":{"200":{"description":"List of upcoming agent tools and how to register interest","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/register-interest":{"post":{"summary":"Leave how to contact you and/or a public wallet address to be notified about the tools in development (free, no payment)","requestBody":{"required":true,"content":{"application/json":{"example":{"contact":"how you want to be contacted, any format","wallet":"0x<optional public wallet address>","interest":["agent-memory","agent-identity","agent-wallet"]},"schema":{"type":"object","required":[],"properties":{"contact":{"type":"string","description":"How you want to be contacted, any format, up to about 100 words (600 characters)"},"name":{"type":"string","description":"Optional name"},"wallet":{"type":"string","description":"Optional public address 0x..., never a private key"},"interest":{"type":"array","items":{"type":"string"}},"callback_url":{"type":"string","description":"Optional public https URL"},"signature":{"type":"string","description":"Optional EIP-191 signature proving you control the wallet (needed to receive notices); a 65-byte EOA signature or the longer ERC-1271/ERC-6492 signature of a smart-contract wallet; sent together with signed_at"},"signed_at":{"type":"string","description":"ISO-8601 UTC time used in the signed message; valid for 10 minutes"}}}}}},"responses":{"201":{"description":"Registered","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Registration not open yet","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/feedback":{"post":{"summary":"Leave a free text note for the InterAI+ team: up to about 500 words, any format (free, no payment)","requestBody":{"required":true,"content":{"application/json":{"example":{"notes":"Free text, up to about 500 words","name":"optional","contact":"optional: how to reach you"}}}},"responses":{"201":{"description":"Stored","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Nothing to store","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Could not store right now","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/mcp":{"post":{"summary":"MCP server (JSON-RPC over HTTP), free: tools list_models, get_quote, coming_features, autonomous_tools_for_autonomous_agents, registration_message, register_interest and send_feedback","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"JSON-RPC response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Notification accepted","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/chat/completions":{"post":{"summary":"Chat completion, paid per call in USDC over x402","description":"Send without payment to receive 402 with the price in the PAYMENT-REQUIRED header; repeat with PAYMENT-SIGNATURE.","requestBody":{"required":true,"content":{"application/json":{"example":{"messages":[{"role":"user","content":"Hello"}],"max_tokens":256},"schema":{"type":"object","required":["messages"],"properties":{"model":{"type":"string","description":"Model id from /v1/catalog. Omit for automatic mode."},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"integer"}}}}}},"responses":{"200":{"description":"Chat completion","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Request rejected, nothing charged","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required (PAYMENT-REQUIRED header states network, asset, amount and payTo)","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object"}}}},"502":{"description":"Call failed; the payment is not settled and nothing is charged","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}