Billing API
Authentication
Authorization: Bearer psk-<accessKey>-<secretKey>Endpoints
Get Current Invoice
GET /api/v1/billing/invoices/currentcurl -H "Authorization: Bearer psk-<accessKey>-<secretKey>" \
https://api.parasail.io/api/v1/billing/invoices/current{
"id": "3fa1c306-5258-5ac0-8905-8b90c6a6396f",
"status": "DRAFT",
"type": "USAGE",
"total": 52.89,
"start_timestamp": "2026-04-01T00:00:00+00:00",
"end_timestamp": "2026-05-01T00:00:00+00:00",
"line_items": [
{
"name": "Serverless Input (Per Million Tokens)",
"quantity": 1.49,
"total": 0.75,
"unit_price": 50.0,
"type": "usage",
"starting_at": "2026-04-01T00:00:00+00:00",
"ending_before": "2026-05-01T00:00:00+00:00",
"pricing_group_values": {
"DeploymentName": "my-deployment"
},
"presentation_group_values": {
"ModelName": "meta-llama/Llama-3.1-8B-Instruct"
}
},
{
"name": "Dedicated GPU Hours",
"quantity": 0.33,
"total": 52.80,
"unit_price": 160.0,
"type": "usage",
"starting_at": "2026-04-01T00:00:00+00:00",
"ending_before": "2026-05-01T00:00:00+00:00",
"pricing_group_values": {
"gpuType": "A10080GB"
}
}
],
"issued_at": "2026-05-02T00:00:00+00:00",
"billable_status": "billable"
}List Invoice Breakdowns
Parameter
Required
Description
List Invoices
Parameter
Required
Description
Get Invoice by ID
Parameter
Required
Description
Invoice Object
Field
Type
Description
Line Item Object
Field
Type
Description
Error Responses
Status Code
Description
Last updated