Ibm Granite Granite Vision 3.3 2b Image Generator
Description
Granite-vision-3.3-2b is a compact and efficient vision-language model, specifically designed for visual document understanding, enabling automated content extraction from tables, charts, infographics, plots, diagrams, and more.
Overview
This n8n workflow integrates with the Replicate API to use the ibm-granite/granite-vision-3.3-2b model. This powerful AI model can generate high-quality image content based on your inputs.
Features
- Easy integration with Replicate API
- Automated status checking and result retrieval
- Support for all model parameters
- Error handling and retry logic
- Clean output formatting
Parameters
Optional Parameters
- seed (integer, default: None): Random seed. Leave blank to randomize the seed.
- image (string, default: None): Deprecated single image input.Use images input instead.Ignored if images used.
- top_k (integer, default: 50): The number of highest probability tokens to consider for generating the output. If > 0, only keep the top k tokens with highest probability (top-k filtering).
- top_p (number, default: 0.9): A probability threshold for generating the output. If < 1.0, only keep the top tokens with cumulative probability >= top_p (nucleus filtering). Nucleus filtering is described in Holtzman et al. (http://arxiv.org/abs/1904.09751).
- images (array, default: None): Image inputs for the model.
- prompt (string, default: ): User prompt to send to the model.
- max_tokens (integer, default: 512): The maximum number of tokens the model should generate as output.
- min_tokens (integer, default: 0): The minimum number of tokens the model should generate as output.
- temperature (number, default: 0.6): The value used to modulate the next token probabilities.
- chat_template (string, default: None): A template to format the prompt with. If not provided, the default prompt template will be used.
How to Use
- Set up your Replicate API key in the workflow
- Configure the required parameters for your use case
- Run the workflow to generate image content
- Access the generated output from the final node
API Reference
Requirements
- Replicate API key
- n8n instance
- Basic understanding of image generation parameters