Langflow is a visual framework for building agent and RAG workflows. Langflow includes a CometAPI component that calls CometAPI language models through OpenAI-compatible endpoints.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Langflow Desktop, Langflow Cloud, or a self-hosted Langflow instance
- A CometAPI account with an active API key — get yours in the dashboard
- A model ID from the CometAPI Models page
Configure the integration
Add the CometAPI component
In the Langflow canvas, open the component menu. Search for CometAPI, then add the CometAPI text generation component to your flow.
Enter your CometAPI API key
Select the CometAPI component. In the component inspection panel, enter your CometAPI API key in the API key field.
Choose a model ID
Set the model ID to a value from the CometAPI Models page. If the component can fetch models after you enter the API key, select the model ID from the model menu.
Connect chat input and output
For a minimal test flow, add Chat Input and Chat Output components. Connect Chat Input to the CometAPI component input, then connect the CometAPI output to Chat Output.
Use CometAPI inside larger flows
Change the CometAPI component output type to Language Model when another Langflow component needs an LLM input. This is useful for Agent, Prompt Template, and Smart Transform flows. For direct chat, keep the default model response output and connect it to a Chat Output component.Troubleshooting
The CometAPI component is missing
The CometAPI component is missing
Update Langflow to a version that includes the CometAPI bundle. If your deployment hides some components, check the bundle settings or search under language model components.
The model list does not load
The model list does not load
Confirm that the CometAPI API key is valid and that the account has access to the selected model. You can also enter the model ID manually.
The flow runs but returns an error
The flow runs but returns an error
Check that the model ID matches CometAPI exactly and that the flow input is connected to the CometAPI component input.