Skip to content
Fourohtwo

Use when an agent must say something in a language it was not given

flat-rate-llm.kikoribera03.workers.dev/v1/ai/translate

Use when an agent must say something in a language it was not given: about 100 languages with Meta M2M100 1.2B - pass the text and the target language (ISO code or English name); the source language is detected if omitted. Long texts are split by sentence, keeping order and line breaks. Up to 2000 characters per call. Chains with /v1/ai/transcribe and /v1/ai/speech. You are only charged if the tra

BasePolygonArbitrumAnswering
POSThttps://flat-rate-llm.kikoribera03.workers.dev/v1/ai/translate

Uptime100% of 1 check 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://flat-rate-llm.kikoribera03.workers.dev/v1/ai/translate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"Your order has shipped and will arrive on Tuesday.","to":"es"}),
});
console.log(await res.json());

Example input

{
  "text": "Your order has shipped and will arrive on Tuesday.",
  "to": "es"
}