{
  "format": "delx/intent-card/v1",
  "id": "batch-size-plan-api",
  "intent": "Batch Size Plan for an agent workflow",
  "title": "Batch Size Plan API for agents",
  "description": "Recommend a batch size from item count, hard cap, and average item bytes — call when batching micro-calls under item and byte caps. Use before side effects when composing multi-step agent jobs—the same loyalty/workflow demand band agents already pay for on Bazaar, but fully local. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.",
  "keywords": [
    "Batch Size Plan API",
    "Batch Size Plan for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/batch-size-plan-api",
  "machine_url": "https://commerce.delx.ai/intents/batch-size-plan-api.json",
  "recommendation": {
    "tool_name": "util_batch_size_plan",
    "service_name": "Delx Batch Size Plan",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/batch-size-plan",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "item_count": {
          "description": "Number of items to batch.",
          "type": "number"
        },
        "max_batch": {
          "description": "Hard maximum items per batch.",
          "type": "number"
        },
        "max_bytes": {
          "description": "Hard maximum bytes per batch.",
          "type": "number"
        },
        "avg_item_bytes": {
          "description": "Average bytes per item used for the byte-limited batch size.",
          "type": "number"
        }
      },
      "required": [
        "item_count"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "item_count": 1000,
      "max_batch": 50,
      "max_bytes": 100000,
      "avg_item_bytes": 2500
    },
    "example_output": {
      "schema": "delx/util-batch-size-plan/v1",
      "item_count": 1000,
      "recommended_batch_size": 40,
      "estimated_batches": 25,
      "max_batch": 50,
      "byte_limited_batch": 40
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/batch-size-plan -m POST -H 'x-delx-source: intent-card-batch-size-plan-api' --max-amount 0.003 -b '{\"item_count\":1000,\"max_batch\":50,\"max_bytes\":100000,\"avg_item_bytes\":2500}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-batch-size-plan-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/batch-size-plan"
  }
}
