Skip to main content
Custom pricing lets a builder define pricing for LLM models or non-LLM metrics. These endpoints accept your API key (one universal key covers every endpoint family). For how pricing changes flow into draft invoices and customer-facing usage, see Billing Workflow. Use these pages for the request and response shapes:

Supported methods

Pricing shapes

For LLM pricing, set provider and model and leave metric null. For non-LLM metric pricing, set metric and leave provider and model null. Field-name note: the custom-pricing surface uses _usd-suffixed fields (input_per_1m_usd, output_per_1m_usd, price_per_unit_usd), while the read-only global price book at Fetch pricing returns unsuffixed input_per_1m / output_per_1m. Both are USD; map accordingly when comparing the two.

Safety notes

  • Pricing changes affect margin reporting and billing workflows.
  • Use explicit effective dates.
  • Review unknown pricing tasks before billing customers.