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 per-record cost for a batch

GET
/v1/batch/:batchId/records/:recordId/cost
GET
/v1/batch/:batchId/records/:recordId/cost
$curl https://api.runtype.com/v1/batch/batchId/records/recordId/cost \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "batchExecutionId": "bch_9f8e7d6c5b4a3e2f1d0c",
3 "recordId": "rec_1234567890abcdef",
4 "totalCostUsd": 12.75
5}
Returns the total cost for a specific record within a batch execution.
Was this page helpful?
Previous

Get step results for a batch record

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

batchIdstringRequired
Batch execution ID
recordIdstringRequired
Record ID

Response

Record cost
batchExecutionIdstring
recordIdstring
totalCostUsddouble

Errors

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