> ## Documentation Index
> Fetch the complete documentation index at: https://docs.api.ecylt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 二次元美图API

> 默认模式下返回可过审的正常图片的正常API！

<Warning>
  警告！我们不推荐你使用此API！如你使用则默认你同意造成的一切责任由你承担
</Warning>

<Info>
  我们推出了新版 API，更稳定的接口、更快的速度。欢迎试用。
</Info>

## 旧版 API

<ParamField path="https://api.ecylt.com/v1/no_img" type="GET">
  基础 API 端口
</ParamField>

<ParamField query="num" type="string">
  number of images (1-30)
</ParamField>

<ParamField query="r18" type="string">
  age rating (0 for all ages, 1 for 18+, 2 for random return of a graded picture (50% probability))
</ParamField>

<ParamField query="size" type="string">
  picture size (original、regular and small)
</ParamField>

<ParamField query="keyword" type="string">
  keywords contained in image tags (multiple keywords separated by "|")
</ParamField>

<ParamField query="output" type="string">
  output mode. If you do not add "json", 302 jumps; otherwise json format output
</ParamField>

<ResponseExample>
  ```json 200: OK normal response theme={null}
  // photo
  ```

  ```json 500: Internal Server Error wrong response theme={null}
  Try again after a while (temporarily blocked ip because request was too fast)
  ```
</ResponseExample>

API默认返回符合法律法规的全年龄段的图片，请勿使用 `r18` 参数，否则后果自负

***

## 新版 API（Beta）

<Accordion title="详情" defaultOpen>
  BaseURL: `https://random-image-api.ecylt.com`

  Example: `https://random-image-api.ecylt.com/api/random-image`
</Accordion>
