The Playground in the dashboard runs extractions without writing any code. Drop in text or images, define a schema or a prompt, pick an engine, and see the structured output plus its exact cost. It is the fastest way to design and tune a schema before wiring the API into your app.
Playground runs are real jobs. They appear in your job history with source: "playground" and are billed the same way as API jobs.
Two modes
- Schema mode. Provide a JSON Schema and get strict, typed JSON back. Best when you know the fields you want.
- Prompt mode. Give a natural-language
global_promptand a target ofmarkdown,plaintext, or schemalessjson. Best for summaries, freeform structuring, or exploration.
Whatever you build in the Playground maps one-to-one to the [POST /jobs/create](/docs/api-reference) body, so you can copy a working setup straight into code.
Writing schemas that steer the model
Veralens uses JSON Schema directly. The schema both shapes the output and steers the model. A few rules make extractions dramatically more reliable:
- Describe every field.
descriptionis the primary steering lever. State what the field means, its units, and the exact format you want in plain language (e.g. "Issue date in ISO format YYYY-MM-DD, date only"). - **Use
enumfor classification.** For a document type, status, or any closed set, list the allowed values and the model must pick one. - **Describe string formats in
description, not inpattern.**pattern,minLengthandmaxLengthare not enforced anywhere. Put the rule indescriptioninstead (e.g. "Exactly 5 digits"). - Numeric constraints are enforced, just not by the model.
multipleOf,minimumandmaximumdo not reach the model, because a model asked to respect a constraint returns confident violations of it. They are applied by the runtime after extraction, somultipleOf: 0.01reliably pins money to two decimals. formatdoes real work.** It selects post-extraction handling: decoded QR codes and barcodes, ISO dates, ISO country and currency codes, E.164 phones, checksum-verified IBANs. See Schemas & formats for the full table.type,properties,items,required,enum,format** are respected and define the structure.
Dates, currencies, and country codes are normalized to ISO 8601, ISO 4217, and ISO 3166, so you rarely need post-processing for those. A value that does not resolve comes back exactly as printed rather than guessed. Full list in Schemas & formats.
From Playground to production
- Iterate on the schema (or prompt) until the output is right.
- Note the engine you used:
vera-1.0-highfor accuracy,vera-1.0-lowfor cheaper high-volume runs. - Copy the same
sources/schema/targetshape into a [POST /jobs/create](/docs/api-reference) call. - Add a [
webhook_url](/docs/jobs) or a polling loop to collect results.