# 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 %}


---

# 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.kawaii.red/tutorials/type.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.
