{"uid":"cap_r7_7bivMv2Fx63aUQGSle","slug":"agentindex-x402-translation-7aa35218","name":"AgentIndex x402 Translation","description":"Process the files and content an agent gives you. Nothing else. A pay-per-call kit for AI agents in USDC on Base (x402/MPP): pdf, web-read, extract, summarize, and the free detect-language entry point - see GET /capabilities. Plus two tools outside the kit: translate and jobs.","url":"https://x402.agentindex.world/translate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"maxItems":200,"minItems":1}],"description":"Text to translate - a single string, or an array of up to 200 segments to translate together in one call (batch/bulk translation), preserving order and count."},"source_lang":{"type":"string","description":"Source language code. Omit to auto-detect."},"target_lang":{"type":"string","description":"Target language as an ISO 639-1 code, e.g. 'en', 'fr', 'ja'."},"preserve_format":{"type":"boolean","description":"Keep markdown syntax, HTML tags and {x}/{{x}} placeholders unchanged, translating only the surrounding natural-language text - useful for localizing UI strings or templated content."}}},"responseSchema":{"type":"json","example":{"text":"Bonjour le monde","target_lang":"en","model_served":"agentindex-translate-1","translated_text":"Hello world","detected_source_lang":"fr"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1pAY7IJCUZWps3_pItqNE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Translates text (single string or batch of up to 200 segments) from one language to another, with optional format preservation for markdown, HTML, and template placeholders.","exampleAgentPrompt":"Translate this batch of 50 product descriptions from German into English, keeping any {variable} placeholders and markdown formatting intact.","exampleUseCases":[{"title":"Localizing multilingual e-commerce listings","prompt":"I have 150 product descriptions in French that I need translated into English for our US store — please keep all the markdown bold and italic formatting unchanged."},{"title":"Auto-detecting and translating user feedback","prompt":"I've got a mix of customer reviews in unknown languages — can you detect each one's language and translate them all into English so I can read them?"},{"title":"Translating templated UI strings for an app","prompt":"Translate these 80 UI strings from English to Japanese, but make sure the {username} and {{count}} placeholders stay exactly as they are and don't get translated."}],"resultDescription":"A JSON object containing the translated text, the target language code, the model used (agentindex-translate-1), and the detected source language code (useful when auto-detection was requested).","failureModes":["Unsupported or invalid target_lang ISO 639-1 code returns an error","Array exceeding 200 items is rejected","Payment failure via x402 protocol results in 402 response before translation occurs","Ambiguous or very short text may produce incorrect language auto-detection","Heavily formatted content may have placeholder corruption if preserve_format is not set"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call translation without a subscription, especially for batch workloads of up to 200 segments in a single call, or when localizing structured content like markdown, HTML, or template strings where format preservation is critical. It is ideal for AI agent pipelines that need on-demand translation billed in USDC micro-payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:38:38.439Z","isFirstParty":false}