Skip to main content
POST
/
v0
/
prices
Create
curl --request POST \
  --url https://api.paygentic.io/v0/prices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "billableMetricId": "<string>",
  "invoiceDisplayName": "<string>",
  "model": "standard",
  "paymentTerm": "instant",
  "properties": {
    "unitPrice": "<string>"
  }
}'
{
  "id": "price_l5m6n7o8p9q0r1s2",
  "object": "price",
  "billableMetricId": "bm_t3u4v5w6x7y8z9a0",
  "createdAt": "2024-01-18T11:20:00Z",
  "currency": "USD",
  "description": "Per-token pricing for Claude API",
  "invoiceDisplayName": "Claude Token Consumption",
  "model": "standard",
  "paymentTerm": "instant",
  "properties": {
    "unitPrice": "0.00002"
  },
  "unitAmount": "20000000",
  "updatedAt": "2024-01-18T11:20:00Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
billableMetricId
string
required

The unique identifier for the billable metric referred to by this price.

invoiceDisplayName
string
required

Line item label shown on customer invoices. Sample values: 'Claude Token Consumption', 'Storage Usage (GB)', 'Inference API Calls', 'Image Generation Count', 'Training Compute Hours', 'Data Transfer (TB)'

model
enum<string>
required

Pricing calculation model selection. Sample values: 'standard' for fixed per-unit pricing, 'dynamic' for variable-rate pricing, 'volume' for tiered volume discounts, 'percentage' for revenue share pricing

Available options:
standard,
dynamic,
volume,
percentage
properties
object
required

Standard pricing model

  • Option 1
  • Option 2
  • Option 3
  • Option 4
paymentTerm
enum<string>

Billing timing preference. Sample values: 'instant' charges immediately upon usage, 'in_arrears' charges at period end based on accumulated usage

Available options:
instant,
in_arrears

Response

Price created successfully

id
string

Unique identifier for a price

object
enum<string>
default:price
Available options:
price
billableMetricId
string

Unique identifier for a billable metric

createdAt
string<date-time>
invoiceDisplayName
string
model
enum<string>
Available options:
standard,
dynamic,
volume,
percentage
paymentTerm
enum<string>
Available options:
instant,
in_arrears
properties
object

Standard pricing model

  • Option 1
  • Option 2
  • Option 3
  • Option 4
updatedAt
string<date-time>