80trust / 100

Translate Batch

by NetIntel in AI models & inference

x402 APIPassing, checked 6 min ago

Translate many independent strings in one request — each with a caller ID preserved in the response — with per-item status, glossary and tone support, and partial success so one bad item never fails the batch, so agents can localize whole string tables in a single call.

POST https://netintel.dev/translate/batch

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
208 ms typical, 406 ms slowest 5%
Last check
6 min ago
Next check
in 26 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://netintel.dev/translate/batch" \
  -H "content-type: application/json" \
  -d '{"glossary":{"dashboard":"tableau de bord"},"items":[{"id":"greeting","text":"Hello {{name}}"},{"id":"cta","text":"Open the dashboard"}],"target":"fr"}'
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%2Fnetintel.dev%2Ftranslate%2Fbatch
const res = await pay("https://netintel.dev/translate/batch", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"glossary":{"dashboard":"tableau de bord"},"items":[{"id":"greeting","text":"Hello {{name}}"},{"id":"cta","text":"Open the dashboard"}],"target":"fr"}),
});
console.log(await res.json());

Example input

{
  "glossary": {
    "dashboard": "tableau de bord"
  },
  "items": [
    {
      "id": "greeting",
      "text": "Hello {{name}}"
    },
    {
      "id": "cta",
      "text": "Open the dashboard"
    }
  ],
  "target": "fr"
}

Example output

{
  "billed_items": 2,
  "failed": 0,
  "findings": [],
  "grade": "A",
  "item_count": 2,
  "items": [
    {
      "confidence": 0.98,
      "detected_language": "en",
      "id": "greeting",
      "status": "ok",
      "translated": "Bonjour {{name}}",
      "warnings": []
    },
    {
      "confidence": 0.98,
      "detected_language": "en",
      "id": "cta",
      "status": "ok",
      "translated": "Ouvrir le tableau de bord",
      "warnings": []
    }
  ],
  "pricing": {
    "base_usd": "$0.05",
    "included_items": 25,
    "overage_items": 0,
    "overage_per_item_usd": 0.002,
    "overage_usd": 0
  },
  "score": 100,
  "succeeded": 2,
  "target_language": "fr",
  "usage": {
    "input_tokens": 480,
    "model": "claude-haiku-4-5-20251001",
    "model_calls": 2,
    "output_tokens": 64
  },
  "warnings": []
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
6 min agoPassed402298 ms$0.05
4 h agoPassed402406 ms$0.05
7 h agoPassed402442 ms$0.05
11 h agoPassed402250 ms$0.05
15 h agoPassed402208 ms$0.05
18 h agoPassed402299 ms$0.05
22 h agoPassed402186 ms$0.05
26 h agoPassed402180 ms$0.05
29 h agoPassed402178 ms$0.05
34 h agoPassed402178 ms$0.05