Skip to content

Document the output of text-to-image model bindings #21914

@TheGeorgeAlexander

Description

@TheGeorgeAlexander

Existing documentation URL(s)

What changes are you suggesting?

For all these pages, the Output section is empty. The object returned by the binding is not documented.

Show that the output from the binding is a ReadableStream. Not a buffer, JSON object or anything else the developer may guess. A simple sentence may be:

## Output

The binding returns a `ReadableStream` with the image in PNG format.

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