Skip to content

Workers AI Docs: stable-diffusion-v1-5-inpainting curl example needs update #21061

@durraniu

Description

@durraniu

Existing documentation URL(s)

https://developers.cloudflare.com/workers-ai/models/stable-diffusion-v1-5-inpainting/

What changes are you suggesting?

The curl example is:

curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run/@cf/runwayml/stable-diffusion-v1-5-inpainting  \
  -X POST  \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"  \
  -d '{ "prompt": "cyberpunk cat" }'

But using this throws an error:

{"errors":[{"message":"AiError: AiError: Model input is not valid: missing required input mask_image","code":3030}],"success":false,"result":{},"messages":[]}

Does that mean that image and mask are required inputs? If yes, please update the curl example to reflect that. Thanks.

Additional information

No response

Metadata

Metadata

Labels

content:editRequest for content editsdocumentationDocumentation editsproduct:workers-aiWorkers AI: https://developers.cloudflare.com/workers-ai/

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions