Skip to content

Image Generation #118

@JLesaintAfpa

Description

@JLesaintAfpa

Describe the bug
First of all, thank you for this nice work.
I try to generate images with webscout according to samples in the deep wiki
https://deepwiki.com/OEvortex/Webscout/3.5-image-generation-api
But always, i have this error message :

Traceback (most recent call last):
  File "C:\Users\Home\Documents\projects\agents-ia-main\sample7.py", line 6, in <module>
    response = client.images.generate(
        prompt="A serene Japanese garden with cherry blossoms",
        model="auto",
        n=1
    )
  File "C:\Users\Home\Documents\projects\agents-ia-main\venv\Lib\site-packages\webscout\client.py", line 1167, in generate
    raise RuntimeError("All image providers failed.")

To Reproduce
I wrote this code in Python (copy-paste from documentation)

from webscout import Client
 
client = Client()
 
# Generate with automatic provider selection
response = client.images.generate(
    prompt="A serene Japanese garden with cherry blossoms",
    model="auto",
    n=1
)
 
print(f"Generated image URL: {response.data[0].url}")

But always, i have this error message :

Traceback (most recent call last):
  File "C:\Users\Home\Documents\projects\agents-ia-main\sample7.py", line 6, in <module>
    response = client.images.generate(
        prompt="A serene Japanese garden with cherry blossoms",
        model="auto",
        n=1
    )
  File "C:\Users\Home\Documents\projects\agents-ia-main\venv\Lib\site-packages\webscout\client.py", line 1167, in generate
    raise RuntimeError("All image providers failed.")

Expected behavior
I just want generate images with webscout according to samples on documentation

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions