Developers · Pea API

Build with Pea.
Probabilities you can check.

Define a situation and its possible outcomes, or extract structured fields with direct evidence. Pea is live in hosted early access for decisions and in Beta for extraction.

Every console account is approved by hand. While you wait, you can sign in and set up a passkey or authenticator app on your Profile.

Start here

Pick your path

STATEThe customer wants to change a booked flight. Fare rules are missing.

What should happen next?

Ask for fare rules0.62
Quote a change fee0.21
Rebook the flight0.17

Illustrative values. No model runs in your browser.

How it works

One request carries up to 128 independent questions, each scored on its own.

01 / DESCRIBE

Send the state.

Pass the situation as text or JSON: a message, record, or document.

02 / ASK

Ask independent questions.

Choice picks among named options. Noul tests whether a statement holds. Score evaluates rubric levels. Questions do not see each other.

03 / ACT

Apply your policy.

Each answer sums to one. Your code sets thresholds and gates actions. The Pea API returns probabilities and never acts on them.

REQUEST

{
  "state": {
    "message": "Please cancel my subscription. I have not provided an account ID.",
    "account_id": null,
    "account_verified": false
  },
  "questions": {
    "route": {
      "type": "choice",
      "question": "Which action best matches the request?",
      "options": {
        "cancel_subscription": "Cancel an existing subscription",
        "lookup_invoice": "Retrieve a billing invoice",
        "none": "Neither offered action applies"
      }
    },
    "can_execute": {
      "type": "noul",
      "statement": "The account is verified and its ID is available."
    },
    "completeness": {
      "type": "score",
      "question": "How complete is the information needed to execute cancellation?",
      "levels": [
        "The account ID and account verification are both missing",
        "Exactly one of account ID or account verification is missing",
        "The account ID is available and the account is verified"
      ]
    }
  }
}

ILLUSTRATIVE RESPONSE · abridged

{
  "answers": {
    "route": {
      "type": "choice",
      "choice": "cancel_subscription",
      "probabilities": {
        "cancel_subscription": 0.91,
        "lookup_invoice": 0.05,
        "none": 0.04
      }
    },
    "can_execute": {
      "type": "noul",
      "noul": 0.02,
      "probabilities": { "true": 0.02, "false": 0.98 }
    },
    "completeness": {
      "type": "score",
      "score": 0.14,
      "probabilities": [0.88, 0.10, 0.02]
    }
  }
}
State + question + outcomeNative scorerProbabilities

NEW · HOSTED BETA

Extract with Pea

Each answer cites its evidence: character offsets into your text. Typed values are parsed from that evidence by code. When a field is probably absent, its value is null.

INPUT DOCUMENT (STATE)
Invoice 2026-0412
Date: 3 October 2026
Total due: €1,240.50
Offsets: Unicode code points · end-exclusive
EXTRACTED FIELDS · Pea · extraction
invoice_number text
"2026-0412" span [8, 17)
invoice_date date
"2026-10-03" span [24, 38) · parsed
total number
1240.50 span [51, 59) · 2 decimals
po_number text · missing
null p_null 0.97 · null

Explore Pea extraction documentation & API example

Uses

Route a request.

Pea returns probabilities for billing, security and cancellation. Your code can route clear requests and send uncertain requests to a person.

Gate a tool call.

A refund requires a verified account ID. Use Noul to assess this condition. Your code must check the account before it issues a refund.

Score a reply against a rubric.

Grade answers against your rubric. Score returns a distribution over levels, and your code computes the expected position.

Decide when to escalate.

Use Choice to compare a retry, an alternative action and a review by a person. Your code applies the decision threshold.

See Beta APIs and their use cases

Pea evaluation

HelpSteer1 ratings and Schema-Guided Dialogue decisions, frozen before the final run.

Scroll horizontally to see the full comparison.

Exact accuracy of Vej Pea and hosted Jev 1.13 on the same 14,286 test decisions
Task Decisions Vej Pea Hosted Jev 1.13¹
Choice · pick an outcome 6,197 89.22% 83.07%
Noul · assess a statement 3,089 91.71% 93.65%
Score · exact rubric level 5,000 51.62% 44.20%
Overall 14,286 76.60% 71.76%

¹ Jev is TypeSafe's hosted decision model, shown with its documented rounding adjustment.

See the Jev comparison

Read the full evaluation

Availability

Run Pea decisions through the native CLI, a local HTTP server or the Jev and Cloudflare Clef SDK formats. Extract document fields using Pea extraction on the hosted Beta API. See the Pea runtime options and the Pea extraction documentation.

Pea release

Pea is complete, in limited early access for decisions. Pea 1 decision weights require an approved Hugging Face request. Its published results describe the native checkpoint.

Pea extraction Beta

Pea extraction is live in hosted Beta at /v1beta/extract for document extraction. Extraction weights are private.

Hosted API

The hosted API is live at api.itsvej.com in limited early access and Beta. Decision routes (Choice, Noul, Score) are live on /v1/predict with temperature 1.334, alongside the Jev and Cloudflare-compatible formats. Extraction is live in Beta on /v1beta/extract. Both are text only; image input is refused. Capacity is limited, with no uptime guarantee yet.

Create your account for manual approval. Already registered? Sign in to the console.

Beta modes are also live; states require organization retention opt-in and store history encrypted by Vej. Batch jobs use approved EU storage hosts and support 2K (2,048) tokens per complete row. Self-hosting remains an option for Pea. Data processing agreement.

Questions

Which models can I use?
Pea (2B) is available for decisions in limited hosted early access, with Pea 1 weights by approved Hugging Face request. Pea extraction is live in hosted Beta at /v1beta/extract (extraction weights are private). Pepper is in development and Pumpkin is coming soon; both are tested privately with companies, and neither is publicly available.
What is Pea extraction?
Pea extraction is a hosted capability of Pea. It reads a document and extracts developer-defined fields by predicting exact Unicode evidence spans. It uses prefill only—no text generation and no autoregressive decoding. Each answer cites character offsets in your text, and typed values are parsed from that evidence. When a field is probably absent, its value is null.
What context size can I use?
Pea decisions and Pea Pod extraction support 96K (98,304) tokens per row in realtime and 2K (2,048) tokens per row in batch. Each complete row includes the state or document, instructions, and candidate or field. Over-limit rows are rejected, never truncated. See the model limits.
What does Pea return?
A probability for each outcome you define. Choice weighs named options, Noul assesses statements, and Score rates rubric levels. Your code decides what happens next.
Can I run Pea on my own hardware?
Yes. Download Pea 1 from https://huggingface.co/ItsVej/pea-1 after your access request is approved. The native loader also needs the private Vej source. Supported inference uses the native loader on your GPU; CPU execution is a slower fallback. The model card includes setup instructions and current limits.
Is there a hosted API?
Yes. The hosted API is live at api.itsvej.com: Pea for decisions on /v1/predict, and Pea extraction on /v1beta/extract (Beta). Text only; image input is refused. Create a console account and wait for manual approval before using the API. Capacity is limited, with no uptime guarantee yet.
How should I use Pea’s probabilities?
Set thresholds using examples from your own workflow, and pair tool actions with independent policy checks. The published evaluation reports exact accuracy across 14,286 decisions at temperature 1. The hosted API uses temperature 1.334. A stated probability is not a guaranteed frequency.

Pea model card · Pea extraction · Access and waitlists · Licences

Start building with Pea

Create a console account and request access. Every account is approved by hand; while you wait, you can sign in and secure it with a passkey or authenticator app.