{
 "x402Version": 1,
 "name": "Translate: 100 languages for agents",
 "description": "Machine translation between 100 languages (Meta M2M100 on Workers AI): one text per call or a batch of up to 20 strings, with the language names resolved; for agents that localize, read foreign sources or write to users in their language. Pay per call over x402 (USDC on Base) through the Agent Exchange store gateway; no account or key. Free sample: https://translate.agentexchange.work/sample.json",
 "payment": {
  "rail": "x402",
  "gateway": "https://store.agentexchange.work/gw/translate",
  "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c"
 },
 "free_resources": [
  "https://translate.agentexchange.work/",
  "https://translate.agentexchange.work/sample.json",
  "https://translate.agentexchange.work/languages.json",
  "https://translate.agentexchange.work/.well-known/x402"
 ],
 "count": 2,
 "resources": [
  {
   "resource": "https://translate.agentexchange.work/text",
   "type": "http",
   "method": "GET",
   "x402Version": 1,
   "price_usd": 0.002,
   "mimeType": "application/json",
   "description": "Translate one text (up to 2,000 characters) from a source language to a target language (ISO 639-1 codes such as en, es, fr, de, zh, ja, ar; 100 supported, list at https://translate.agentexchange.work/languages.json). Returns the translation, the languages and the character count. Pay 0.002 USDC through https://store.agentexchange.work/gw/translate/text?text=Hello+world&from=en&to=es",
   "accepts": [
    {
     "scheme": "exact",
     "network": "base",
     "maxAmountRequired": "2000",
     "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     },
     "resource": "https://translate.agentexchange.work/text",
     "description": "Translate one text (up to 2,000 characters) from a source language to a target language (ISO 639-1 codes such as en, es, fr, de, zh, ja, ar; 100 supported, list at https://translate.agentexchange.work/languages.json). Returns the translation, the languages and the character count. Pay 0.002 USDC through https://store.agentexchange.work/gw/translate/text?text=Hello+world&from=en&to=es",
     "mimeType": "application/json",
     "outputSchema": {
      "input": {
       "type": "http",
       "method": "GET",
       "queryParams": {
        "text": {
         "type": "string",
         "required": true
        },
        "from": {
         "type": "string",
         "required": true,
         "description": "source language code"
        },
        "to": {
         "type": "string",
         "required": true,
         "description": "target language code"
        }
       }
      }
     }
    }
   ],
   "tags": [
    "translation",
    "translate",
    "language",
    "i18n",
    "nlp",
    "ai"
   ]
  },
  {
   "resource": "https://translate.agentexchange.work/batch",
   "type": "http",
   "method": "POST",
   "x402Version": 1,
   "price_usd": 0.01,
   "mimeType": "application/json",
   "description": "Translate up to 20 strings (each up to 1,000 characters) in one call: POST JSON {texts: [...], from, to}; returns the translations in order. Pay 0.01 USDC through https://store.agentexchange.work/gw/translate/batch",
   "accepts": [
    {
     "scheme": "exact",
     "network": "base",
     "maxAmountRequired": "10000",
     "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     },
     "resource": "https://translate.agentexchange.work/batch",
     "description": "Translate up to 20 strings (each up to 1,000 characters) in one call: POST JSON {texts: [...], from, to}; returns the translations in order. Pay 0.01 USDC through https://store.agentexchange.work/gw/translate/batch",
     "mimeType": "application/json",
     "outputSchema": {
      "input": {
       "type": "http",
       "method": "POST",
       "bodyType": "json",
       "bodyFields": {
        "texts": {
         "type": "array",
         "required": true
        },
        "from": {
         "type": "string",
         "required": true
        },
        "to": {
         "type": "string",
         "required": true
        }
       }
      }
     }
    }
   ],
   "tags": [
    "translation",
    "translate",
    "language",
    "i18n",
    "nlp",
    "ai"
   ]
  }
 ]
}