Generate Images from Text with IBM Granite Vision 3.3 2B AI Model
Go to WorkflowDescription
Generate Images from Text with IBM Granite Vision 3.3 2B AI Model
π Overview
This workflow uses the ibm-granite/granite-vision-3.3-2b model (hosted on Replicate) to generate AI images. It starts manually, sends a request to the Replicate API, waits for the result, and finally outputs the generated image link.
Think of it as your AI art assistant β you click once, and it handles the full request/response cycle for image generation.
π’ Section 1: Trigger & API Setup
π Nodes:
Manual Trigger* β Starts when you click *Execute.
Set API Key** β Stores your Replicate API Key safely in the workflow.
π‘ Beginner takeaway:
This section is like turning the key in the ignition. You start the workflow, and it loads your credentials so you can talk to Replicateβs API.
π Advantage:
Keeps your API key stored inside the workflow instead of hard-coding it everywhere.
π¦ Section 2: Create Prediction
π Nodes:
HTTP Request (Create Prediction)** β Sends a request to Replicate with the chosen model (granite-vision-3.3-2b) and input parameters (seed, temperature, max\_tokens, etc.).
π‘ Beginner takeaway:
This is where the workflow actually asks the AI model to generate an image.
π Advantage:
You can tweak parameters like creativity (temperature) or randomness (seed) to control results.
π£ Section 3: Polling & Status Check
π Nodes:
Extract Prediction ID (Code)** β Saves the unique job ID.
Wait (2s)** β Pauses before checking status.
Check Prediction Status (HTTP Request)** β Calls Replicate to see if the image is ready.
If Condition (Check If Complete)** β
β
If status = succeeded β move to result
π Else β go back to Wait and check again
π‘ Beginner takeaway:
Since image generation takes a few seconds, this section keeps asking the AI βare you done yet?β until the image is ready.
π Advantage:
No need to guess β the workflow waits automatically and retries until success.
π΅ Section 4: Process Result
π Nodes:
Process Result (Code)** β Extracts the final data:
β
Status
β
Output image URL
β
Metrics (time taken, etc.)
β
Model info
π‘ Beginner takeaway:
This section collects the finished image link and prepares it neatly for you.
π Advantage:
You get structured output that you can save, display, or use in another workflow (like auto-sending images to Slack or saving to Google Drive).
π Final Overview Table
| Section | Nodes | Purpose | Benefit |
| -------------------- | ---------------------------------- | --------------------------- | --------------------------- |
| π’ Trigger & Setup | Manual Trigger, Set API Key | Start + load credentials | Secure API key management |
| π¦ Create Prediction | HTTP Request | Ask AI to generate image | Control creativity & output |
| π£ Polling | Extract ID, Wait, Check Status, If | Repeatedly check job status | Auto-wait until done |
| π΅ Process Result | Process Result | Extract image + details | Get clean output for reuse |
π Why This Workflow is Useful
Automates full API cycle** β From request to final image URL
Handles delays automatically** β Keeps checking until your image is ready
Customizable parameters** β Adjust creativity, randomness, and token limits
Reusable** β Connect it to email, Slack, Notion, or storage for instant sharing
Beginner-friendly* β Just plug in your API key and hit *Execute