Skip to content

Inconsistent image type for @cf/bytedance/stable-diffusion-xl-lightning #21022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
leonardcser opened this issue Mar 21, 2025 · 1 comment
Closed
Assignees
Labels
product:workers-ai Workers AI: https://developers.cloudflare.com/workers-ai/

Comments

@leonardcser
Copy link

leonardcser commented Mar 21, 2025

The Usage > Workers - TypeScript shows a jpeg output type.

The API Schemas > Output shows a png output type.

When using the api, I observe a jpeg image.

Expected

API Schemas > Output should show image/jpeg.

Affected Page

https://developers.cloudflare.com/workers-ai/models/stable-diffusion-xl-lightning/#API%20Schemas

@haleycode haleycode added the product:workers-ai Workers AI: https://developers.cloudflare.com/workers-ai/ label Mar 21, 2025
@kodster28
Copy link
Contributor

Howdy @leonardcser, I've flagged this internally in a ticket for ENG (AI-2573 for reference). Also asked them to comment back here when that ticket is addressed.
(we pull our docs from that schema and -- as such -- it has to be fixed upstream)

Closing this out as we can't do any more on the "Docs Site" side of this problem. As noted before, the ENG team should come back here and update you when the underlying schema logic has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product:workers-ai Workers AI: https://developers.cloudflare.com/workers-ai/
Projects
None yet
Development

No branches or pull requests

7 participants