We run a commercial AI music platform for the Algerian market on lyria-3.5 (Gemini API). About 10% of our requests come back with:
HTTP 200
promptFeedback.blockReason = PROHIBITED_CONTENT
no candidates, no inlineData
The blocked content is ordinary wedding poetry. I bisected it and would like to share what I found, because I cannot identify anything prohibited in the text — and because the same content is accepted by Google’s own Flow Music.
What reproduces it
This 10-line block, sent as lyrics with any style prompt, is refused every time:
[Instrumental Intro]
[Verse 1]
ضربة القرقابو تنادي من قصبة الدار
[Female Chorus] صوت الڨمبري يسري في دم الأحرار
شعلوا الشموع ونثروا الورد والنوار
[Male Chorus] الليلة ميليسا تضوي كي قمر النهار
خاتم الفضة يلمع والمسك فاح وفار
[Female Chorus] جاك أمين الفارس بالهيبة والوقار
Literal translation:
The krakeb strike calls out from the house in the Casbah
The sound of the guembri runs in the blood of free men
They lit the candles and scattered roses and blossoms
Tonight Melissa shines like the daytime moon
The silver ring gleams, the musk has spread its scent
Amine the horseman arrived with dignity and poise
It is a Gnawa wedding song. Candles, flowers, a silver ring, the bride compared to the moon, the groom arriving.
What I ruled out, by bisection
- Not the style prompt. Replacing the Gnawa style with
Algerian wedding music, 100 BPM, darbuka and bendir, acoustic, festivechanges nothing. - Not the second half of the lyrics. It generates fine on its own.
- Not the line mentioning blood (
دم الأحرار). Removing it, the remaining five lines are still refused. - Not safetySettings. We send
BLOCK_ONLY_HIGHon all four configurable categories. No effect — which suggestsPROHIBITED_CONTENTis a separate, non-configurable filter. - Not transient. The same text was refused two days apart.
Timing
blocked 472 – 784 ms
successful 38,966 – 47,233 ms
The request is rejected before generation starts. Both are billed at the full generation rate, which is a separate question I have raised with billing.
The part I find hardest to explain
The same content is accepted by Google Flow Music. I pasted the style and the lyrics in the same structure and it produced a track. I understand Flow Music applies its own configuration — but the result is that content Google’s product generates is refused to Google’s API customers.
Questions
- Is
PROHIBITED_CONTENTgoverned by anything a developer can configure? If not, is that documented somewhere I missed? - Is there a known issue with non-English lyrics, or with Arabic script specifically? Three of our refusals were Arabic-script wedding or celebration songs.
- Does Vertex AI (
lyria-3/lyria-3-pro) apply the same policy? - Is there any way to validate a prompt before paying for a generation?
Happy to share request IDs and timestamps with anyone from the team.
If others are generating non-English lyrics on lyria-3.5, I would be curious whether you see the same thing.