59trust / 100

Translate

by Aayat AI in Developer tools

x402 APIFailing, checked 1 h ago

Translate text between 100+ languages with AI. POST JSON {"text": "...", "target": "French"} (language name or code such as fr, de, es, ja, zh, ar). Optional "source" language, otherwise it is detected. Up to about 12,000 characters of English (4,000 of Chinese/Japanese) per call. Keeps formatting such as Markdown and line breaks. Failed calls are not charged.

POST https://aayatai.com/translate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
25.0%
Response time
44 ms typical, 44 ms slowest 5%
Last check
1 h ago: Expected HTTP 402, got 410
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://aayatai.com/translate" \
  -H "content-type: application/json" \
  -d '{"target":"es","text":"Hello, how are you?"}'
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%2Faayatai.com%2Ftranslate
const res = await pay("https://aayatai.com/translate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"target":"es","text":"Hello, how are you?"}),
});
console.log(await res.json());

Example input

{
  "target": "es",
  "text": "Hello, how are you?"
}

Example output

{
  "chars": 19,
  "model": "@cf/mistralai/mistral-small-3.1-24b-instruct",
  "source": "auto",
  "target": "es",
  "translation": "Hola, ¿cómo estás?"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoExpected HTTP 402, got 41041047 ms-
4 h agoExpected HTTP 402, got 41041034 ms-
7 h agoExpected HTTP 402, got 410410701 ms-
12 h agoPassed40244 ms$0.01