Api Endpoint

AgentIndex Translate

Translate up to 200 text segments in a single call - the same result that would otherwise take 200 separate calls to translate a whole file. Markdown, HTML and {x} placeholders preserved per segment, order and count kept intact, source language auto-detected, automatic fallback across multiple models for uptime, providers that train on submitted prompts excluded. A single string also works. No account, no API key. Try GET /translate/sample.

Open interactive test console

Offering

Provider
x402.agentindex.world
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
General Utilities
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.agentindex.world/translate
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
translate text, text translation, batch translate, bulk translation, localization, preserve placeholders, translate a file, multilingual, machine translation

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d"
  }
]

Observed health

Status
Reachable
Latest latency
1191 ms
Average latency
1523 ms
HTTP status
405
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "properties": {
        "text": {
          "description": "Text to translate - a single string, or an array of up to 200 segments to translate together in one call (batch/bulk translation), preserving order and count.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1,
              "maxItems": 200
            }
          ]
        },
        "target_lang": {
          "type": "string",
          "description": "Target language as an ISO 639-1 code, e.g. 'en', 'fr', 'ja'."
        },
        "source_lang": {
          "type": "string",
          "description": "Source language code. Omit to auto-detect."
        },
        "preserve_format": {
          "type": "boolean",
          "description": "Keep markdown syntax, HTML tags and {x}/{{x}} placeholders unchanged, translating only the surrounding natural-language text - useful for localizing UI strings or templated content."
        }
      },
      "required": [
        "text",
        "target_lang"
      ]
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "properties": {
            "preserve_format": {
              "description": "Keep markdown syntax, HTML tags and {x}/{{x}} placeholders unchanged, translating only the surrounding natural-language text - useful for localizing UI strings or templated content.",
              "type": "boolean"
            },
            "source_lang": {
              "description": "Source language code. Omit to auto-detect.",
              "type": "string"
            },
            "target_lang": {
              "description": "Target language as an ISO 639-1 code, e.g. 'en', 'fr', 'ja'.",
              "type": "string"
            },
            "text": {
              "description": "Text to translate - a single string, or an array of up to 200 segments to translate together in one call (batch/bulk translation), preserving order and count.",
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 200,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          "required": [
            "text",
            "target_lang"
          ]
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "detected_source_lang": {
              "description": "Auto-detected source language, when not supplied."
            },
            "model_served": {
              "description": "Neutral model tag for this call (also present on x402_receipt.model_served)."
            },
            "target_lang": {
              "type": "string"
            },
            "text": {
              "description": "The original input text or segments."
            },
            "translated_text": {
              "description": "Translated text - a string, or an array aligned with the input segments for batch requests."
            },
            "x402_receipt": {
              "description": "Billing and provenance receipt, including segments_processed for batch calls.",
              "type": "object"
            }
          },
          "required": [
            "target_lang",
            "translated_text"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}