Articles on: Blocks Creator
This article is also available in:

🟦 AI image generation

AI image generation


The AI Image Generation block allows you to convert textual descriptions into dynamically generated images via integrated Artificial Intelligence models. It transforms narrative prompts or user input into unique visuals, tailored to creative choices or audience interactions.


This block is ideal for enriching interactive experiences with personalized visual elements, such as avatars, scenery or magical objects, without requiring pre-existing graphic resources.


πŸ“₯ Entries


  • prompt (Text): Detailed textual description of the image to generate (ex: "A cat flying in space in futuristic cyberpunk pixel art style"). The more precise the prompt, the more faithful the result will be to the request.
  • visual_style (Text - Optional): Optional parameter to guide the artistic style (eg: "Oil painting", "35mm photography", "Japanese Anime style").
  • (Internal configurations): The block automatically manages technical parameters such as seed or image ratio (square, landscape, portrait) via the underlying AI API.


πŸ“€ Outings


  • image_url (Text or Image Resource): AI-generated network or media address, usable directly in an image or background display block.
  • succes (Stream): Signal triggered when the image is ready and valid, allowing the stream to be synchronized with the display of the result.
  • error (Stream): Signal activated in the event of failure (server overload, prompt not complying with moderation rules, or connection problem).


πŸ’‘ Example of use


Scenario: Creating a custom fantasy landscape


  1. The player is invited to describe a magical place via a Text entry block: "An enchanted forest with trees with golden leaves and a crystal river under a purple sky".
  2. The entered text is passed to the prompt input of the AI Image Generation block.
  3. The visual_style is set to "Fantasy, detailed and bright illustration".
  4. The block is activated, and a loading indicator is displayed during generation (about 10 seconds).
  5. The successes signal is emitted, and the image_url is retrieved (ex: https://api.ia.../forest-xyz.jpg).
  6. The URL is passed to an Image Display block to show the generated landscape on the screen.


βš™οΈ Technical Details

  • Performance and costs: Image generation is a resource-intensive process. Plan for smooth loading states ("Creation in progress...") and monitor AI quotas defined in your creator account.
  • Error management: The error signal allows you to offer an alternative (eg: retry or display a default image) in the event of a technical problem or content refused.

Updated on: 04/03/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!