---
title: "Multi-language Translation — $0.03"
method: POST
path: "/v1/ai/translate"
tags: ["ai"]
---

# Multi-language Translation — $0.03

`POST /v1/ai/translate`

## Request

- Base URL: `https://x402.asterpay.io`
- URL: `https://x402.asterpay.io/v1/ai/translate`
- Auth: one of:
  - API key in header `PAYMENT-SIGNATURE`
  - HTTP payment

Translate text between 50+ languages.

## Request body

- object
  - `text` string, required: Text to translate
  - `target_language` string, required: ISO 639-1 code (e.g. fi, de, fr)
  - `source_language` string: Source language (auto-detected if omitted)

## Response `200`

Translation

- object
  - `translated_text` string, required
  - `target_language` string

## Other responses

- `402`: Payment Required — pay via x402 or MPP (USDC on Base, Ethereum, Polygon, Arbitrum, Optimism or SKALE), then retry. See the WWW-Authenticate and Payment-Required response headers, or the `accepts` array below. The example is the exact body the runtime returns (minus per-request extras such as example_response and extensions.bazaar).

---

[API](https://skmtc.dev/asterpay/apis/asterpay-data-api.md) · [All operations](https://skmtc.dev/asterpay/apis/asterpay-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/asterpay/apis/asterpay-data-api/revisions/97b4ab464b3b?raw)
