Convert annotated text
Convert annotated text (with semantic tags) into clean, readable text.
This endpoint requires authentication. Include your API key in the Authorization header.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
model | valsea-convert | Yes | |
annotated_text | string | Yes | Annotated text to convert. |
response_format | json | verbose_json | No | Default: json |
semantic_tags | array | No | |
semantic_tags[].tag | string | No | |
semantic_tags[].phrase | string | No | |
semantic_tags[].meaning | string | No |
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)
| Field | Type | Description |
|---|---|---|
converted_text | string |
Verbose (verbose_json)
| Field | Type | Description |
|---|---|---|
converted_text | string | |
annotated_text | string |
Errors
| Status | Description |
|---|---|
401 | Missing or invalid API key |
402 | Insufficient credits |