{"uid":"cap_nnrcHlm_6AQf81jeIYPnt","slug":"agentutility-translate-text-3b5cfac8","name":"AgentUtility Translate Text","description":"Translate text into another language with native-level fluency. Send text and a target_language (an ISO code like 'es' or a name like 'Spanish'), with optional source_language and formality (casual, formal, or neutral), and it auto-detects the source when not given, preserves Markdown, code, and URLs, and returns translated_text plus the detected_source_language. Covers 100+ languages. Use it as a text translator, language conversion API, or localization tool for multilingual content.","url":"https://x402.agentutility.ai/translate-text","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["text","target_language"],"properties":{"text":{"type":"string","description":"Text to translate. Max 12k chars."},"formality":{"enum":["casual","formal","neutral"],"type":"string","description":"Optional. Register: 'casual', 'formal', or 'neutral' (default)."},"source_language":{"type":"string","description":"Optional. Source language ISO code or name. Auto-detected if omitted."},"target_language":{"type":"string","description":"Target language as an ISO code or name, e.g. 'en' or 'Spanish'."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"translated_text":{"type":"string"},"detected_source_language":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"translated_text":"Hola mundo","detected_source_language":"English"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lcpNFhF_2-0_ugtVpuKZg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Translates text from a detected source language into a specified target language, returning the translated text and the detected source language","exampleAgentPrompt":"Translate the following text into Spanish: 'The quick brown fox jumps over the lazy dog' — and tell me what language it was originally written in.","exampleUseCases":null,"resultDescription":"A JSON object containing 'translated_text' (the input text rendered in the target language) and 'detected_source_language' (the language identified in the original input, e.g. 'English').","failureModes":["Unsupported target language code returns an error or empty translation","Very short or ambiguous input may cause incorrect language detection","Non-text or binary input results in a 400-level error","Payment failure (x402 insufficient USDC balance) blocks the request","Network timeout for unusually long texts"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, USDC-settled translation API accessible to autonomous AI agents via x402 and MCP, without requiring a monthly subscription or API key rotation. Ideal for agents that translate infrequently or need on-demand multilingual text conversion with transparent per-call pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:51:04.124Z","isFirstParty":false}