Use cases

Explore how Pea can route requests, extract document fields and support decisions. These 12 workflows show industry examples, step-by-step interactions and API previews.

Limited hosted early access. These Beta workflows are live on /v1beta with Pea’s native reference runtime. Create your account for manual approval, then sign in to the console. Pea decision and document extraction workflows; text only, image input is refused (see also Pea extraction documentation). Hosted Choice, Noul and Score probabilities use temperature 1.334. Capacity is limited, with no uptime guarantee yet. Choice, Noul and Score on /v1/predict, plus Jev and Cloudflare-compatible formats, are live on GA /v1. Beta availability does not establish quality or promotion to /v1. Example values are illustrative, and formats may change.

Live Beta modes: risk targets with calibrations, alignments, estimate, annotate, states, feedback, given, bind, flows, effort (standard only), rankings (quality gate failed) and extraction (hosted Beta). States require organization retention opt-in; Vej stores the history encrypted. Batch jobs use approved EU storage hosts and support 2K (2,048) tokens per complete row.

The APIs

Select an API to see its use cases and an example.

  1. 01Target error rateSet an error target and send uncertain cases to a person.
  2. 02Show the evidenceFind source sentences for each claim.
  3. 03Number with a rangeGet a middle value and a low and a high estimate.
  4. 04Label every part of a documentAnswer questions for each part of a document.
  5. 05Watch a conversationCheck questions after each new message.
  6. 06Use your correctionsRecalibrate your temperature and threshold using checked labels.
  7. 07If so, then…Ask a question that assumes a specified outcome.
  8. 08Pick the correct recordSelect a record from your list, or return no record.
  9. 09Step-by-step checksApply checks in sequence and retain each result.
  10. 10Rank with probabilitiesGet a first-place probability and a top-group probability.
  11. 11Select effortSelect the effort for each question.
  12. 12Extract fields from documentsExtract structured typed data with cited evidence spans.

Beta · Hosted early access

1. Target error rate

Set a target error rate with labeled examples. Pea returns an answer or does not answer. A person reviews each case without an answer.

SOFTWARE ENGINEERING

API change review

A release engineer sends a code change and an error target. Pea returns an answer or does not answer. The engineer decides whether to approve the change.

CUSTOMER SUPPORT & E-COMMERCE

Refund email queue

A shop sends a refund email and an error target. Pea returns a category or does not answer. An agent decides each refund from the result.

HEALTHCARE ADMINISTRATION

Hospital claim categories

A hospital clerk sends a claim record and an error target. Pea returns an admission category or does not answer. A coder checks the result before claim submission.

Example · API change review

Your team or systemPea

  1. Engineer

    The engineer sets a 5 percent error target for the labeled API changes. Pea returns an ID for that target.

    Target saved
  2. Pea

    A new change removes the public POST /orders endpoint. Pea returns an API-break probability of 0.98.

    API break0.98
    Answer returned
  3. Engineer

    The engineer decides whether to approve the change.

    Engineer decides
  4. Pea

    Another change alters an undocumented default page size. Pea does not answer. The API-break probability is 0.58.

    API break0.58
    Sent to the engineer
  5. Engineer

    The engineer reads the change. The engineer decides whether to approve it.

    Engineer decides
Beta requirements and technical notes

Hosted Beta fits a temperature and conservative threshold from separate labeled-request cohorts (at least 500 independent risk-fit groups). Risk uses a Learn-then-Test-style simultaneous binomial procedure, distinct from classical conformal risk control. Its stated 95% confidence requires independent, identically distributed (i.i.d.) calibration groups from the deployment population; exchangeability alone is insufficient. Group fingerprints and passing customer check rows do not establish that assumption. Held-out population and target evaluation is pending; neither production promotion gate has passed. Durable fits require explicit retention consent and gateway encryption. The examples illustrate behavior, not measured quality.

POST /v1beta/calibrations · POST /v1beta/predict · risk

Send native Choice or Noul requests with their zero-based labels and independent group fingerprints. Use separate temperature-fit and risk-fit cohorts. Supply your population fingerprint; the server scores requests and fills the checkpoint and runtime binding. Scoring both cohorts bills the actual candidate-row tokens. A transient signed token is the default; no labels or documents are retained.

Risk prediction returns accept or abstain, confidence, sample size, expected answer rate, calibration identity and a drift warning. A drift warning checks the last 200 accept/abstain decisions after every decision from decision 200 onward. The bounded ring stores only booleans and a count; it cannot certify actual error without live labels. A worker restart requires a fresh fit.

For a durable fit, enable calibrations retention and set persist: true. Read or delete its ID through /v1beta/calibrations/{id}. Revocation deletes your stored fits. Both production promotion gates remain closed until held-out population and target gates pass.

All APIs

Beta · Hosted early access · Native sentence baseline

2. Show the evidence

Send a statement and source documents. Pea assesses the statement independently against each source sentence and returns evidence probabilities and source offsets.

SOFTWARE ENGINEERING

Release note evidence

A release engineer sends one release note statement and merged change titles. Pea returns evidence probabilities and offsets for each source sentence. The engineer checks the statement before publication.

CUSTOMER SUPPORT & E-COMMERCE

Return policy answers

A support agent sends one statement from a draft reply and the return policy. Pea returns evidence probabilities and offsets for each policy sentence. The agent checks the statement before the customer receives it.

EDUCATION

Course guide summaries

A course coordinator sends one statement from a course summary and the approved guide. Pea returns evidence probabilities and offsets for each guide sentence. The coordinator checks the statement before publication.

Example · Return policy answers
  1. Customer

    How long do I have to return my headphones?

  2. Agent · request

    The agent sends one statement: “Refunds arrive within two days.” The policy source is “Returns are free for 30 days. We refund to the original payment method.”

  3. Pea

    For the statement, Pea returns a probability of 0.08 for source policy, start 0, end 29. The agent uses those offsets to display “Returns are free for 30 days.” Offsets are zero-based Unicode code points, with an exclusive end.

    Sentence evidence0.08
    Source sentence assessed
  4. Pea

    Pea independently assesses the same statement against source policy, start 30, end 71. The agent displays “We refund to the original payment method.” from those offsets.

    Sentence evidence0.12
    Source sentence assessed
  5. Pea

    Neither sentence has a probability above 0.5, so the request returns no_evidence. This does not prove the statement false.

    no_evidence
  6. Agent · review

    The agent checks the refund time before including it in the reply.

Beta requirements and technical notes

Beta on the hosted API and native local server. Noul scores each source sentence independently; no span head or three-way verdict is trained. Illustrations above are not measured results. A probability above 0.5 selects evidence; no selected sentence returns no_evidence, which does not prove the statement false. No source documents are stored. Further evaluation is required before production /v1/alignments or a future hosted vLLM runtime.

POST /v1beta/alignments

Offsets are zero-based Unicode code points, end-exclusive, in the original source. Slice the caller-owned source to display text. Responses never generate quotations. Each sentence is assessed using only that sentence as state; other sources cannot change its model input. Probabilities use temperature 1.334 and are not a measured error rate for this population.

{
  "mode": "alignments",
  "input": {
    "question": "Returns are free for 30 days.",
    "sources": [{"id": "policy", "text": "Returns are free for 30 days."}]
  }
}

The response identifies the baseline, evidence or no_evidence outcome, and every scored sentence with source_id, start, end and probability. Metadata reports the base checkpoint digest and an empty parts list; usage reports all processed tokens as reread_tokens. Empty sources return no sentences and zero tokens. There is no probability distribution over an invented absent-evidence class.

All APIs

Beta · Hosted early access · Native Score-bin baseline

3. Number with a range

Ask for a quantity. You supply ordered value bins and units. Pea returns a middle value, a low estimate, and a high estimate.

SOFTWARE ENGINEERING

Code review schedule

A team lead sends the change size and the review queue. Pea returns a middle value, a low estimate, and a high estimate for the review hours. The lead uses the values to plan reviewer time.

LOGISTICS & SUPPLY CHAIN

Supplier delay estimates

A planner sends a supplier email about a late delivery. Pea returns a middle value, a low estimate, and a high estimate for delay days. The planner checks the estimates before any order date changes.

BANKING & INSURANCE

Repair estimate review

A claims agent sends a repair report. Pea returns a middle value, a low estimate, and a high estimate for the cost. An assessor checks the report and decides the payment amount.

Example · Code review schedule

Your team or systemPea

  1. Team lead

    The lead sends the change size and the review queue. The lead sets the limits at 0 hours and 120 hours.

  2. Pea

    Pea returns a middle value of 12 hours. The low estimate is 3 hours. The high estimate is 30 hours.

    Estimates returned
  3. Team lead

    The lead uses 12 hours for the plan. The lead keeps 30 hours as the high estimate.

    Plan confirmed
Beta requirements and technical notes

Beta on the hosted API and native local server. Score assesses caller-supplied value bins; code computes discrete q10, median and q90. No numeric sidecar is trained. Examples are illustrative, not measured. No tested population or calibrated coverage exists; the nominal 80% interval is not a prediction guarantee. Inputs are never retained. Further evaluation is required before production /v1/modes/predict or a future hosted vLLM runtime.

POST /v1beta/predict · estimate

{
  "mode": "estimate",
  "input": {
    "state": "A small code review with two reviewers.",
    "questions": {
      "review_hours": {
        "type": "estimate",
        "question": "How many work hours remain?",
        "unit": "hours",
        "values": [0, 3, 12, 30, 120]
      }
    }
  }
}

Supply 2–10 strictly increasing finite values within ±1e12. The response returns a median estimate and quantiles labeled 0.1, 0.5 and 0.9, with the same unit. Values remain within your supplied bins; discrete bins can yield identical lower and upper bounds. Metadata reports the base checkpoint digest, with no executed sidecars. Usage charges every processed candidate token as full re-read work. Calibration status is uncalibrated and tested population is null. Unsupported backends return 503 unsupported_mode before inference.

All APIs

Beta · Hosted early access · Full re-read

4. Label every part of a document

Send a document. Pea can answer your questions per sentence using caller-supplied spans, or per word, line or paragraph, with the full document as context.

SOFTWARE ENGINEERING

Defect probability by section

A developer sends a code change in sections. Pea returns a defect probability for each section. The developer checks each result before approval.

MANUFACTURING

Safety instructions in a service guide

A technician sends a machine service guide. Pea returns a safety instruction probability for each paragraph. The technician compares each result with the approved safety checklist.

PUBLIC SECTOR

Permit file sections

A clerk sends a permit application in sections. Pea returns a probability that a section is a site plan, an identity document, or a payment receipt. The clerk checks each result. The clerk makes each permit decision.

Example · Safety instructions in a service guide

Your team or systemPea

  1. Technician

    The technician sends two paragraphs from a service guide.

  2. Pea

    The first paragraph says: disconnect the power before service. Pea gives a 0.97 probability that it is a safety instruction.

    Safety instruction: paragraph 10.97
    High probability
  3. Pea

    The second paragraph says: record the service date in the log. Pea gives a 0.12 probability that it is a safety instruction.

    Safety instruction: paragraph 20.12
    Low probability
  4. Technician

    The technician checks both results against the approved safety checklist.

    Checklist reviewed
Beta requirements and technical notes

Beta on the hosted API and native local server. The whole document is read again for each candidate; cache acceleration is not qualified. No annotations are stored. Built-in segmentation accepts word, line or paragraph; sentences use caller-supplied spans. Words split on Unicode whitespace, including non-breaking spaces, with punctuation attached. Supply 1–128 segments; longer documents in word mode return a validation error, never truncation. Per-word answers have not been validated. Full re-read cost grows with words × questions × document length. Offsets count Unicode code points. Example probabilities are illustrative, not measured. Promotion to /v1/annotate remains gated. Calibration and evaluation for the alternative runtime path have not run.

POST /v1beta/annotate

Set segment to word, line or paragraph, or supply explicit spans.

1. Mark safety instructions

BETA REQUEST · POST /v1beta/annotate

{
  "mode": "annotate",
  "input": {
    "document": "Disconnect the power before service.\nRecord the service date in the log.",
    "segment": "line",
    "questions": {
      "safety": {
        "type": "noul",
        "statement": "This paragraph contains a safety instruction."
      }
    }
  }
}

ILLUSTRATIVE RESPONSE · NOT MEASURED

{
  "model": "pea",
  "mode": "annotate",
  "offset_unit": "unicode_code_point",
  "cache_used": false,
  "fallback_reason": "cache_not_qualified",
  "segments": [
    {
      "id": "segment-0", "label": null, "start": 0, "end": 36,
      "answers": {
        "safety": {
          "type": "noul",
          "noul": 0.97,
          "probabilities": {"true": 0.97, "false": 0.03}
        }
      }
    },
    {
      "id": "segment-1", "label": null, "start": 37, "end": 72,
      "answers": {
        "safety": {
          "type": "noul",
          "noul": 0.12,
          "probabilities": {"true": 0.12, "false": 0.88}
        }
      }
    }
  ]
}

The complete response also includes checkpoint metadata and actual processed-token usage. Every repeated candidate row is charged; no token counts are inferred from this illustration.

All APIs

Beta · Hosted early access · Full history re-read

5. Watch a conversation

Create a conversation state and add messages in sequence. Supply independent questions on each call. Pea re-reads the full history and returns native probabilities; your application applies alert thresholds.

SOFTWARE ENGINEERING

Incident channel updates

An incident bot sends each new chat message. Pea returns the probability that the team has identified a cause. An engineer confirms the cause before the status page changes.

BANKING & INSURANCE

Personal advice in a customer chat

A bank sends each new message from the customer and from the agent. Pea returns a personal advice probability after each message. The application sends an alert to a supervisor when the probability is above the threshold. The supervisor reads the exchange. The supervisor decides the response.

SECURITY OPERATIONS

Suspicious session events

A security tool sends session events after a rule alert. Pea returns an account abuse probability and alerts an analyst. The analyst and current security controls decide each account restriction.

Example · Personal advice in a customer chat
  1. The bank starts a watch on the chat. The application alerts the supervisor above 0.8.

  2. Customer

    What does this fund contain?

  3. Pea
    Personal advice0.03
    No alert
  4. Agent

    The fund holds technology shares.

  5. Pea
    Personal advice0.12
    No alert
  6. Agent

    With your savings, I recommend this fund.

  7. Pea

    This message gives personal advice.

    Personal advice0.91
    Alert to supervisor
  8. The supervisor reads the chat and decides the next step.

Beta requirements and technical notes

Hosted Beta stores history encrypted by Vej in temporary local-directory storage. An organization administrator must explicitly opt in to states retention through PUT /v1beta/retention/states with {"enabled":true}. GET that route to check consent and pending deletion; PUT {"enabled":false} revokes access and schedules physical erasure. Sessions expire after 24 hours idle or 30 days from creation, whichever comes first. Activity refreshes only the idle deadline. Beta re-reads full history with no cache saving; native local sessions remain memory-only. History is capped at 100,000 Unicode code points, with at most 128 independent questions per call and 2,048 tokens per complete candidate row. The public request body is capped at 1 MiB. Local Beta storage allows 1 MiB of plaintext per blob and 4 MiB of ciphertext per session, within 1 GiB per organization and 256 MiB across the local backend; limits may be lower. Roundtrip qualification and independent lifecycle/security review are pending. Production /v1/states requires further runtime validation. Calibration and evaluation for the alternative runtime path have not run. Illustrative probabilities above are not measurements.

POST /v1beta/states · GET/DELETE /v1beta/states/{id} · POST /v1beta/states/{id}/events

Create at sequence 1, then submit the returned sequence as expected_seq. A stale retry returns state_sequence_conflict and never appends twice. A changed model identity returns rebuild_needed. Reset by deleting the current version and creating a new session.

{
  "mode": "states",
  "input": {"operation": "create", "expected_seq": 0, "history": "Customer: What does this fund contain?"}
}

Use the returned UUID in POST /v1beta/states/{id}/events:

{
  "mode": "states",
  "input": {
    "operation": "event",
    "expected_seq": 1,
    "event": "Agent: The fund holds technology shares.",
    "questions": {"advice": {"type": "noul", "statement": "The agent gives personal financial advice."}}
  }
}

Omit event to query the current history; full history computation is still charged and sequence advances. GET returns metadata with zero model tokens. Delete using DELETE /v1beta/states/{id}?expected_seq=2. Storage is never metered. Apply alert thresholds in your own application; this API sends no notifications.

All APIs

Beta · Hosted early access · Qualification pending

6. Use your corrections

Use your reviewed labels to fit a customer-specific temperature and decision threshold. Model weights stay frozen. A correction does not automatically improve future answers.

SOFTWARE ENGINEERING

False defect reports

Keep reviewed defect labels tied to the original candidate identities and native scores. Recalibrate on independent groups before relying on a threshold.

HR & RECRUITING

Applicant document labels

Review document types independently. Selected feedback may differ from the population of later documents; people retain each employment decision.

MEDIA & CONTENT MODERATION

Local policy examples

Use separate fit and check examples from your policy. An unverified artifact abstains; moderators retain each enforcement decision.

Example · Local policy review
  1. Moderator

    Send reviewed outcomes and their original native logits, with customer-owned candidate digests.

    Independent split roles
  2. Calibration service

    Fit only temperature and threshold. If an independent check is missing or fails, return an unverified artifact with no acceptance threshold.

    Unverified · Abstain
  3. Customer

    Keep the artifact yourself, or explicitly opt in to encrypted gateway feedback retention. Deleting a retained label invalidates feedback-derived fits.

    Your retention choice
Beta requirements and technical notes

Beta on the hosted API; alternative-runtime parity and independent recalibration checks are pending. No population risk guarantee or measured improvement is published. /v1/feedback remains unavailable. Retention defaults off; feedback consent is separate from standalone calibrations consent.

POST /v1beta/feedback

Send independent labeled groups

BETA REQUEST · Illustrative digests and scores

{
  "mode": "feedback",
  "input": {
    "binding": {
      "base_checkpoint_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "parts": {},
      "population_sha256": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
      "runtime_sha256": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
    },
    "target_error_rate": 0.05,
    "persist": false,
    "events": [
      {
        "event_id": "review-1",
        "group_sha256": "1111111111111111111111111111111111111111111111111111111111111111",
        "role": "temperature-fit",
        "outcomes": [
          {
            "key": "complies",
            "candidate_sha256": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
          },
          {
            "key": "breach",
            "candidate_sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
          }
        ],
        "logits": [
          2.0,
          0.0
        ],
        "outcome_key": "complies"
      },
      {
        "event_id": "review-2",
        "group_sha256": "2222222222222222222222222222222222222222222222222222222222222222",
        "role": "risk-fit",
        "outcomes": [
          {
            "key": "complies",
            "candidate_sha256": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
          },
          {
            "key": "breach",
            "candidate_sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
          }
        ],
        "logits": [
          2.0,
          0.0
        ],
        "outcome_key": "complies"
      }
    ]
  }
}

ILLUSTRATIVE RESPONSE FIELDS · Small fixture, no independent check

{
  "model": "pea",
  "status": "unverified",
  "threshold": null,
  "expected_answer_rate": 0.0,
  "events_used": 2,
  "check_report": null
}

The complete response also includes the digest binding, fit reports, calibration artifact, metadata and zero processed-token usage. This example is not a measured population result.

All APIs

Beta · Hosted early access

7. If so, then…

Ask a first question and a conditional question. Pea returns the conditional probability and, when the supplied condition matches the selected first outcome, its product with the first outcome probability.

SOFTWARE ENGINEERING

API break and migration notice

A release engineer sends a code change. Pea returns API break and conditional migration probabilities. The engineer checks the combined result before a release notice changes.

CUSTOMER SUPPORT & E-COMMERCE

Refund request reasons

A shop sends a customer email. Pea returns the refund intent, conditional reason, and combined probabilities. An agent checks the charge records and decides each refund.

BANKING & INSURANCE

Water damage documents

A claims agent sends a damage report. Pea returns water damage and conditional invoice probabilities. The agent checks the file and decides which documents to request.

Example · Refund request reasons
  1. Customer

    I paid twice for the headphones. Please refund the extra payment.

  2. Pea

    The customer wants a refund.

    Refund intent0.93
  3. Pea

    If this is a refund, the reason is a duplicate charge.

    Duplicate charge, given a refund0.94
  4. Pea

    Both answers together: 0.93 × 0.94.

    Refund and duplicate charge0.8742
    Combined answer
  5. Agent

    I see two charges for your headphones. I will examine them and reply today.

  6. The agent decides the refund.

Beta requirements and technical notes

Hosted Beta evaluates the first event and a separate question under your explicit assumption. Both calls count toward usage. A Noul condition must be the matching boolean; a Choice condition must be the selected option name string. The result reports bound and returns product: null for other conditions. A bound product is a modeled conditional composition; it does not infer causality or event independence. Reference validation and alternative-runtime parity are pending. Production /v1/modes/predict requires these checks to pass.

POST /v1beta/predict · given

1. Assess the intent and conditional reason

BETA REQUEST · POST /v1beta/predict

{
  "mode": "given",
  "input": {
    "state": "I paid twice for the headphones. Please refund the extra payment.",
    "first": {
      "type": "choice",
      "question": "What does the customer want?",
      "options": {
        "refund": "A refund",
        "cancel": "Order cancellation",
        "other": "Another action"
      }
    },
    "first_outcome": "refund",
    "condition": "refund",
    "conditional": {
      "type": "choice",
      "question": "Assuming a refund request, what is the reason?",
      "options": {
        "duplicate": "Two payments for one item",
        "not_received": "An item did not arrive",
        "unwanted": "An unwanted item"
      }
    }
  }
}

ILLUSTRATIVE RESULT EXCERPT · NOT MEASURED

{
  "model": "pea",
  "mode": "given",
  "semantics": "modeled_conditional_composition",
  "first_outcome": "refund",
  "condition": "refund",
  "bound": true,
  "marginal": 0.93,
  "conditional": {
    "duplicate": 0.94,
    "not_received": 0.02,
    "unwanted": 0.04
  },
  "product": {
    "duplicate": 0.8742,
    "not_received": 0.0186,
    "unwanted": 0.0372
  }
}

The complete result also includes both primitive call traces, the public model id, filtered metadata and actual token usage. These numbers are illustrative.

All APIs

Beta · Hosted early access

8. Pick the correct record

Send your records. Pea returns one record ID from your list, or an absent result, with a probability for each.

SOFTWARE ENGINEERING

Service owner for an error

An incident bot sends an error trace and a service list. Pea returns a service ID or an absent result. An engineer confirms the owner before a task assignment.

CUSTOMER SUPPORT & E-COMMERCE

Order reference in a complaint

A support agent sends a complaint and the customer order list. Pea returns an order ID or an absent result. The agent checks the order before any refund.

LOGISTICS & SUPPLY CHAIN

Delivery record matches

A warehouse clerk sends a delivery note and open purchase orders. Pea returns an order ID or an absent result. The clerk confirms the match before the system records receipt.

Example · Order reference in a complaint
  1. Customer

    I paid twice for the headphones I bought in March.

  2. The support tool sends the message and the three orders of the customer to Pea.

  3. Pea

    Order ord_1187: headphones, March 2. Other orders: case 0.06, cable 0.01. No match: 0.03.

    Order ord_11870.90
    Record selected
  4. Agent

    I found your order from March 2. I will examine the two charges now.

Beta requirements and technical notes

Beta on the hosted API and native reference. No records are stored. Absent concerns only your supplied list. Reference validation and alternative-runtime parity are pending; production /v1/modes/predict is not yet available. Numbers are illustrative.

POST /v1beta/predict · bind

1. Select the complaint order

BETA REQUEST · POST /v1beta/predict

{
  "mode": "bind",
  "input": {
    "state": "I paid twice for the headphones I bought in March.",
    "question": "Which supplied order does the customer refer to?",
    "records": [
      {
        "id": "ord_1042",
        "name": "cable",
        "description": "Cable order, January 14."
      },
      {
        "id": "ord_1187",
        "name": "headphones",
        "description": "Headphones order, March 2.",
        "fields": {
          "refunded": false,
          "owner": null,
          "refund_count": 0
        }
      },
      {
        "id": "ord_1233",
        "name": "case",
        "description": "Headphone case order, March 28."
      }
    ]
  }
}

ILLUSTRATIVE RESPONSE · NOT MEASURED

{
  "model": "pea",
  "mode": "bind",
  "outcome": "record",
  "record_id": "ord_1187",
  "record": {
    "id": "ord_1187",
    "name": "headphones",
    "description": "Headphones order, March 2.",
    "fields": {
      "refunded": false,
      "owner": null,
      "refund_count": 0
    }
  },
  "probabilities": {
    "cable": 0.01,
    "headphones": 0.9,
    "case": 0.06,
    "absent": 0.03
  },
  "caller_id_map": {
    "cable": "ord_1042",
    "headphones": "ord_1187",
    "case": "ord_1233"
  }
}

The full response also includes the primitive call trace, the public model id, filtered metadata and actual token usage.

All APIs

Beta · Hosted early access

9. Step-by-step checks

Define each check and each condition. Pea returns each result. Pea asks for a document when a condition requires it. Pea continues after a person supplies the document.

SOFTWARE ENGINEERING

Release document checks

A release engineer sends a change and the release notes. Pea returns an API-break probability for the change. Pea returns a probability that each note has a source. The engineer supplies a missing source. The engineer decides whether to approve the release.

PUBLIC SECTOR

Application document requests

A caseworker sends an application document list. Pea returns document check results and requests an absent payslip. The caseworker supplies it and keeps each eligibility decision.

HEALTHCARE ADMINISTRATION

Claim document checks

A hospital clerk sends a claim file and its form text. Pea returns document and code consistency check results. The clerk supplies absent documents and checks the claim before submission.

Example · Application document requests

Your team or systemPea

  1. Caseworker

    The caseworker sends the application documents and the check sequence.

  2. Pea

    The residence document probability is 0.97. The most likely outcome is true.

    Proof of residence0.97
    Residence check complete
  3. Pea

    The income check depends on the residence result and requires a payslip. The payslip input is missing.

    Income check waiting
  4. Pea

    Pea stops and asks the caseworker for a payslip.

    Payslip required
  5. Caseworker

    The caseworker supplies the payslip. The caseworker resends the earlier results with the document in a new stateless call. The caseworker decides eligibility.

    Caseworker decides
Beta requirements and technical notes

Beta on the hosted API and native reference. Resend the same flow with inputs and previous_results. Earlier results are caller-owned assertions; use recompute: true to rerun them. No flow or documents are stored, and no tools run. Repeated calls may repeat compute and charges. Reference validation and alternative-runtime parity are pending; production /v1/flows is not yet available. Numbers are illustrative. Response excerpts omit calls, metadata and usage; hashes identify these example inputs and do not authenticate results.

POST /v1beta/flows

1. Check the application documents

BETA REQUEST · POST /v1beta/flows

{
  "mode": "flows",
  "input": {
    "state": {
      "documents": [
        "id_card",
        "rental_contract"
      ]
    },
    "steps": [
      {
        "id": "residence",
        "question": {
          "type": "noul",
          "statement": "The file contains proof of residence."
        }
      },
      {
        "id": "income",
        "question": {
          "type": "noul",
          "statement": "The supplied payslip supports income."
        },
        "depends_on": [
          "residence"
        ],
        "when": {
          "step": "residence",
          "outcome": "true"
        },
        "requires": [
          "payslip"
        ]
      }
    ]
  }
}

ILLUSTRATIVE RESPONSE · NOT MEASURED

{
  "model": "pea",
  "mode": "flows",
  "status": "needs_input",
  "flow_sha256": "39880e79664e3ec4e3442544b4d7793ae3087a056881d9f525b229b03d7c0c4c",
  "results": [
    {
      "step_id": "residence",
      "flow_sha256": "39880e79664e3ec4e3442544b4d7793ae3087a056881d9f525b229b03d7c0c4c",
      "content_sha256": "269db2c8cc95040923c0d880b745a9c2633c8f1e29ce78e47bba52ee6a3ec613",
      "outcome": "true",
      "probabilities": {
        "true": 0.97,
        "false": 0.030000000000000027
      },
      "provenance": "executed"
    }
  ],
  "needs_input": [
    "payslip"
  ],
  "skipped": []
}

2. Supply the requested payslip

BETA REQUEST · POST /v1beta/flows

{
  "mode": "flows",
  "input": {
    "state": {
      "documents": [
        "id_card",
        "rental_contract"
      ]
    },
    "steps": [
      {
        "id": "residence",
        "question": {
          "type": "noul",
          "statement": "The file contains proof of residence."
        }
      },
      {
        "id": "income",
        "question": {
          "type": "noul",
          "statement": "The supplied payslip supports income."
        },
        "depends_on": [
          "residence"
        ],
        "when": {
          "step": "residence",
          "outcome": "true"
        },
        "requires": [
          "payslip"
        ]
      }
    ],
    "inputs": {
      "payslip": "September payslip for the applicant."
    },
    "previous_results": [
      {
        "step_id": "residence",
        "flow_sha256": "39880e79664e3ec4e3442544b4d7793ae3087a056881d9f525b229b03d7c0c4c",
        "content_sha256": "269db2c8cc95040923c0d880b745a9c2633c8f1e29ce78e47bba52ee6a3ec613",
        "outcome": "true",
        "probabilities": {
          "true": 0.97,
          "false": 0.030000000000000027
        },
        "provenance": "executed"
      }
    ]
  }
}

ILLUSTRATIVE RESPONSE · NOT MEASURED

{
  "model": "pea",
  "mode": "flows",
  "status": "completed",
  "flow_sha256": "39880e79664e3ec4e3442544b4d7793ae3087a056881d9f525b229b03d7c0c4c",
  "results": [
    {
      "step_id": "residence",
      "flow_sha256": "39880e79664e3ec4e3442544b4d7793ae3087a056881d9f525b229b03d7c0c4c",
      "content_sha256": "269db2c8cc95040923c0d880b745a9c2633c8f1e29ce78e47bba52ee6a3ec613",
      "outcome": "true",
      "probabilities": {
        "true": 0.97,
        "false": 0.030000000000000027
      },
      "provenance": "caller_assertion"
    },
    {
      "step_id": "income",
      "flow_sha256": "39880e79664e3ec4e3442544b4d7793ae3087a056881d9f525b229b03d7c0c4c",
      "content_sha256": "b7783d9001b0faafef1ff02f261f8fb37de9a76e8bb00e833eba8d882606edf3",
      "outcome": "true",
      "probabilities": {
        "true": 0.94,
        "false": 0.06000000000000005
      },
      "provenance": "executed"
    }
  ],
  "needs_input": [],
  "skipped": []
}

All APIs

Beta · Hosted early access · Quality gate failed

10. Rank with probabilities

Send candidates and a question. Pea returns a first-place probability and a probability that the candidate is in the top group you set.

The quality gate failed on the sealed final evaluation for both seeds. Rankings remain Beta; /v1/rankings is not promoted.

SOFTWARE ENGINEERING

Outage cause review

An incident tool sends changes made before an outage. Pea returns cause rank probabilities. An engineer examines the first two candidates before any service change.

MANUFACTURING

Fault code review

A technician sends fault codes from a stopped production line. Pea returns cause rank probabilities. The technician examines the first three candidates and follows the approved repair procedure.

MEDIA & CONTENT MODERATION

Reported post queue

A supervisor sends a batch of reported posts. Pea returns review priority rank probabilities. Moderators examine the first ten candidates and keep each enforcement decision.

Example · Outage cause review

Your team or systemPea

  1. Engineer

    The engineer sends four changes and the outage report. The engineer sets the top group to two.

  2. Pea

    The database pool change has the highest first-place probability. The probability is 0.62.

    Database change: first place0.62
    Candidate ranked
  3. Pea

    The same change has a 0.9020 probability of a place in the top two.

    Database change: top two0.9020
    Top two
  4. Pea

    The payment retry change is second. Its first-place probability is 0.21. Its probability of a place in the top two is 0.5923.

    Retry change: first place0.21
    Second candidate
  5. Engineer

    The engineer examines the database change and the retry change before any service change.

    Human investigation
Beta requirements and technical notes

Hosted Beta rankings require a verified ranking sidecar; a missing or invalid sidecar returns 503 ranking_unavailable. Lists are not stored. First-place probabilities sum to 1; top-k inclusion probabilities sum to k. These are marginals of one listwise distribution. Beta /v1beta/rankings is live on the hosted API. The quality gate failed on the sealed final evaluation for both seeds, and the endpoint contract failed. /v1/rankings is not promoted. Served-format coherence, permutation, metering and token-cap checks passed; alternative-runtime parity is pending.

POST /v1beta/rankings

1. Rank outage cause candidates

BETA REQUEST · POST /v1beta/rankings

{
  "mode": "rankings",
  "input": {
    "state": "Checkout errors start at 14:02. The database pool is exhausted.",
    "question": "Which change caused the outage?",
    "candidates": [
      {"id": "chg_311", "name": "Pool reduction", "description": "Reduce the database pool from 50 to 10"},
      {"id": "chg_309", "name": "Payment retry", "description": "Add a payment client retry"},
      {"id": "chg_310", "name": "Logging", "description": "Replace the log library"},
      {"id": "chg_305", "name": "Button color", "description": "Change the checkout button color"}
    ],
    "top_k": 2
  }
}

ILLUSTRATIVE RESPONSE EXCERPT · NOT MEASURED

{
  "model": "pea",
  "mode": "rankings",
  "semantics": "plackett_luce_first_place_and_top_k_inclusion",
  "top_k": 2,
  "ranking": [
    {"id": "chg_311", "p_best": 0.62, "p_top_k": 0.9020},
    {"id": "chg_309", "p_best": 0.21, "p_top_k": 0.5923},
    {"id": "chg_310", "p_best": 0.12, "p_top_k": 0.3540},
    {"id": "chg_305", "p_best": 0.05, "p_top_k": 0.1517}
  ]
}

All APIs

Beta · Hosted early access · Standard only · Fast/careful deferred and not available

11. Select effort

Select effort for each question on POST /v1beta/predict. Standard remains the unchanged default. Fast and careful are deferred and not yet available. The use cases and story below illustrate those deferred settings; their answers are illustrative, not results available today.

SOFTWARE ENGINEERING

Style and security review

Illustrative · Fast and careful are deferred and not yet available.

A developer sends a code change with fast effort for style and careful effort for security. Pea returns both probabilities and effort labels. The reviewer decides whether to approve the change.

SECURITY OPERATIONS

New file report review

Illustrative · Careful is deferred and not yet available.

An analyst sends a new file analysis report with careful effort. Pea returns an abuse probability and the effort label. The analyst and current controls decide each restriction.

ENERGY & UTILITIES

Maintenance note review

Illustrative · Careful is deferred and not yet available.

A planner sends a maintenance note with careful effort for a safety question. Pea returns a probability that the note needs a safety review. An engineer decides the maintenance action.

Illustrative · Style and security review · Fast/careful deferred and not yet available

Your team or systemPea

  1. Developer

    The developer sends a change to the shared token check. The developer selects the effort for two questions.

  2. Pea

    Pea gives a 0.94 probability that the change follows the style guide. The answer shows the fast setting.

    Style guide followed0.94
    Style answer
  3. Pea

    Pea gives a 0.85 probability that the change needs a security review. The answer shows the careful setting.

    Security review required0.85
    Security answer
  4. Reviewer

    The reviewer examines the change and decides whether to approve it.

    Human review
Beta requirements and technical notes

Select effort independently for each primitive question on POST /v1beta/predict. Standard is available and remains the unchanged default. Fast and careful are deferred and not available. They return an explicit unavailable status with reason deferred; records 145 and 146 document owner decision 25 (2026-10-17). Pea remains the only served model.

HTTP 200 may contain both executed and unavailable questions; check each status. Standard results have status executed, effort_requested and effort_used set to standard, and the unchanged native answer. Mixed requests execute only standard questions, with no silent fallback. All-unavailable requests have zero usage, a null base digest and no executed parts. Responses report the effort actually used, executed parts and processed tokens. Request content is not retained. Hosted Beta supports standard effort only. Promotion to /v1/modes/predict remains closed until both fast and careful gates pass.

POST /v1beta/predict · effort

1. Request a deferred setting

BETA REQUEST · POST /v1beta/predict

{
  "mode": "effort",
  "input": {
    "state": "A proposed code change.",
    "questions": {
      "security": {
        "type": "noul",
        "statement": "The change requires a security review.",
        "effort": "careful"
      }
    }
  }
}

UNAVAILABLE SETTING · NO MODEL WORK

{
  "model": "pea",
  "mode": "effort",
  "results": {
    "security": {
      "status": "unavailable",
      "effort_requested": "careful",
      "effort_used": null,
      "reason": "deferred"
    }
  },
  "metadata": {"base_checkpoint_sha256": null, "parts": []},
  "usage": {"processed_tokens": 0, "prefix_tokens": 0,
    "new_suffix_tokens": 0, "reread_tokens": 0, "ensemble_tokens": 0}
}

All APIs

Hosted Beta

12. Extract fields from documents

Extract typed values from raw text without generating text. Pea points directly to Unicode evidence spans in your document, and deterministic code parses them into typed values.

FINANCE & ACCOUNTING

Invoice field capture

An accounts payable team sends supplier invoices. Pea locates character spans for invoice numbers, issue dates, and amounts due. The billing system routes unmatched purchase orders to human review.

LOGISTICS & PROCUREMENT

Shipping manifest extraction

A freight forwarder sends bill of lading text. Pea extracts container numbers, shipment dates, and weight quantities with cited evidence offsets. Clerks verify flagged discrepancies before customs filing.

HEALTHCARE & INSURANCE

Patient intake records

A medical practice sends intake summaries. Pea extracts policy IDs, encounter dates, and copay amounts directly from the text. Coders check cited evidence spans before claim submission.

Example · Invoice field extraction

Your team or systemPea

  1. Billing system

    The system submits invoice text: “Invoice 2026-0412 Date: 3 October 2026 Total due: €1,240.50” with requests for invoice number, date, total, and purchase order number.

  2. Pea

    Pea locates evidence span [8, 17) for invoice_number: “2026-0412”.

    Text extracted
  3. Pea

    Pea cites span [24, 38) for invoice_date, parsed as date “2026-10-03”.

    Date extracted
  4. Pea

    Pea cites span [51, 59) for total, parsed as number 1240.50.

    Total extracted
  5. Pea

    For po_number, p_null is 0.97. Because evidence is absent, value is null.

    Field missing (null)
  6. Billing system

    The billing system loads the extracted fields and routes the missing purchase order to a reviewer for verification.

    Routed to reviewer
Beta requirements and technical notes

Hosted Beta on POST /v1beta/extract using technical model identifier pea-pod-1. Supports seven field types: text, number, date, time, datetime, duration, and list (with items: "text"). Up to 64 fields per request, evaluated as independent document-plus-field passes. Realtime Pea Pod supports 96K (98,304) tokens per complete document-plus-field row; batch supports 2K (2,048). Framing and field instructions count toward the limit; requests exceeding this limit fail closed with HTTP 400 (never silent truncation). Modality is text only (1 to 1,048,576 Unicode code points; JSON body up to 16 MiB); images are rejected with HTTP 400.

All values are parsed from cited half-open Unicode code point evidence spans [start, end) by deterministic code; Pea does not perform arithmetic computation or calculate totals from line items. When p_null ≥ null_threshold (default 0.5) or parsing fails, value is null. The field may still report an uncalibrated conditional guess and span. p_null uses a checkpoint-bound presence fit when metadata.calibrated is true. confidence remains an uncalibrated span/tag score. A held-out fit does not guarantee calibrated absence or factual accuracy on your documents; recheck custom null thresholds after calibration updates. Extraction weights are private and served exclusively via the hosted API (not included in public Pea 1 weights). For full details, see the Pea extraction documentation.

POST /v1beta/extract

Submit document text with up to 64 field definitions. Technical wire model is pea-pod-1.

Extract fields from an invoice

BETA REQUEST · POST /v1beta/extract

{
  "model": "pea-pod-1",
  "state": "Invoice 2026-0412\nDate: 3 October 2026\nTotal due: €1,240.50",
  "reference_date": "2026-10-21",
  "fields": {
    "invoice_number": {"type": "text", "instructions": "The invoice number."},
    "invoice_date": {"type": "date", "instructions": "The date the invoice was issued."},
    "total": {"type": "number", "decimals": 2, "instructions": "The total amount due."},
    "po_number": {"type": "text", "instructions": "The purchase order number."}
  }
}

ILLUSTRATIVE RESPONSE · ABRIDGED

{
  "model": "pea-pod-1",
  "answers": {
    "invoice_number": {
      "type": "text",
      "value": "2026-0412",
      "guess": "2026-0412",
      "p_null": 0.001,
      "confidence": 0.99,
      "span": [8, 17]
    },
    "invoice_date": {
      "type": "date",
      "value": "2026-10-03",
      "guess": "2026-10-03",
      "p_null": 0.002,
      "confidence": 0.98,
      "span": [24, 38]
    },
    "total": {
      "type": "number",
      "value": 1240.5,
      "guess": 1240.5,
      "p_null": 0.001,
      "confidence": 0.98,
      "span": [51, 59]
    },
    "po_number": {
      "type": "text",
      "value": null,
      "guess": null,
      "p_null": 0.97,
      "confidence": 0.5
    }
  },
  "truncated": false,
  "usage": {
    "state_tokens": 30,
    "input_tokens": 200,
    "output_tokens": 0,
    "passes": 4
  }
}

Extracted fields cite character offsets into your document text. Fields judged absent, or evidence that fails to parse, return value: null. Read the Pea extraction documentation for full schema specifications and usage guidelines.

All APIs

Try the Beta APIs

Request limited early access, or send your use case.