79trust / 100

Ai Translate

by flat-rate-llm.kikoribera03.workers.dev in AI models & inference

x402 APIPassing, checked 30 min ago

Translates text between about 100 languages with Meta M2M100 1.2B: pass the text and the target language (ISO code like es, fr, de, zh, ja, or its English name); the source language is detected if omitted. Long texts are split by sentence, so paragraphs keep their order and line breaks. Up to 2000 characters per call. Pairs with speech-to-text: translate a transcript, then read it aloud. You are only charged if the translation is delivered. No API key, no account.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
405 ms typical, 490 ms slowest 5%
Last check
30 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/translate?text=Your+order+has+shipped+and+will+arrive+on+Tuesday.&to=es"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fflat-rate-llm.kikoribera03.workers.dev%2Fv1%2Fai%2Ftranslate
const res = await pay("https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/translate?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"
}

Example output

{
  "characters": 50,
  "from": "auto",
  "model": "@cf/meta/m2m100-1.2b",
  "pieces": 1,
  "text": "Su pedido ha sido enviado y llegará el martes.",
  "to": "es"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
30 min agoPassed402448 ms$0.005
4 h agoPassed402405 ms$0.005
7 h agoPassed402107 ms$0.005
11 h agoPassed402130 ms$0.005
14 h agoPassed402137 ms$0.005
18 h agoPassed402477 ms$0.005
22 h agoPassed402156 ms$0.005
25 h agoPassed402570 ms$0.005
30 h agoPassed402436 ms$0.005
33 h agoPassed402125 ms$0.005
36 h agoPassed402448 ms$0.005
41 h agoPassed402490 ms$0.005