SerenAI

Pay Per Call Agentic Commerce

CostEstimate

Cost estimate breakdown

Properties

PropertyTypeRequiredDescription
asset_symbol string Yes Asset symbol (e.g., USDC, USDT)
base_cost string Yes Base cost in asset units (as decimal string)
estimated_rows integer Yes Estimated rows to be returned
markup_multiplier string Yes Markup multiplier
min_charge string Yes Minimum charge in asset units
total_cost string Yes Total cost in asset units (as decimal string)
total_cost_atomic integer Yes Total cost in atomic units
View JSON Schema
{
  "type": "object",
  "description": "Cost estimate breakdown",
  "required": [
    "estimated_rows",
    "asset_symbol",
    "base_cost",
    "markup_multiplier",
    "min_charge",
    "total_cost",
    "total_cost_atomic"
  ],
  "properties": {
    "asset_symbol": {
      "type": "string",
      "description": "Asset symbol (e.g., USDC, USDT)"
    },
    "base_cost": {
      "type": "string",
      "description": "Base cost in asset units (as decimal string)"
    },
    "estimated_rows": {
      "type": "integer",
      "format": "int64",
      "description": "Estimated rows to be returned"
    },
    "markup_multiplier": {
      "type": "string",
      "description": "Markup multiplier"
    },
    "min_charge": {
      "type": "string",
      "description": "Minimum charge in asset units"
    },
    "total_cost": {
      "type": "string",
      "description": "Total cost in asset units (as decimal string)"
    },
    "total_cost_atomic": {
      "type": "integer",
      "format": "int64",
      "description": "Total cost in atomic units"
    }
  }
}