Hey everyone,
Currently facing a little challenge, I’m trying to generate images with gemini image API. For some reasons a lot of them get blocked due to PROHIBITED CONTENT which is very weird:
A) I carefully checked the prompt and I don’t see anything that could trigger the PROHIBITED CONTENT (see the prompt after)
B) I tested the very exact same prompt in the chat and got the image generated systematically. I tried dozens of images to be sure.
What could be the issue here? By the way I read that system prompt can be problem as well as streaming parameter. I haven’t included any of them in my code.
IF you have any insights that would be very helpful
Thank you
##CONTEXT##
You are provided with TWO images: Two canvases containing the same **product** with different angles on white backgrounds
##SCENE & PRODUCTION INSERTION INSTRUCTIONS##
Generate the scene with the inserted **product** according to the instructions provided below.
Ensure a consistent integration of the product, relevant, seamless and natural.
{
"rendering_protocol": "YOU ARE an advanced image generator that can parse instructions. Build an authentic real-life scene for a social media post (e.g., Instagram), taken as if from a phone by a companion. The scene contains a clear insertion of the product. Understand the nature of the product to ensure a realistic, seamless depiction. Do NOT render keys, labels, section markers, or instructions.",
"target_audience": "Who? The Peak Performer, 25-40, gender-neutral. Driven, analytical individuals in high-stakes roles (tech, finance, creative). What they want? They seek to optimize their mental and physical state for demanding tasks, valuing tools that enhance focus, flow states, and cognitive resilience.",
"shot_angle": "A medium shot from a slightly low angle, capturing the subject from the waist up. The perspective is intimate, as if taken by someone sitting across the table on a train.",
"subject_features_expressions": "A person in their early 30s, androgynous, with a sharp, intelligent look. Their eyes are closed, not in sleep, but in deep concentration. Their expression is one of intense internal focus—a calm, controlled state of 'flow'. The brow is relaxed, the jaw is unclenched, embodying a state of peak mental clarity.",
"physical_features": "Natural skin texture with subtle imperfections; A strong bone structure with a defined jawline; Short, dark, slightly tousled hair; Eyebrows are natural and well-defined. The subject has a lean, athletic build, suggesting a disciplined lifestyle.",
"real_life_setup": "Inside a modern, first-class cabin of a high-speed train. The subject is seated in a comfortable, minimalist seat next to a large window. On the sleek table in front of them is a high-performance laptop (closed) and a single black Moleskine notebook with a pen resting on it.",
"scene": "The landscape outside the large train window is a dramatic blur of motion, suggesting high speed and the passage of time. The interior of the train is calm and bathed in a mix of soft, ambient cabin light and the cool, natural light from the window, creating a stark contrast between the subject's inner stillness and the world rushing by.",
"product_insertion": "The subject is wearing a dark, high-quality, fitted merino wool t-shirt. The product, a sleek, minimalist breathing belt, is worn over the shirt around their midsection. It's clearly visible as they lean back slightly, hands resting calmly on their lap. The product's placement emphasizes their centered, controlled posture.",
"photography_style": "Shot on Fujifilm X100V, cinematic, candid moment, shallow depth of field, natural light from the window, capturing the texture of the clothing and the subtle details of the subject's focused expression.",
"compliance": "Full bleed image, NO borders, No Phone Visible. Seamless, Highly Consistent & Relevant Product Insertion. Extremely authentic character & set-up, Social media Post style. The pose must be anatomically correct, natural, and physically plausible. NEVER render keys, labels, section markers, or instructions.",
"negative_prompt": "top_left logo, perfectly symmetrical face, flawless, retouched, photoshop, airbrushed, smooth skin, glossy skin, pristine, forced smile, insincere expression, flat lighting, harsh lighting, over-sharpened, mannequin-like, static expression, stiff expression, unemotional, vacant stare, empty eyes, lifeless eyes, glassy eyes, extra limbs, extra hands, malformed hands, bad anatomy, unnatural pose, deformed, disfigured, brand name, logo, text, buttons, CTA",
"negative_space": "top_left"
}