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

# Moderation & Conversion API

> Rate content for NSFW level, screen for CSAM, classify a song's genre, and convert image, video and audio files with synchronous BudgetPixel API endpoints.

**Image, video, audio or text → rating, label or new file.** These endpoints answer in the
same request: the response carries the result, with no job to poll.

## Moderation

| Endpoint | What it does |
| - | - |
| [Rate content NSFW level](/api-reference/moderation/rate-content-nsfw-level)<br />`POST /v1/moderations/nsfw` | Rate text, images, and/or one video on BudgetPixel's 4-level NSFW scale — the same classifier and scale the platform itself moderates with. |
| [Check content for CSAM](/api-reference/moderation/check-content-for-csam)<br />`POST /v1/moderations/csam` | Check text, images, and/or one video for child sexual abuse material (CSAM), using the same child-safety classifier and rubric BudgetPixel runs on all platform content. |

Each check costs 2 credits, plus 3 per image and 15 for a video.

## Music genre

| Endpoint | What it does |
| - | - |
| [Classify a song's music genre](/api-reference/classification/classify-a-songs-music-genre)<br />`POST /v1/classifications/music-genre` | Classify one song into BudgetPixel's canonical music genre taxonomy — the same classifier that powers the site's music gallery. |

10 credits per song.

## File conversion

| Endpoint | What it does |
| - | - |
| [Convert an image](/api-reference/conversions/convert-an-image)<br />`POST /v1/convert/image` | Convert an image to `png`, `jpg`, `webp`, or `gif`. |
| [Convert a video](/api-reference/conversions/convert-a-video)<br />`POST /v1/convert/video` | Convert a video to `mp4`, `webm`, `mov`, or `gif` (video→gif is palette-optimized). |
| [Convert an audio file](/api-reference/conversions/convert-an-audio-file)<br />`POST /v1/convert/audio` | Convert audio to `mp3`, `wav`, `ogg`, or `m4a`. |

2 credits per conversion, charged only on success.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.