What is the name of the modal you’re running?
NA
What is the error number?
5006
What is the error message?
cloudflare.BadRequestError: Error code: 400 - {‘errors’: [{‘message’: ‘AiError: AiError: Invalid input’, ‘code’: 5006}], ‘success’: False, ‘result’: {}, ‘messages’: }
What is the issue or error you’re encountering
Can’t generate images on “@cf/black-forest-labs/flux-1-schnell”
What are the steps to reproduce the issue?
I’m using python
I was using cloudflare==3.1.1
result = clientCF.workers.ai.run(
"@cf/black-forest-labs/flux-1-schnell",
account_id=os.getenv("CLOUDFLARE_ACCOUNT_ID"),
prompt="a lizzard in a forest",
)
I trying moving to cloudflare==4.0.0
with
result = clientCF.ai.run(
“@cf/black-forest-labs/flux-1-schnell”,
account_id=os.getenv(“CLOUDFLARE_ACCOUNT_ID”),
prompt=“a lizzard in a forest”,
)
And I get the same result. It seems that it started happening without any code change from my side. I started seeing this issue yesterday