> For the complete documentation index, see [llms.txt](https://docs.night-api.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.night-api.com/images/sfw.md).

# SFW

{% hint style="danger" %}
This API requires an API key to be sent along with your requests: Get yours by <mark style="color:red;">creating an account</mark>
{% endhint %}

Different methods exist to have SFW images, currently there are three and here they are:

* [**Random SFW**](/images/sfw/aleatoire.md): You have random images

{% content-ref url="/pages/tzOnzgyeQRzh9EHiA6SE" %}
[Random](/images/sfw/aleatoire.md)
{% endcontent-ref %}

* [**SFW images by category**](/images/sfw/type.md): You will receive only the images of which you indicated the category&#x20;

{% content-ref url="/pages/dcifYyZM5OrbP0exRdk2" %}
[Category](/images/sfw/type.md)
{% endcontent-ref %}

* [**SFW images by ID**](/images/sfw/id.md): You will receive the images of which you indicate the ID

{% content-ref url="/pages/4LGkFIUJk4oGOGLEfqNF" %}
[ID](/images/sfw/id.md)
{% endcontent-ref %}

Here is an example of what each method returns

```json
{
    "status": 200,
    "content": {
        "id": 34,
        "type": "holo",
        "url": "https://cdn.night-api.com/api/images/sfw/holo/75f9fcb764921bfaedc9e4182db02.jpg"
    }
}
```
