---
title: Text Filter
---

# Text Filter
POST *https://api.turing.sh/text/filter*

## Parameters


- **text**
  - Type: string
  - Required: true
  - Description: Text you want to filter

- **filters**
  - Type: array
  - Required: true
  - Description: Filters you want to apply
  - Options: nsfw, cp, toxicity

- **stream**
  - Type: boolean
  - Required: false

## Response


- **nsfw**
  - Type: boolean
  - Description: Whether the text is nsfw or not

- **youth**
  - Type: boolean
  - Description: Whether the text is youth or not

- **cp**
  - Type: boolean
  - Description: Whether the text is cp or not

- **toxic**
  - Type: boolean
  - Description: Whether the text is toxic or not

- **done**
  - Type: boolean
  - Description: Whether the request is done or not

## Examples

<CodeGroup title="Text Filter example">
  ```typescript
  import axios from "axios";
  (async () => {
    let response = await axios({
      method: "post",
      url: 'https://api.turing.sh/text/filter',
      headers: {
        "Content-Type": "application/json",
        Authorization: "Bearer YOUR_API_KEY",
        "x-captcha-token": "Captcha key"
      },
      data: {
  "text": "string",
  "filters": "nsfw"
},
    })
  })();
  ```
  ```python
  import requests
  import json
  response = requests.post(
    "https://api.turing.sh/text/filter",
    headers={
      "Content-Type": "application/json",
      "Authorization": "Bearer YOUR_API_KEY",
      "x-captcha-token": "Captcha key"
    },
    data=json.dumps({
  "text": "string",
  "filters": "nsfw"
}),
  )
  ```
</CodeGroup>