# LocalMark Localization Agent

> LocalMark Localization Agent is a paid API for AI agents from translate.localmark.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-12-02).

Translates plain text or a flat JSON string map into a target language while preserving keys, placeholders, HTML tags, and URLs unchanged.

## Facts

- Endpoint: POST https://translate.localmark.ai/api/run?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/localmark-localization-agent-577df26d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_khIqNEkJsT4CPb6hDybzv

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability localmark-localization-agent-577df26d -d '<json body>'
```

Example prompt: Translate this flat JSON string map — {"greeting":"Hello, {name}!","count":"You have %d messages.","help":"Read our guide for help."} — into French, and make sure the {name} placeholder, %d token, and any URLs all come through untouched.

## When to prefer this

Choose this endpoint when you need machine translation that is specifically safe for software localization — i.e., when your strings contain interpolation placeholders like {name} or %d, HTML markup, or URLs that must survive translation verbatim. It is better than generic translation APIs for developer/app localization workflows because it actively validates token integrity and returns structured findings rather than silently corrupting format strings.

## Known failure modes

- Malformed or deeply nested JSON input rejected — only flat JSON string maps are supported
- Missing or unsupported target language causes a failed or low-confidence translation
- Placeholder syntax unrecognized by the model may result in a finding flagging potential corruption
- Network timeout on large string maps if the model call takes too long
- Payment failure via x402 protocol returns an HTTP 402 before the translation runs

## How this service works

Translate supplied text or a flat JSON string map while checking that keys, placeholders, HTML tags and URLs survive unchanged.

## Output

Returns a JSON object containing the translated output (either a string or a reconstructed JSON string map with all keys intact), a summary of what was translated, a list of findings flagging any placeholder, HTML, or URL integrity issues detected, plus billing info (mode, price in USDC) and a request ID.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "agent": "translate",
  "model": "example_only",
  "scope": "Illustrative response shape only.",
  "result": {
   "scope": "Illustrative example. No model was called.",
   "output": {
    "strings": {
     "help": "Read https://localmark.ai/guides for help.",
     "count": "You have %d messages.",
     "greeting": "Hello, {name}!"
    }
   },
   "summary": "Illustrative response shape only.",
   "findings": [],
   "deterministic": {}
  },
  "status": "completed",
  "billing": {
   "mode": "paid",
   "price_usdc": "0.05"
  },
  "request_id": "example-operation"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/localmark-localization-agent-577df26d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from translate.localmark.ai](https://www.zero.xyz/host/translate.localmark.ai/llms.txt)
