x402-gateway.blackwoodstate8.workers.dev/v1/translate
Use when you need to translate text, a language translation or a text translation of a sentence or paragraph between two languages. Do not use for formatting that must be preserved, certified or legal translation, or speech (transcribe first). Returns JSON with text translation between about 100 languages by Meta M2M100 1.2B on Workers AI: the translated text with the source and target languages u
POST
https://x402-gateway.blackwoodstate8.workers.dev/v1/translateUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402-gateway.blackwoodstate8.workers.dev/v1/translate", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"from":"en","text":"Pay only for the requests you make.","to":"pt"}),
});
console.log(await res.json());Example input
{
"from": "en",
"text": "Pay only for the requests you make.",
"to": "pt"
}