Getting started
BiomAPI turns biometry reports into structured measurements. Use the web app to check a report. Use the widget to add this interface to your application.
Use BiomAPI
Section titled “Use BiomAPI”- Open BiomAPI. Choose Open file and select a supported PDF or image. For a test, save the synthetic JSON report as
report.jsonand open it. - Select Process Biometry. BiomAI extracts PDFs and images. BiomJSON checks JSON without an AI call.
- Check the patient, examination date, and OD/OS measurements. With a PDF or image, use Original to reopen the source, or Compare on a wide screen. Select Edit to correct values.
- Choose Download to keep the JSON result. If a BiomPIN was created, you can copy its link or open the result in the ESCRS calculator.
The web app requests a temporary BiomPIN automatically for single reports. Download results you want to keep. Browser History lists temporary shares. It does not keep a permanent copy of the measurements.
Continue with the Web app guide for phone upload, manual entry, datasets, and sharing. Before uploading patient data, review how BiomAPI handles it.
Integrate BiomAPI
Section titled “Integrate BiomAPI”Start with the Web Widget to add BiomAPI’s upload and review interface to your application. The Browser SDK opens the widget and provides BiomPIN retrieval, sharing, and optional local history. Use the REST API for direct file processing, your own interface, or server-side integrations.
Use the Web Widget
Section titled “Use the Web Widget”The Web Widget opens BiomAPI from a button in your application. The user uploads or retrieves a report. They check the result and press Send. Your application receives the checked response. Cancellation returns no data.
Try the live demo, then copy the complete example in the widget guide.
Make a REST request
Section titled “Make a REST request”Try the API with synthetic data. These commands save a sample report, submit it, and save the response:
curl --fail-with-body -o report.json https://biomapi.com/docs/examples/report.jsoncurl --fail-with-body https://biomapi.com/api/v1/biom/process \ -F "file=@report.json" \ -o result.jsonOpen result.json. Measurements are under data; metadata.extraction.method is BiomDIRECT for this JSON input. No BiomPIN is created unless you add -F "biompin=true". To extract a PDF instead, change the file argument to file=@report.pdf.
To create your own JSON, follow JSON input / BiomDIRECT for the required objects and automatically added metadata.
Public requests need no API key. See the REST API for options and errors, the response schema for fields, and authentication for higher quotas or your own OpenRouter key.
Work from a terminal or assistant
Section titled “Work from a terminal or assistant”Use the CLI for terminal workflows, or follow Use with an AI assistant to process reports through a supported assistant. For help building an integration, see Build with an AI agent.
If something goes wrong, see Troubleshooting.
