Generate Image with NVIDIA NIM > Introduction to Generate Image with NVIDIA NIM recipe
  

Introduction to Generate Image with NVIDIA NIM recipe

The Generate Image with NVIDIA NIM recipe is based on REST and SOAP APIs. The recipe create images that aligns with the text-based descriptions provided in the natural language prompts and posts them to the Slack channel.
The process is triggered by a message in the Slack channel where the bot is deployed. It sends a prompt to NVIDIA NIM to generate an image, then receives the response in base64 format. The process converts this into an image attachment, uploads the file to Slack, and displays the generated image in the same channel.
The recipe supports image generation in the following formats, with a maximum size of 5 MB:
.png, .jpeg, .jpg.