Batch Inference

Extract structured JSON from unstructured text

Run offline batch extraction over a set of documents or text records, producing structured JSON output per a defined schema using an open model.

Estimated $0.002–$0.02 per record · Scales with record count and length — roughly 200–800 records/min

What inputs you need

  • Text/document files or JSONL of records
  • Target JSON schema
  • Model choice

What Badgr returns

  • JSONL of extracted structured records
  • Per-record success/failure log
  • Single receipt on completion

Recommended GPU routes

Estimated cost: $0.002–$0.02 per record · Estimated runtime: Scales with record count and length — roughly 200–800 records/min

Example command

badgr run "python batch_extract.py --input records.jsonl --schema schema.json" \
  --gpu A100_40GB \
  --max-cost 15 \
  --max-runtime 90

Common setup failures Badgr avoids

Model returns malformed JSON on edge-case inputs — output is validated against the schema per record, and failures are logged instead of silently dropped.

Nested or deeply structured schemas time out per-record — the extraction prompt is split into sub-fields for complex schemas instead of one large generation call.

Ready to run this?

Launch from the dashboard, CLI, or Compute API. Max-cost protection included.