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 a schema that gets what you want
Veralens uses JSON Schema directly. The schema is both the shape of the output and the instruction. A few rules make extractions dramatically more reliable:
- Describe every field.
descriptionis your strongest control. State what the field means, its units, and the exact form 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 you get one of them back. - **Describe string formats in
description, not inpattern.**pattern,minLengthandmaxLengthare not enforced. Put the rule indescriptioninstead (e.g. "Exactly 5 digits"). - Numeric constraints are guarantees.
multipleOf,minimumandmaximumhold on the value you receive, somultipleOf: 0.01reliably pins money to two decimals. formatdoes real work.** 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.