> ## 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.

# ACG image API

> Returns safe-for-work images by default in the standard mode!

<Warning>
  Warning! We do not recommend using this API! By using it, you agree to bear all responsibilities.
</Warning>

<Info>
  We have launched a new API with a more stable interface and faster speed. Feel free to try it out.
</Info>

## Legacy API

<ParamField path="https://api.ecylt.com/v1/no_img" type="GET">
  Base API endpoint
</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>

The API returns safe-for-work images for all age groups by default. Do not use the `r18` parameter, or you bear all consequences.

***

## New API (Beta)

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

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