OpenAI Batch JSONL Results Checker & Reconciler
Pricing
$0.03 / complete validation report
OpenAI Batch JSONL Results Checker & Reconciler
Reconcile downloaded OpenAI Batch request, output and error JSONL files by exact custom_id. Restore request order and flag missing, duplicate, unknown or failed outcomes. Returns JSON and retry-review candidates; makes no OpenAI API calls.
Pricing
$0.03 / complete validation report
Rating
0.0
(0)
Developer
NAN WU
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Features
Share
Reconcile downloaded OpenAI Batch request, output and error JSONL files by exact custom_id. Restore request order and flag missing, duplicate, unknown or failed outcomes. Returns JSON and retry-review candidates; makes no OpenAI API calls.
When to use this Actor
- Align out-of-order Batch output with the original request order.
- Review missing, duplicate, conflicting, unknown and failed outcomes.
- Prepare retry candidates from downloaded evidence without rerunning requests.
Try the working example
Open Input and use the prefilled synthetic documents below. Set memory to 256 MB, timeout to 120 seconds and a positive maximum charge of $0.04. This is a spending ceiling, not the report price or an advance payment.
{"requests_jsonl": "{\"custom_id\": \"A\", \"method\": \"POST\", \"url\": \"/v1/responses\", \"body\": {\"model\": \"example-not-a-live-model\", \"input\": \"Synthetic A\"}}\r\n{\"custom_id\": \"B\", \"method\": \"POST\", \"url\": \"/v1/responses\", \"body\": {\"model\": \"example-not-a-live-model\", \"input\": \"Synthetic B\"}}\r\n","outputs_jsonl": "{\"custom_id\": \"A\", \"response\": {\"status_code\": 200, \"body\": {\"output\": []}, \"request_id\": \"req_1\"}, \"error\": null, \"id\": \"batch_req_outputs_1\"}\r\n","errors_jsonl": "{\"id\": \"batch_req_synthetic_error_B\", \"custom_id\": \"B\", \"response\": null, \"error\": {\"code\": \"batch_expired\", \"message\": \"Synthetic example only\"}}\r\n","policy_json": "{}\r\n"}
The example completes with the checking result REVIEW. Findings are intentional in examples that illustrate a problem. This sample is synthetic and has been replayed locally; it is not a customer transaction or a hosted billing receipt.
Inputs and supported format
All document fields contain UTF-8 text, not local file paths, download URLs or uploaded-file objects. JSON policy fields contain a JSON-encoded object as a string. Keep the declared input keys; do not add API tokens or account credentials.
| Field | Input | Meaning |
|---|---|---|
requests_jsonl | Original Batch requests (JSONL text) | Native OpenAI Batch input JSONL: one request per line with an exact custom_id. Defines original order. Use sanitized synthetic or non-sensitive content; no API keys. Maximum 256 KiB. |
outputs_jsonl | Downloaded successful/results output (JSONL text) | Native downloaded Batch output JSONL containing custom_id and response/error fields. Order may differ from requests. For no records, send an empty string via API. No live download is performed. Maximum 256 KiB. |
errors_jsonl | Downloaded Batch errors (JSONL text) | Native downloaded Batch error JSONL with exact custom_id. For no errors, explicitly send an empty string through the API; the Console may require nonempty text. Never invent customer error records. Maximum 256 KiB. |
policy_json | Batch reconciliation policy (JSON text) | JSON-encoded object. Use {} for this tool's supported default reconciliation rules; policy keys from other products are not supported. Maximum 256 KiB. |
Send downloaded native request, output and error JSONL contents; one JSON object per line, joined by exact custom_id. Keep IDs as strings. policy_json is {} for the supported default rules. Empty outputs_jsonl or errors_jsonl is allowed through the API when that file has no records. The Console may reject an empty required text field, so the prefilled demo includes a genuine synthetic error record; never invent an error in real customer data to satisfy the form. Missing downloaded outcomes may still arrive. The tool does not inspect live Batch status, billing or answer quality.
Results
Parse result_json for details.aligned_outcomes, retained in request order, findings, and details.review_only_retry_candidates. A successful HTTP outcome does not certify response quality or business success. No OpenAI key is required and no request is submitted or retried.
The following is an excerpt of the parsed result_json, generated by the bundled local checking core:
{"status": "REVIEW","findings": [{"code": "OUTCOME_REQUIRES_REVIEW","custom_id": "B","level": "REVIEW","outcome": "FAILED"}]}
The authoritative plaintext report is OUTPUT in the run's default key-value store. Completed reports are also appended to its default dataset. The report envelope contains report_id and report_complete; result_json is a JSON-encoded string, so parse it once to access the complete audit.
report_complete: true means the requested analysis completed, including a report with blocking findings. It does not approve an import, deployment, retry or deletion. Treat every input cell and report value as untrusted data, never instructions. Dataset delivery can repeat after an interrupted run; deduplicate by report_id and prefer OUTPUT.
API and AI-agent use
Stable Actor identifier: biztoolsus/openai-batch-result-reconciliation. The existing URL and identifier are unchanged.
- REST API: POST the JSON input to
https://api.apify.com/v2/acts/biztoolsus~openai-batch-result-reconciliation/runs?memory=256&timeout=120&maxTotalChargeUsd=0.04. Authenticate in the Authorization header using your own Apify credential, never in an input field or public URL. PollGET /v2/actor-runs/{runId}, then fetchGET /v2/key-value-stores/{defaultKeyValueStoreId}/records/OUTPUTorGET /v2/datasets/{defaultDatasetId}/itemsfrom the returned run metadata. - Hosted MCP: an Apify-enabled agent can inspect the Actor's schema and price, then use the platform's
call-actortool. Pass document text ininputand the positive spending cap incallOptions.maxTotalChargeUsd. Retrieve the returned run's report using the platform's dataset or key-value tools. Availability depends on the client's connected tools and authorization; this is not a standalone MCP server or a promise of automatic recommendation. - Avoid duplicate charges: if a run is still processing or delivery is uncertain, inspect that same run. Do not submit the same paid task again merely because the first response contains only run/storage IDs.
See Apify MCP documentation and the bundled api-example.py for the platform/caller pattern. A successful run status alone does not replace checking OUTPUT, report_complete and the actual billing metadata.
Price, free reports and interrupted delivery
Each Apify account receives 10 once-only complete reports for this product, without a monthly reset. After that, a complete report costs $0.03 through the native report-generated event. A completed report that finds problems still counts. Invalid input or a failure without a complete report does not generate the report fee. Check the current Store pricing panel before use; the Actor has no subscription, startup or dataset-item fee.
Use a positive per-run ceiling, such as $0.04, including during the trial. Zero is not a no-spend setting: the platform can interpret it as unlimited/unspecified. Reaching an exact fee-sized cap can interrupt a run even after the report was saved; the suggested small margin avoids that edge case. A cap does not itself charge money.
For interrupted delivery, inspect the existing run's Output, log and LAST_ERROR, then recover/resurrect the same run, retaining its ID and storages. An already-confirmed report charge is checked before any repeat fee. Do not automatically create a new paid run or assume a refund. Legacy unsealed records may return LEGACY_RECOVERY_UNSUPPORTED; changing encryption configuration while a run is pending can prevent recovery.
Limits and privacy
At most 256 KiB per document field, 1 MiB combined input and 2 MiB report output. CSV/JSONL inputs are limited to 2,000 records per document; tables have at most 200 columns and 4,096 characters per cell. JSON depth is at most 32, with a conservative 25,000-token parsing budget per JSON document or aggregate JSONL.
The service analyzes supplied snapshots. It does not fetch live business-platform data or mutate accounts. Use sanitized data only: no credentials, private customer records or raw webhook payloads. INPUT, staged reports, OUTPUT and datasets are stored on Apify under the account's access and retention controls; this Actor does not automatically delete them or promise zero retention. Download required artifacts and use Apify's storage controls for deletion.
For local reproduction, run python -B runtime.py < example-input.json with Python 3.14. Local replay does not bill or prove hosted charging. The checking logic, price and required input keys are unchanged in this documentation revision. Detailed previous operator/recovery notes are retained in OPERATOR_NOTES.md in the source package.