I am using FLUX Schnell like this: ``` curl --location --request POST 'https://api.cloudflare.com/
I am using FLUX Schnell like this:
And I get this error:
What causes this? What modification should I make to my code?
curl --location --request POST 'https://api.cloudflare.com/client/v4/accounts/REDACTED/ai/run/@cf/black-forest-labs/flux-1-schnell' \
--header 'Authorization: Bearer REDACTED' \
--header 'Content-Type: application/json' \
--header 'Cookie: __cf_bm=V5sLTJx2Y7d6s6bClk.umX36FohdsTMoXamYf1pW1f8-1741683179-1.0.1.1-rGuk5rHKjPNKMCBtB45ZW51MZeJUyqVGXeW4hr0o0m7F7JFsT315BeJAbXd8LKCOuApweso_4kAYQf4SfM6R60cd.ZtvxRyn6o3qLISOqS4' \
--data-raw '{
"prompt" : "A serene tropical beach at sunset, a cozy wooden cottage with smoke rising from the chimney, tall swaying palm trees, calm ocean waves reflecting golden hues of sunlight, painted in a dreamy watercolor style with soft, vibrant colors and intricate details.",
"steps" : 8,
"width" :1024,
"height" : 1024,
"seed" : 93617911245
}'curl --location --request POST 'https://api.cloudflare.com/client/v4/accounts/REDACTED/ai/run/@cf/black-forest-labs/flux-1-schnell' \
--header 'Authorization: Bearer REDACTED' \
--header 'Content-Type: application/json' \
--header 'Cookie: __cf_bm=V5sLTJx2Y7d6s6bClk.umX36FohdsTMoXamYf1pW1f8-1741683179-1.0.1.1-rGuk5rHKjPNKMCBtB45ZW51MZeJUyqVGXeW4hr0o0m7F7JFsT315BeJAbXd8LKCOuApweso_4kAYQf4SfM6R60cd.ZtvxRyn6o3qLISOqS4' \
--data-raw '{
"prompt" : "A serene tropical beach at sunset, a cozy wooden cottage with smoke rising from the chimney, tall swaying palm trees, calm ocean waves reflecting golden hues of sunlight, painted in a dreamy watercolor style with soft, vibrant colors and intricate details.",
"steps" : 8,
"width" :1024,
"height" : 1024,
"seed" : 93617911245
}'And I get this error:
{
"errors": [
{
"message": "AiError: AiError: Invalid input",
"code": 5006
}
],
"success": false,
"result": {},
"messages": []
}{
"errors": [
{
"message": "AiError: AiError: Invalid input",
"code": 5006
}
],
"success": false,
"result": {},
"messages": []
}What causes this? What modification should I make to my code?
