x402_set_pricing
Configure pricing for an existing endpoint with fixed, dynamic, tiered, or resource-based strategies. Set base price, caps, and tiers to control costs.
Instructions
Configure pricing for an existing endpoint. Supports fixed, dynamic, tiered, and resource-based pricing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Endpoint path to configure | |
| perKB | No | Additional price per KB response (for dynamic pricing) | |
| tiers | No | Price tiers (for tiered pricing) | |
| maxPrice | No | Maximum price cap | |
| minPrice | No | Minimum price floor | |
| perToken | No | Additional price per AI token (for dynamic pricing) | |
| basePrice | Yes | Base price in USD | |
| pricingType | Yes | Type of pricing strategy |