adieyal / dynamicprompts

Templating language for generating prompts for text to image generators such as Stable Diffusion
MIT License
124 stars 20 forks source link

lexica.art API Too Many Requests #119

Closed lingondricka2 closed 8 months ago

lingondricka2 commented 9 months ago

I can't find any documentation regarding the API

raise GeneratorException(f"Error while generating prompt: {e}") from e
dynamicprompts.generators.promptgenerator.GeneratorException: Error while generating prompt: 429 Client Error: 
Too Many Requests for url: https://lexica.art/api/v1/search?
q=cat%20in%20wizard%20outfit%20casting%20a%20spell,%20dramatic,%20magic%20effects,%20cute

Do I need to slightly alter the search words each time?

lingondricka2 commented 9 months ago

I added some randomness to the search string each time and it seems to be working, is this a new API change? It worked fine 2 days ago.

akx commented 8 months ago

It's entirely possible it's a Lexica API change – we're not in control of the API, so we can't do much about this, sorry!