Skip to main content
Pikarc uses model pricing entries to calculate cost_usd for each step. When a step is updated with token counts, the cost is calculated as:
If no pricing entry exists for a model, cost_usd remains null for that step.

List Model Pricing

Returns all active model pricing entries. Auth: JWT or API Key

Response 200

Response Fields


Upsert Model Pricing

Creates or updates pricing for a model. The model path parameter is the model identifier string. Auth: JWT or API Key

Request Body

Response 200

Returns the full ModelPricingResponse for the created or updated entry.

Example: Add pricing for Claude