Skip to main content
Use the Playground to upload a document, see what the Parse v2 API returns, and copy a ready-to-use API snippet before you write any code.

Parse a Document in the Playground

To parse a document with :
  1. Go to the Playground.
  2. In the upload card, click the model drop-down menu and select DPT-3 Pro.
  3. Drag and drop your file into the upload area, or click to choose a file.
  4. Click Start. The Playground processes the file and opens the project view with the parse results.
Playground upload card with the model drop-down open and DPT-3 Pro selected

Review the Results

The parse results open in the Parse tab of the project view:
  • Markdown view (default): The reading-order Markdown rendering of your document. Use this for quick visual review or to copy into a downstream tool.
  • JSON view: The full response payload. Use this view to inspect block ids, ranges, and grounding coordinates. To collapse or expand a nested section, hover over the narrow column along the left edge of the JSON and click the arrow that appears.
  • Click a block in either view to highlight its bounding box on the document preview on the left.
  • Use the Search, Download, and Copy buttons in the toolbar above the result to find text in the current view, save it, or paste it elsewhere.
  • Click Display in the toolbar to change how results render: Always show atomic grounding keeps the per-line grounding boxes visible on the document preview, and Word wrap wraps long lines in the JSON view.
For a complete reference on what each response field contains, see Parse API Response. View DPT-3 results in the Playground

Customize the Parse Output with Config

To change how parses your files, open the Config drop-down menu on the Parse tab and update the settings. These controls set the same values as the API’s options field. After you adjust the options, click Apply to all files to reparse with the new settings.
  • Captioning options: Choose which block types are included in the Markdown (Text, Table, Figure, Marginalia, Attestation, Logo, Scan code, and Card). All are on by default. Clearing one drops that block type’s content from the Markdown, but the block still appears in the JSON structure and grounding.
  • Table output format: Choose HTML (default) or Markdown for how tables appear in the Markdown output. This control appears only while Table captioning is on.
  • Atomic grounding: Include the per-line grounding detail (the atomic_grounding array) with each block. On by default.
  • Pages: Enter the pages to parse (for example, 1-3) to process only part of the document. The Playground and the API’s options.pages field both use 1-based page numbers.
DPT-3 Pro Config drop-down menu showing the parse options

Get a Ready-to-Use Code Snippet

When the parse results match what you need, the Playground generates a Python script that reproduces the call, so you can parse the same document, or any other, from code. The Playground provides two versions: one for the library and one for calling the API directly. To get the script:
  1. Click Get Code in the project header. The View Code pop-up opens.
  2. Click the Library or API tab to see the code for each method.
  3. Click the Download or Copy buttons to get the code. View Code dialog with Library and API tabs, showing the Python library script for Parse