{"openapi":"3.0.3","info":{"title":"VAT & IBAN Validation API","version":"1.0.0","description":"Validate IBANs (mod-97 + length/country) and EU VAT numbers (format + live VIES registration check)."},"servers":[{"url":"https://api.eucompliance.tools"}],"paths":{"/v1/iban":{"get":{"summary":"Validate an IBAN","operationId":"iban","parameters":[{"name":"value","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation result"},"401":{"description":"Missing/invalid key"},"402":{"description":"Free tier exhausted"}}}},"/v1/vat":{"get":{"summary":"Validate an EU VAT number (format + VIES)","operationId":"vat","parameters":[{"name":"value","in":"query","required":true,"schema":{"type":"string"}},{"name":"vies","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"Validation result"},"401":{"description":"Missing/invalid key"},"402":{"description":"Free tier exhausted"}}}},"/v1/health":{"get":{"summary":"Health check","operationId":"health","responses":{"200":{"description":"OK"}}}},"/api/v1/models":{"get":{"summary":"List AgentLLM models, limits and live x402 prices","operationId":"agentllm_models","responses":{"200":{"description":"OpenAI-style model catalog; free"}}}},"/free/agentllm/check":{"post":{"summary":"Validate an AgentLLM request before paying","operationId":"agentllm_check","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string","enum":["agentllm/micro","agentllm/basic","auto"]},"messages":{"type":"array","minItems":1,"maxItems":16,"items":{"type":"object","additionalProperties":false,"required":["role","content"],"properties":{"role":{"type":"string","enum":["developer","system","user","assistant"]},"content":{"type":"string","minLength":1}}}},"max_tokens":{"type":"integer","minimum":1,"maximum":750},"max_completion_tokens":{"type":"integer","minimum":1,"maximum":750},"stream":{"type":"boolean","enum":[false]}},"example":{"model":"agentllm/micro","messages":[{"role":"user","content":"Classify as paid or unpaid: invoice paid."}],"max_tokens":40,"stream":false}}}}},"responses":{"200":{"description":"Request is valid; returns exact paid URL and price"},"422":{"description":"Invalid request; no payment or upstream call"}}}},"/api/v1/micro/chat/completions":{"post":{"summary":"Low-cost OpenAI-compatible LLM completion over x402","operationId":"agentllm_micro_chat_completions","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string","enum":["agentllm/micro"]},"messages":{"type":"array","minItems":1,"maxItems":8},"max_tokens":{"type":"integer","minimum":1,"maximum":300},"max_completion_tokens":{"type":"integer","minimum":1,"maximum":300},"stream":{"type":"boolean","enum":[false]}}}}}},"responses":{"200":{"description":"OpenAI chat.completion response"},"402":{"description":"x402 v2 payment requirement; fixed 0.003 USDC"}}}},"/api/v1/chat/completions":{"post":{"summary":"OpenAI-compatible fixed-price LLM completion over x402","operationId":"agentllm_chat_completions","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"type":"string","enum":["agentllm/basic","auto"]},"messages":{"type":"array","minItems":1,"maxItems":16,"items":{"type":"object","additionalProperties":false,"required":["role","content"],"properties":{"role":{"type":"string","enum":["developer","system","user","assistant"]},"content":{"type":"string","minLength":1}}}},"max_tokens":{"type":"integer","minimum":1,"maximum":750},"max_completion_tokens":{"type":"integer","minimum":1,"maximum":750},"stream":{"type":"boolean","enum":[false]}}}}}},"responses":{"200":{"description":"OpenAI chat.completion response"},"402":{"description":"x402 v2 payment requirement; fixed 0.005 USDC"}}}}}}