Fastino
  • Playground
  • Community
  • Blog
  • GET STARTED
    • Quickstart
    • Use the API
    • Rate Limits
    • Privacy Mode
    • GPU / CPU
  • Models
    • Classification
    • PII
    • Information Extraction
    • Text to JSON (experimental)
    • Function Calling (experimental)
  • Summarizaton (experimental)
  • Profanity Censor (experimental)
Powered by GitBook
On this page
  • Overview
  • Example Use Cases
  • Usage
  • Notes
  1. Models

Text to JSON (experimental)

Please note that this is a research preview of our Text to JSON model

Overview

Fastino’s Text to JSON model is designed to generate structured information from unstructured text using user-defined schemas. The model excels at converting freeform natural language—such as clinical notes, user-generated input, or financial records—into machine-readable JSON. It recognizes implicit relationships between information in text, and converts that to user-defined nested structures and hierarchical entities. It can adapt to a wide range of information structuring use cases by simply changing the schema definition.

Example Use Cases

  • Structuring clinical notes into standardized fields for downstream analytics

  • Extracting product details (e.g., price, brand, features) from descriptions or reviews

  • Parsing key-value fields from legal contracts, support tickets, or surveys

  • Pre-processing text for ingestion into databases or semantic search pipelines

Usage

Example Body
{
  "input": [
    {
      "text": "Patient reports ongoing migraines and nausea. Recommended starting sumatriptan 50mg once daily and ondansetron 4mg as needed. Follow-up in two weeks.",
      "parameters": {
        "extraction_schema": {
          "json_structures": [
            {
              "Medication": {
                "dose": "str",
                "name": "str",
                "frequency": "str"
              }
            }
          ]
        }
      }
    }
  ]
}
Example Response
{
  "medication": [
    {
      "dose": "50mg",
      "frequency": "once daily",
      "name": "sumatriptan"
    },
    {
      "dose": "4mg",
      "frequency": "as needed",
      "name": "ondansetron"
    }
  ]
}

Notes

  • The "extraction_schema" field allows you to define nested structures using intuitive JSON schemas. The current version of this model only support 2-level hierarchies

  • The model supports plural extraction for list-style sections (e.g., multiple medications, instructions, or entries).

PreviousInformation ExtractionNextFunction Calling (experimental)

Last updated 1 day ago