Skip to content

Doesn't work anymoreΒ #2

@Digioso

Description

@Digioso

I belive the reason for this is that gemini 2.0 is no longer available in AI Studio.
Instead they introduced Nano Banana (gemini 2.5).

`(base) digioso@My-bad-world:~/tools/gemini_picturebook_generator$ uv run gemini-picturebook
πŸš€ Starting Modern AI Story Generator UI v2.1
✨ Features: UNLIMITED scenes, modern design, real-time progress
🌐 Open your browser to: http://localhost:8080
πŸ“± Mobile-friendly responsive design
🎯 No scene limitations - create epic 1000+ scene sagas!

  • Serving Flask app 'gemini_picturebook_generator.flask_ui'
  • Debug mode: off
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:8080
  • Running on http://192.168.33.215:8080
    Press CTRL+C to quit
    127.0.0.1 - - [02/Sep/2025 12:48:45] "POST /generate HTTP/1.1" 200 -
    βœ… Successfully connected to Google Gemini API
    βœ… API connection test successful!
    πŸ€– Response: Hello! Yes, I'm working. How can I help you today?
    ...
    βœ… Successfully connected to Google Gemini API
    🎨 Generating custom story: 'A story about Ione: All output in german. Ione enters the magical fantasy game Avalorianda together with her online friend Kaleon. They fight against enemies. The story takes place in enchanted forest. Create this in realistic art style.'
    πŸ“Š Scenes to generate: 6
    ⏳ This may take several minutes due to rate limiting...
    ⏱️ Rate limit: 6 seconds between requests (10/minute limit)
    πŸ”„ Making API request...
    ❌ Error generating story: 404 NOT_FOUND. {'error': {'code': 404, 'message': 'models/gemini-2.0-flash-preview-image-generation is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.', 'status': 'NOT_FOUND'}}
    πŸ” Error type: ClientError
    πŸ’‘ This might be due to rate limiting. Try again later or reduce the number of scenes.
    127.0.0.1 - - [02/Sep/2025 12:48:47] "GET /status/story_20250902_124845_526964 HTTP/1.1" 200 -
    ^C(base) digioso@My-bad-world:
    /tools/gemini_picturebook_generator$`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions