use kernelx_core::prelude::*; #[tokio::main] async fn main() -> Result<()> { let provider = OpenAI::from_env()?; // Checks env for $OPENAI_API_KEY let model = provider.get_model::("dall-e-3")?; let res = model .generate_image("Draw me the center of the galaxy") .await; println!("{:?}", res); // Image URL Ok(()) }