Skip to main content
POST
Create Cost Model
Create a new cost model for margin calculations. Auth: sk_ only
All cost model endpoints require a secret key (sk_). Publishable keys will receive a 403 Forbidden response.
string
required
Human-readable name for the cost model (for example, “Large Model Token Cost”)
string
required
feature code this cost model applies to
number
required
Cost per unit in cents
string
Provider model identifier used in your usage events