Convert annotated text

    Convert annotated text (with semantic tags) into clean, readable text.

    Request Body

    ParameterTypeRequiredDescription
    modelvalsea-convertYesModel name. Always valsea-convert.
    annotated_textstringYesAnnotated text to convert.
    response_formatjson | verbose_jsonNoDefault: json
    semantic_tagsarrayNoOptional context — local expressions and meanings to guide the conversion.
    semantic_tags[].tagstringNoSemantic tag category (e.g. price_objection).
    semantic_tags[].phrasestringNoThe local phrase the tag applies to.
    semantic_tags[].meaningstringNoPlain-English meaning of the phrase, used as context.

    Code Examples

    curl -X POST https://api.valsea.ai/v1/conversions \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "valsea-convert",
        "annotated_text": "Your annotated text here..."
      }'
    

    Response

    Minimal (json)

    FieldTypeDescription
    converted_textstringThe transcript rewritten into natural, fluent English.

    Verbose (verbose_json)

    FieldTypeDescription
    converted_textstringThe transcript rewritten into natural, fluent English.
    annotated_textstringEchoes the annotated_text from the request.

    Errors

    StatusDescription
    400Invalid request — missing annotated_text or unsupported model
    401Missing or invalid API key
    402Insufficient credits
    500Conversion service not configured
    502Upstream AI service error

    Was this page helpful?