Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 01:35 PM   #1
paraeliminar
Junior Member
paraeliminar began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2026
Device: Kindle
Exclamation KeyError: 'supportedGenerationMethods' when generating cover with Google AI

Hi,

I am getting the following error in Calibre 9.19.0 when trying to generate a book cover using Google AI:

Code:
calibre, version 9.19.0
ERROR: Generación de portadas fallida: Fallo al generar la portada: supportedGenerationMethods

Traceback (most recent call last):
  File "calibre\ai\utils.py", line 168, in image_generation_with_error_handler
  File "calibre\ai\google\backend.py", line 694, in <lambda>
  File "calibre\ai\google\backend.py", line 672, in generate_image_implementation
  File "calibre\ai\google\backend.py", line 378, in model_choices_for_images
  File "calibre\ai\google\backend.py", line 315, in get_available_models
  File "calibre\ai\google\backend.py", line 305, in parse_models_list
  File "calibre\ai\google\backend.py", line 260, in from_dict
KeyError: 'supportedGenerationMethods'
It seems one of the models returned by the Google API is missing the `supportedGenerationMethods` key. Could you please take a look?

Thanks!
paraeliminar is offline   Reply With Quote
Old Today, 02:13 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,957
Karma: 154365289
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What are you asking AI to do to generate your cover?

You could just go to Gemini directly to do it.

I just asked Gemini to create a cover for the book Wicked by Gregory Maguire. It's not bad.

Click image for larger version

Name:	Wicked.jpg
Views:	6
Size:	804.2 KB
ID:	227897

Last edited by JSWolf; Today at 02:17 PM.
JSWolf is offline   Reply With Quote
Advert
Reply

Tags
google, keyerror


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
generating ONE given cover among "pre-built" models Jacques Q. Library Management 2 02-18-2023 06:40 AM
Keeping old catalog cover when re-generating? Docno Library Management 3 06-19-2021 06:58 AM
KeyError: u'cover.jpeg' utubook Conversion 2 01-31-2017 01:01 PM
Request: generating cover if it is not avaiable commandante Library Management 5 07-17-2016 01:20 PM
HTML to MOBI command line convert not generating default cover? DarkAbsynthe Conversion 3 10-20-2013 12:53 AM


All times are GMT -4. The time now is 03:29 PM.


MobileRead.com is a privately owned, operated and funded community.