The image is around 3,5mb so you recommend compressing them?
The image is around 3,5mb so you recommend compressing them?
sharp, I believe they have a WASM backend now that might work in WorkersAiError: AiError: Unknown internal error@cf/black-forest-labs/flux-1-schnell to work? Even the short example at https://developers.cloudflare.com/workers-ai/models/flux-1-schnell/ is broken for me.sharp{
"messages": [
{
"role": "system",
"content": "You are a bot that parses user input into recipe ingredients..."
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "[\"2 tbsp minced cilantro, leaves and stems\"]"
}
]
}
],
"return_citations": true,
"return_images": true
}{
"errors": [
{
"message": "AiError: Bad input: must have required property 'prompt', 'messages1content' must be string, must match exactly one schema in oneOf",
"code": 5006
}
],
"success": false,
"result": {},
"messages": []
}AiError: AiError: Unknown internal errorcurl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run/@cf/black-forest-labs/flux-1-schnell -X POST -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" -d '{ "prompt": "cyberpunk cat" }'
{"errors":[{"message":"AiError: AiError: Input prompt contains NSFW content.","code":3030}],"success":false,"result":{},"messages":[]}@cf/black-forest-labs/flux-1-schnell