{"version":"2.0.0","service":{"name":"lingua","description":"Pay USDC, get context-aware AI translation between any language pair. Supports 100+ languages, cultural adaptation, and batch translation.","contact":"jadedfocus@gmail.com","x-guidance":"POST /api/translate ($1.00) translates text between any language pair. Body: { text, to (ISO 639-1), from?, context? }. POST /api/localize ($2.00) culturally adapts content for a target locale. Body: { text, target_locale, content_type? }. POST /api/batch-translate ($3.00) translates up to 20 strings. Body: { texts: string[], to, from? }. Flow: send POST without payment → receive 402 challenge → sign transferWithAuthorization with your wallet → re-send with PAYMENT-SIGNATURE header.","operator":"Royal Agentic Enterprises"},"endpoints":{"/api/translate":{"method":"POST","accepts":{"scheme":"exact","price":"$1.00","network":"eip155:8453","payTo":"0x7861db4efc14a1ed5dd8c96c528a3796560f1393","extra":{"facilitator":"https://x402-agent-pay.com/facilitator"}},"description":"Translate text between any language pair. Body: { text, to (ISO 639-1), from? (auto-detect if omitted), context? }","mimeType":"application/json","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"text":"Hello","to":"es"}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","required":["text","to"],"additionalProperties":false,"properties":{"text":{"type":"string","minLength":1,"maxLength":50000,"pattern":"\\S"},"to":{"type":"string","pattern":"^[a-z]{2}$"},"from":{"type":"string","pattern":"^[a-z]{2}$"},"context":{"type":"string","minLength":1,"maxLength":4000,"pattern":"\\S"}}}},"required":["type","method","bodyType","body"],"additionalProperties":false}},"required":["input"]}}}},"/api/localize":{"method":"POST","accepts":{"scheme":"exact","price":"$2.00","network":"eip155:8453","payTo":"0x7861db4efc14a1ed5dd8c96c528a3796560f1393","extra":{"facilitator":"https://x402-agent-pay.com/facilitator"}},"description":"Full localization with cultural adaptation. Body: { text, target_locale (e.g. ja-JP, pt-BR), content_type? }","mimeType":"application/json","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"text":"Hello","target_locale":"ja-JP"}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","required":["text","target_locale"],"additionalProperties":false,"properties":{"text":{"type":"string","minLength":1,"maxLength":50000,"pattern":"\\S"},"target_locale":{"type":"string","pattern":"^[a-z]{2}(?:-[A-Z]{2})?$"},"content_type":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S"}}}},"required":["type","method","bodyType","body"],"additionalProperties":false}},"required":["input"]}}}},"/api/batch-translate":{"method":"POST","accepts":{"scheme":"exact","price":"$3.00","network":"eip155:8453","payTo":"0x7861db4efc14a1ed5dd8c96c528a3796560f1393","extra":{"facilitator":"https://x402-agent-pay.com/facilitator"}},"description":"Translate up to 20 strings at once. Body: { texts: string[], to, from? }","mimeType":"application/json","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"texts":["Hello","Goodbye"],"to":"es"}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","required":["texts","to"],"additionalProperties":false,"properties":{"texts":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"string","minLength":1,"maxLength":2500,"pattern":"\\S"}},"to":{"type":"string","pattern":"^[a-z]{2}$"},"from":{"type":"string","pattern":"^[a-z]{2}$"}}}},"required":["type","method","bodyType","body"],"additionalProperties":false}},"required":["input"]}}}}}}