For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • POSTCancel a batch execution
      • POSTSubmit a batch flow execution
      • GETGet batch execution status
      • GETGet batch summary
      • GETGet per-record cost for a batch
      • GETGet step results for a batch record
      • GETGet batch execution total cost
      • GETWebSocket for real-time batch updates
Dashboard
LogoLogo
Runtype APIBatch

Get batch execution total cost

GET
/v1/batch/:id/cost
GET
/v1/batch/:id/cost
$curl https://api.runtype.com/v1/batch/id/cost \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "batchExecutionId": "b7f3c9d2-4a1e-4f8b-9c3d-2e5a7f6b8c9d",
3 "totalCostUsd": 125.75
4}
Returns the total cost across all records, flow steps, agent executions, and nested subagents.
Was this page helpful?
Previous

WebSocket for real-time batch updates

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired
Batch execution ID

Response

Batch cost
batchExecutionIdstring
totalCostUsddouble

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error