The Instill Model component is an AI component that allows users to connect the Al models served in the Instill Core platform.
It can carry out the following tasks:
Category text string corresponding to each stuff mask.
RLE
rle
string
Run Length Encoding (RLE) of each stuff mask within the image.
Text Generation
Generate texts from input text prompts.
Input
Field ID
Type
Description
Task ID (required)
task
string
TASK_TEXT_GENERATION
Model Name (required)
model-name
string
The Instill Model model to be used.
Prompt (required)
prompt
string
The prompt text.
System Message
system-message
string
The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. By default, the model’s behavior is using a generic message as "You are a helpful assistant.".
Seed
seed
integer
The seed.
Temperature
temperature
number
The temperature for sampling.
Max New Tokens
max-new-tokens
integer
The maximum number of tokens for model to generate.
Output
Field ID
Type
Description
Text
text
string
Text.
Text Generation Chat
Generate texts from input text prompts and chat history.
Input
Field ID
Type
Description
Task ID (required)
task
string
TASK_TEXT_GENERATION_CHAT
Model Name (required)
model-name
string
The Instill Model model to be used.
Prompt (required)
prompt
string
The prompt text.
System Message
system-message
string
The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. By default, the model’s behavior is using a generic message as "You are a helpful assistant.".
Incorporate external chat history, specifically previous messages within the conversation. Please note that System Message will be ignored and will not have any effect when this field is populated. Each message should adhere to the format: {"role": "The message role, i.e. 'system', 'user' or 'assistant'", "content": "message content"}.
Seed
seed
integer
The seed.
Temperature
temperature
number
The temperature for sampling.
Max New Tokens
max-new-tokens
integer
The maximum number of tokens for model to generate.
Input Objects in Text Generation Chat
Chat History
Incorporate external chat history, specifically previous messages within the conversation. Please note that System Message will be ignored and will not have any effect when this field is populated. Each message should adhere to the format: {"role": "The message role, i.e. 'system', 'user' or 'assistant'", "content": "message content"}.
Either a URL of the image or the base64 encoded image data.
Output
Field ID
Type
Description
Text
text
string
Text.
Text to Image
Generate images from input text prompts.
Input
Field ID
Type
Description
Task ID (required)
task
string
TASK_TEXT_TO_IMAGE
Model Name (required)
model-name
string
The Instill Model model to be used.
Prompt (required)
prompt
string
The prompt text.
Samples
samples
integer
The number of generated samples, default is 1.
Seed
seed
integer
The seed, default is 0.
Aspect Ratio
negative-prompt
string
Keywords of what you do not wish to see in the output image.
Aspect Ratio
aspect-ratio
string
Controls the aspect ratio of the generated image. Defaults to 1:1. Enum values
16:9
1:1
21:9
2:3
3:2
4:5
5:4
9:16
9:21
Output
Field ID
Type
Description
Images
images
array[image/jpeg]
Images.
Visual Question Answering
Answer questions based on a prompt and an image.
Input
Field ID
Type
Description
Task ID (required)
task
string
TASK_VISUAL_QUESTION_ANSWERING
Model Name (required)
model-name
string
The Instill Model model to be used.
Prompt (required)
prompt
string
The prompt text.
System Message
system-message
string
The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. By default, the model’s behavior is using a generic message as "You are a helpful assistant.".
Incorporate external chat history, specifically previous messages within the conversation. Please note that System Message will be ignored and will not have any effect when this field is populated. Each message should adhere to the format: {"role": "The message role, i.e. 'system', 'user' or 'assistant'", "content": "message content"}.
Seed
seed
integer
The seed.
Temperature
temperature
number
The temperature for sampling.
Max New Tokens
max-new-tokens
integer
The maximum number of tokens for model to generate.
Input Objects in Visual Question Answering
Chat History
Incorporate external chat history, specifically previous messages within the conversation. Please note that System Message will be ignored and will not have any effect when this field is populated. Each message should adhere to the format: {"role": "The message role, i.e. 'system', 'user' or 'assistant'", "content": "message content"}.
Either a URL of the image or the base64 encoded image data.
Output
Field ID
Type
Description
Text
text
string
Text.
Chat
Generate texts from input text prompts and chat history.
Input
Field ID
Type
Description
Task ID (required)
task
string
TASK_CHAT
Model Name (required)
model-name
string
The Instill Model model to be used.
Prompt (required)
prompt
string
The prompt text.
System Message
system-message
string
The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. By default, the model’s behavior is using a generic message as "You are a helpful assistant.".
Incorporate external chat history, specifically previous messages within the conversation. Please note that System Message will be ignored and will not have any effect when this field is populated. Each message should adhere to the format: {"role": "The message role, i.e. 'system', 'user' or 'assistant'", "content": "message content"}.
Seed
seed
integer
The seed.
Temperature
temperature
number
The temperature for sampling.
Max New Tokens
max-new-tokens
integer
The maximum number of tokens for model to generate.
Input Objects in Chat
Chat History
Incorporate external chat history, specifically previous messages within the conversation. Please note that System Message will be ignored and will not have any effect when this field is populated. Each message should adhere to the format: {"role": "The message role, i.e. 'system', 'user' or 'assistant'", "content": "message content"}.
Either a URL of the image or the base64 encoded image data.
Output
Field ID
Type
Description
Text
text
string
Text.
Embedding
This task refers to the process of generating vector embeddings from input data, which can be text or images. This transformation converts the data into a dense, fixed-length numerical representation that captures the essential features of the original input. These embeddings are typically used in machine learning tasks to represent complex data in a more structured, simplified form.
The model to be used for generating embeddings. It should be namespace/model-name/version. i.e. abrc/yolov7-stomata/v0.1.0. You can see the version from the Versions tab of Model page.
Parameter
Input parameter.
Field
Field ID
Type
Note
Dimensions
dimensions
integer
Number of dimensions in the output embedding vectors.
Data Format
format
string
The data format of the embeddings. Defaults to float. Enum values
float
base64
Input Type
input-type
string
The type of input data to be embedded (e.g., query, document).
Truncate
truncate
string
How to handle inputs longer than the max token length. Defaults to 'End'. Enum values
None
End
Start
The embeddings Object
Embeddings
embeddings must fulfill one of the following schemas:
Text
Field
Field ID
Type
Note
Text Content
text
string
When the input is text, the raw text is tokenized and processed into a dense, fixed-length vector that captures semantic information such as word meanings and relationships. These text embeddings enable tasks like sentiment analysis, search, or classification.
Text
type
string
Must be "text"
Image URL
Field
Field ID
Type
Note
Image URL
image-url
string
When the input is an image from a URL, the image is first fetched from the URL and then decoded into its original format. It is then processed into a fixed-length vector representing essential visual features like shapes and colors. These image embeddings are useful for tasks like image classification or similarity search, providing structured numerical data for complex visual inputs.
Image URL
type
string
Must be "image-url"
Image Base64
Field
Field ID
Type
Note
Image File
image-base64
string
When the input is an image in base64 format, the base64-encoded data is first decoded into its original image form. The image is then processed and transformed into a dense, fixed-length numerical vector, capturing key visual features like shapes, colors, or textures.