> For the complete documentation index, see [llms.txt](https://docs.kawaii.red/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kawaii.red/tutorials/type.md).

# Type

### What exactly does it change?

It only changes the structure of the api response it is not that this function is very important but it can be useful sometimes.

#### Usage:

```python
https://kawaii.red/api/gif/kiss?token=token&type=txt
```

#### Json Response:

```python
{"response": "https://api.kawaii.red/gif/kiss/kiss1.gif"}
```

#### Text Response:

```python
"https://api.kawaii.red/gif/kiss/kiss1.gif"
```

{% hint style="info" %}
The default type is json.
{% endhint %}
