Translate text
genesis402_translatePaid ($0.006 USDC). Translate text into any major language while preserving names, numbers and formatting. Use for customer messages, documents or UI strings. To only identify a text's language call the language-detect endpoint through genesis402_call. Returns the translation as JSON. Payment: call once without payment_signature to get the exact price quote (nothing is charged or signed), then call again with the signed payment to receive the result and settlement details.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"to": "<to>"
},
"name": "genesis402_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target language as a name or ISO 639-1 code, e.g. 'Spanish' or 'es'. | |
| from | No | Source language as a name or ISO code. Omit to auto-detect. | |
| text | Yes | The text to translate, up to 8,000 characters. | |
| payment_signature | No | Optional. An x402 v2 payment you signed for this call's quote (the PAYMENT-SIGNATURE header value). Omit to get the price quote first; nothing is charged without it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | QUOTE_ONLY: price quote only, nothing signed or charged. PAID: the call was paid and result holds the data. FREE: the endpoint answered without payment. | |
| paid | Yes | true only when a payment was settled for this call. | |
| price | No | The Base USDC quote. Present on QUOTE_ONLY and on PAID calls made by a local payer; null when the rail offered no Base USDC lane or the caller signed the payment. | |
| result | No | PAID or FREE: the endpoint's JSON result. | |
| seller | No | Who is paid and who issues the receipt: the seller's ERC-8004 agent id, registry and receipts feed. | |
| resource | No | QUOTE_ONLY: the full URL of the paid resource. | |
| how_to_pay | No | QUOTE_ONLY: how to sign and resend the call. | |
| settlement | No | PAID: decoded PAYMENT-RESPONSE settlement (transaction hash, network, payer), or null if the rail sent none. | |
| receipts_url | No | Public receipts feed, where a paid call's signed receipt can be looked up. | |
| what_you_get | No | QUOTE_ONLY: the rail's description of what the payment buys. | |
| payment_required_b64 | No | QUOTE_ONLY: the raw base64 PAYMENT-REQUIRED header, to sign with any x402 v2 client. | |
| also_accepted_networks | No | QUOTE_ONLY: every network the 402 challenge accepts. |