{
 "route": "/batch",
 "title": "Batch of 100",
 "price_usdc": 1,
 "amount_atomic": "1000000",
 "method": "POST",
 "url": "https://media.agentexchange.work/batch",
 "models": [
  "@cf/baai/bge-m3",
  "@cf/meta/m2m100-1.2b",
  "@cf/meta/llama-3.1-8b-instruct-fp8",
  "@cf/huggingface/distilbert-sst-2-int8"
 ],
 "limits": "1-100 items; ops embed (<=32 texts of 2,000 chars), translate (<=5,000 chars), summarize (<=20,000 chars), classify (<=5,000 chars); total text <= 500,000 characters; a single bad item fails the whole batch before payment",
 "request": {
  "method": "POST",
  "url": "https://media.agentexchange.work/batch",
  "headers": {
   "content-type": "application/json",
   "X-PAYMENT": "<base64 x402 payload signed for the 402 requirements>"
  },
  "body": {
   "items": [
    {
     "op": "translate",
     "text": "Where is the station?",
     "target_lang": "de"
    },
    {
     "op": "classify",
     "text": "Loved it, fast and simple."
    },
    {
     "op": "embed",
     "texts": [
      "one",
      "two"
     ]
    }
   ]
  }
 },
 "response_402_without_payment": {
  "x402Version": 1,
  "error": "Payment required",
  "accepts": [
   {
    "scheme": "exact",
    "network": "base",
    "maxAmountRequired": "1000000",
    "resource": "https://media.agentexchange.work/batch",
    "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "maxTimeoutSeconds": 300
   }
  ]
 },
 "response_200": {
  "count": 3,
  "ok_count": 3,
  "failed_count": 0,
  "results": [
   {
    "index": 0,
    "op": "translate",
    "ok": true,
    "result": {
     "translation": "Wo ist der Bahnhof?",
     "source_lang": "en",
     "target_lang": "de",
     "model": "@cf/meta/m2m100-1.2b"
    }
   },
   {
    "index": 1,
    "op": "classify",
    "ok": true,
    "result": {
     "label": "POSITIVE",
     "scores": {
      "POSITIVE": 0.9994,
      "NEGATIVE": 0.0006
     },
     "model": "@cf/huggingface/distilbert-sst-2-int8"
    }
   },
   {
    "index": 2,
    "op": "embed",
    "ok": true,
    "result": {
     "dims": 1024,
     "count": 2,
     "vectors": [
      "..."
     ],
     "model": "@cf/baai/bge-m3"
    }
   }
  ],
  "took_ms": 2600
 },
 "docs": "https://media.agentexchange.work/llms.txt"
}