A valid request URL is required to generate request examples{
"id": "<string>",
"status": "pending",
"total": 123,
"processed": 123,
"updated": 123,
"skipped": 123,
"unpriceable": 123,
"message": "<string>",
"last_error": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "openai",
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "openai",
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "openai",
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "openai",
"model_requested": "<string>",
"request_type": "<string>"
}
}Cancel log cost recalculation
Cancels the recalculation job selected by id, or the current in-flight recalculation
when id is omitted. Cancellation stops further batches; cost updates already committed
to log records are retained and are not rolled back. Logs that the job has not processed
remain unchanged.
The response uses the same job-status shape as the status endpoint and includes the
partial progress recorded at the time of the response. The worker may still be unwinding,
so poll the status endpoint with the returned id to obtain its final counters. If the
selected job has already reached a terminal state, the endpoint returns it unchanged.
A valid request URL is required to generate request examples{
"id": "<string>",
"status": "pending",
"total": 123,
"processed": 123,
"updated": 123,
"skipped": 123,
"unpriceable": 123,
"message": "<string>",
"last_error": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "openai",
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "openai",
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "openai",
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"provider": "openai",
"model_requested": "<string>",
"request_type": "<string>"
}
}Authorizations
Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <API key>.
Virtual keys, dashboard/user/session tokens, and x-api-key headers are not supported on management APIs.
Query Parameters
Optional recalculation job ID. Omit to cancel the current in-flight recalculation.
Response
Recalculation cancellation accepted, or the selected job was already terminal
Recalculate cost job status
Background job ID
Current job status
pending, running, completed, failed, cancelled, idle Total matching logs queued for recalculation
Logs processed so far
Logs updated with new costs
Logs skipped during processing
Subset of skipped logs whose pricing inputs could not be recovered, so their existing cost was left unchanged.
Optional progress message
Last error encountered by the job
Job start time
Last status update time
Was this page helpful?

