Croway commented on PR #21936: URL: https://github.com/apache/camel/pull/21936#issuecomment-4039451939
Just for references, these are the image generated by the spring ai image component with the local model `x/flux2-klein:4b`: `A camel standing next to a red apple on a white table` <img width="512" height="512" alt="image" src="https://github.com/user-attachments/assets/9a7df44c-e184-45d1-a1e1-633f64860aa7" /> `A camel walking through a beautiful sunset over the ocean` <img width="512" height="512" alt="image" src="https://github.com/user-attachments/assets/d7c190ea-88d1-45d5-b627-6b0da140173d" /> `A camel resting under a green tree in a field` <img width="512" height="512" alt="image" src="https://github.com/user-attachments/assets/171b7d35-bd0d-4c99-8443-0607b1c7a3eb" /> Quite impressive considering that the model runs locally, from time to time I've got a 5 legged Camel, but I guess that's fine :D The usage within Camel is quite straightforward ``` from("direct:generateAndSave") .log("Generating image for file save, prompt: ${body}") .to("spring-ai-image:generateAndSave?imageModel=#imageModel&width=512&height=512") .to("file:/path/to/image?fileName=camel-file-saved.png") .log("Image saved to file"); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
