Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
const { result, error } = await unprice.runs.get({ runId: "brun_123" }); if (error) { console.error(error.message); return; } console.log(result.remainingAmountMinor);
{ "runId": "brun_123", "status": "running", "customerId": "cus_1234567890", "budgetAmountMinor": 5000, "consumedAmountMinor": 1200, "remainingAmountMinor": 3800, "currency": "USD", "workloadType": "workflow", "workloadId": "wf_summary_123", "traceId": "trace_123", "parentRunId": null }
Get the current status and budget for a run.
runs.get