Skip to main content
Model components generate text using large language models. Refer to your specific component’s documentation for more information on parameters.

Use a model component in a flow

Model components receive inputs and prompts for generating text, and the generated text is sent to an output component. The model output can also be sent to the Language Model port and on to a Parse Data component, where the output can be parsed into structured Data objects. This example has the OpenAI model in a chatbot flow. Basic Prompting Pn

LLMC Executor

The LLMC Executor is a user-friendly interface designed to streamline interactions with AI language models, such as those from OpenAI. It plays a central role in allowing users to experiment with different prompts and models to generate high-quality AI responses. By integrating with API keys, the executor enables seamless communication with external AI services. Users can effortlessly select prompts , either manually or through integration with a Prompt Optimizer Flow and choose from available AI models using intuitive dropdown menus. Once configured, the tool provides a clean and efficient workflow where users input text, trigger the request with a single click, and receive intelligent outputs in real-time. This makes LLMC Executor an essential component for testing, optimizing, and comparing AI-generated responses across various configurations. 

Key usage highlights

  1.  Prompt & Model Selection: Choose from a set of predefined prompts and models using dropdowns. Your selections are automatically displayed for clarity.
  2.  Secure API Access: Enter your API key to enable access to the chosen model. This is required for the tool to work. Llmc Executor Pn

AIML

This component creates a ChatOpenAI model instance using the AIML API. For more information, see AIML documentation.
InputsOutputs

Amazon Bedrock

This component generates text using Amazon Bedrock LLMs. For more information, see Amazon Bedrock documentation.
InputsOutputs

Anthropic

This component allows the generation of text using Anthropic Chat and Language models. For more information, see the Anthropic documentation.
InputsOutputs

Azure OpenAI

This component generates text using Azure OpenAI LLM. For more information, see the Azure OpenAI documentation.
InputsOutputs

Cohere

This component generates text using Cohere’s language models. For more information, see the Cohere documentation.
InputsOutputs

DeepSeek

This component generates text using DeepSeek’s language models. For more information, see the DeepSeek documentation.
InputsOutputs

Google Generative AI

This component generates text using Google’s Generative AI models. For more information, see the Google Generative AI documentation.
InputsOutputs

Groq

This component generates text using Groq’s language models.
  1. To use this component in a flow, connect it as a Model in a flow like the Basic prompting flow, or select it as the Model Provider if you’re using an Agent component. Model 3 Pn
  2. In the Groq API Key field, paste your Groq API key. The Groq model component automatically retrieves a list of the latest models. To refresh your list of models, click Refresh.
  3. In the Model field, select the model you want to use for your LLM.
  4. Click Playground and ask your Groq LLM a question. The responses include a list of sources.
For more information, see the Groq documentation.
InputsOutputs

Hugging Face API

This component sends requests to the Hugging Face API to generate text using the model specified in the Model ID field. The Hugging Face API is a hosted inference API for models hosted on Hugging Face, and requires a Hugging Face API token to authenticate.
In this example based on the Basic prompting flow, the Hugging Face API model component replaces the Open AI model. By selecting different hosted models, you can see how different models return different results.

Steps to use Hugging Face API in Basic prompting flow:

  1. Create a Basic prompting flow.
  2. Replace the OpenAI model component with a Hugging Face API model component.
  3. In the Hugging Face API component, add your Hugging Face API token to the API Token field.
  4. Select a model from the Model ID dropdown (e.g., meta-llama/Llama-3.3-70B-Instruct).
  5. Open the Playground and ask a question to the model, and see how it responds.
  6. Try different models, and see how they perform differently.
For more information, see the Hugging Face documentation.
InputsOutputs

IBM watsonx.ai

This component generates text using IBM WatsonX.ai foundation models. To use IBM watsonx.ai model components, replace a model component with the IBM watsonx.ai component in a flow. An example flow looks like the following: Model 4 Pn The values for API endpoint, Project ID, API key, and Model Name are found in your IBM watsonx.ai deployment. For more information, see the Langchain documentation.
InputsOutputs

Language model

This component generates text using either OpenAI or Anthropic language models. Use this component as a drop-in replacement for LLM models to switch between different model providers and models. Instead of swapping out model components when you want to try a different provider, like switching between OpenAI and Anthropic components, change the provider dropdown in this single component. This makes it easier to experiment with and compare different models while keeping the rest of your flow intact. For more information, see the OpenAI documentation and Anthropic documentation.
InputsOutputs

LMStudio

This component generates text using LM Studio’s local language models. For more information, see LM Studio documentation.
InputsOutputs

Maritalk

This component generates text using Maritalk LLMs. For more information, see Maritalk documentation.
InputsOutputs

Mistral

This component generates text using MistralAI LLMs. For more information, see Mistral AI documentation.
InputsOutputs

Novita AI

This component generates text using Novita AI’s language models. For more information, see Novita AI documentation.
InputsOutputs

NVIDIA

This component generates text using NVIDIA LLMs. For more information, see NVIDIA AI documentation.
InputsOutputs

Ollama

This component generates text using Ollama’s language models. To use this component in a flow, connect LLM Controls to your locally running Ollama server and select a model.
  1. In the Ollama component, in the Base URL field, enter the address for your locally running Ollama server. This value is set as the OLLAMA_HOST environment variable in Ollama. The default base URL is http://localhost:11434.
  2. To refresh the server’s list of models, click Refresh.
  3. In the Model Name field, select a model. This example uses llama3.2:latest.
  4. Connect the Ollama model component to a flow. For example, this flow connects a local Ollama server running a Llama 3.2 model as the custom model for an Agent component. Model 5 Pn
For more information, see the Ollama documentation.
InputsOutputs

OpenAI

This component generates text using OpenAI’s language models. For more information, see OpenAI documentation.
InputsOutputs

OpenRouter

This component generates text using OpenRouter’s unified API for multiple AI models from different providers. For more information, see OpenRouter documentation.
InputsOutputs

Perplexity

This component generates text using Perplexity’s language models. For more information, see Perplexity documentation.
InputsOutputs

Qianfan

This component generates text using Qianfan’s language models. For more information, see Qianfan documentation.
InputsOutputs

SambaNova

This component generates text using SambaNova LLMs. For more information, see Sambanova Cloud documentation.
InputsOutputs

VertexAI

This component generates text using Vertex AI LLMs. For more information, see Google Vertex AI documentation.
InputsOutputs

xAI

This component generates text using xAI models like Grok. For more information, see the xAI documentation.
InputsOutputs

DALL-E 3

This component generates images using OpenAI’s DALL-E 3 model. It accepts a text prompt and returns the generated image as a URL, base64-encoded data, or a Message with generation details.
Inputs

Outputs