Content policy
Song and cover requests to a model that screens its inputs are checked before they start, and a refused request costs nothing. Hans 2.0 (`hans-2` and `hans-2-cover`) does not screen prompts or lyrics today, as in the Mozart app. Song titles and the prompts for lyrics and cover art are still checked on every model.
What a screening model refuses
- Naming a real artist, in the prompt, the lyrics or the title. Describe the sound instead: genre, era, instruments and voice.
- Naming an existing song.
- Lyrics that match an existing song.
- Inputs that the music model refuses.
Refusal codes
A screening model's refusal answers HTTP 422 with type content_refused and one of these codes. When it can, details.matched_text shows the words that were refused.
| Code | Meaning |
|---|---|
AI_GENERATION_PROVIDER_REJECTED_INPUT | The model couldn't work with this request. Try changing it. |
GENERATION_INPUT_NAMES_REAL_ARTIST | Your request names a real artist. Describe the sound you want instead. |
GENERATION_INPUT_NAMES_EXISTING_SONG | Your request names an existing song. Describe the sound you want instead. |
GENERATION_LYRICS_MATCH_EXISTING_SONG | These lyrics match a song that already exists. Change the lyrics and try again. |
SCREENING_UNAVAILABLE | Only where a check runs: the safety check is busy or down. HTTP 503 with type service_unavailable, on live requests and dry runs alike. Wait details.retry_after_seconds (30), then retry with backoff and the same idempotency key. |
Good to know
- The check can be wrong in both directions. If a request is refused and you think it should not be, contact support with the
request_id. Do not reword a request to get around a refusal.
Commercial rights by plan
Placeholder: the commercial-rights terms for each API plan are being finalised and will be published here. Until then, the Mozart Terms of Service apply.