Failed to generate content: permission denied

image

Same issue now with me near 50k tokens…why this happening

1 Like

Same problem for me, even if the content isn’t explicit or immoral, but after several reruns it doesn’t show up again. Sometimes it gets fixed when I replace certain words with synonyms or use a clearer structure.

pues yo para asegurarme de que no fuera algo que estaba escribiendo le puse “Buen Día” y me sigue dando el mismo error… o sea, no es porque le esté poniendo algo fuera de lugar ni nada, simplemente NO FUNCIONA!!

1 Like

Hi guys @Jeriff @Mauricio_Jose_Tobare
Could you please confirm:

  • For which specific model is this error occurring?
  • Is the error Failed to generate content: permission denied repeating consistently?
    Thank You

Gemini 2.5 Flash, hay veces que no deja hacer nada, luego se arregla y anda todo el día como si nada, así que no creo que sea por “el contenido” sino algo que pasa fuera del control del usuario

Thanks for this input. I’ll update the product team about it.

Hi @all,

Are you all using Gemini APIs or using via AI Studio?

To help us debug your issues:
For all API related issues, please DM me your Project ID and for all AI Studio issues please DM me with your gmail ID

2 Likes

How do we DM you? I don’t see the option to DM when I click on your ID.

Hi @SamLwin,

Welcome to the Google AI Forum! :confetti_ball: :confetti_ball:

Click on my profile and you should find “Message” button in the top-right corner on my profile..

I just DMed you.. Please check and respond based on the issue you are facing..

same issues I am facing.

1 Like

Hi @Krish_Varnakavi1 - I too am having issues with error messages with Google AI Studio . I cant find a message option for you, can you please share any guidance as its been nearly a week ive been experiencing this issue. Its isolated to my primary laptop, other devices still work most of the time however my laptop has received the same responses to old or new chats even if i type just “hello” or “test” - screen shot attached:

Still happening to me here and there. Firefox would not load correct, but Chrome does of course.

  1. “Failed to generate content: permission denied”
  • Significa que tu cuenta no tiene permisos para generar ese tipo de contenido.
  • Puede deberse a que no habilitaste la API de imagen en tu proyecto de Google Cloud, o tu cuenta no está incluida en el “allowlist” para esa funciĂłn.
  1. “An internal error has occurred”
  • Normalmente aparece cuando el modelo no puede procesar el prompt porque está bloqueado o hay un problema de configuraciĂłn interna en Google AI Studio.
  1. Posibles causas concretas:
  • No habilitaste la facturaciĂłn en tu proyecto de Google Cloud.
  • Estás usando un modelo que no soporta generaciĂłn de imágenes, solo texto.
  • Restricciones de polĂ­ticas de contenido: Google puede bloquear prompts con ciertas palabras sensibles (ejemplo: “Dios”, “rayos de luz divinos”) porque su sistema de seguridad lo interpreta como contenido religioso sensible.
  • El proyecto en Google AI Studio aĂşn está en fase beta y no todos los usuarios tienen permisos para usar la funciĂłn de generaciĂłn de imágenes.

:white_check_mark: Qué puedes hacer:

  • Entra a Google Cloud Console, activa la facturaciĂłn y asegĂşrate de habilitar la API Generative AI.
  • Verifica que estás eligiendo un modelo compatible con imagen (p. ej. imagen-3.0 o el que Google tenga habilitado).
  • Intenta cambiar un poco el prompt, quitando palabras como “Dios” o reemplazándolas por “luces celestiales intensas” para evitar bloqueo.
  • Si sigue saliendo, lo más probable es que tu cuenta aĂşn no tenga acceso a la funciĂłn de generaciĂłn de imágenes en Google AI Studio.

same problem do you resolved this issue