# Text

## Enhances user-provided text and streams the result.

> Validates feature licensing, invokes text enhancement, and streams generated output chunks back to the caller.

```json
{"openapi":"3.0.1","info":{"title":"WebApi | v1","version":"1.0.0"},"tags":[{"name":"Text"}],"servers":[{"url":"https://api.safegpt.nl/"}],"paths":{"/v1/Text/Execute":{"post":{"tags":["Text"],"summary":"Enhances user-provided text and streams the result.","description":"Validates feature licensing, invokes text enhancement, and streams generated output chunks back to the caller.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteTextViewModel"}},"text/json":{"schema":{"$ref":"#/components/schemas/ExecuteTextViewModel"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/ExecuteTextViewModel"}}},"required":true},"responses":{"200":{"description":"OK"}}}}},"components":{"schemas":{"ExecuteTextViewModel":{"required":["prompt"],"type":"object","properties":{"prompt":{"type":"string","description":"Input text or prompt to enhance."}},"description":"Represents the payload for text enhancement execution."}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.safegpt.nl/api-nl/endpoints/text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
