Clarify text
Transform noisy or colloquial transcriptions into clear, grammatically correct text.
This endpoint requires authentication. Include your API key in the Authorization header.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
model | valsea-clarify | Yes | |
text | string | Yes | Text to clarify. |
response_format | json | verbose_json | No | Default: json |
language | string | No | Optional language hint (e.g. "singlish"). |
Code Examples
curl -X POST https://api.valsea.ai/v1/clarifications \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "valsea-clarify",
"text": "Hello, world"
}'
Response
Minimal (json)
| Field | Type | Description |
|---|---|---|
clarified_text | string |
Verbose (verbose_json)
| Field | Type | Description |
|---|---|---|
clarified_text | string | |
raw_text | string | |
explanations | array | |
revisions | array |
Errors
| Status | Description |
|---|---|
401 | Missing or invalid API key |
402 | Insufficient credits |