Annotate text

    Annotate text with language corrections and semantic tags. Useful for processing colloquial transcriptions.

    Request Body

    ParameterTypeRequiredDescription
    modelvalsea-annotateYes
    textstringYesText to annotate.
    response_formatjson | verbose_jsonNoDefault: json
    languagestringNoOptional language hint (e.g. "singlish").
    enable_correctionbooleanNoEnable language/grammar correction.
    enable_tagsbooleanNoEnable semantic tagging.

    Code Examples

    curl -X POST https://api.valsea.ai/v1/annotations \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "valsea-annotate",
        "text": "Hello, world"
      }'
    

    Response

    Minimal (json)

    FieldTypeDescription
    textstring
    annotationsarray

    Verbose (verbose_json)

    FieldTypeDescription
    textstring
    raw_textstring
    accent_correctionsarray
    semantic_tagsarray
    annotated_textstring
    annotationsarray

    Errors

    StatusDescription
    401Missing or invalid API key
    402Insufficient credits

    Was this page helpful?