Create custom pricing
API reference
Create custom pricing
Create a custom pricing row for an LLM model or non-LLM metric.
POST
Create custom pricing
Creates a custom pricing row. This endpoint requires a pricing-admin scoped API key and records an audit log entry.
For LLM pricing, send
Request
provider and model and leave metric null:
Response
Notes
- Set either
(provider + model)ormetric, not both. - Duplicate effective pricing rows return a validation error.
- Pricing changes can affect margin reports and billing workflows.