Prerequisites
Before you begin, ensure you have:- Cerebras API Key - Get a free API key here.
- Flowise Installation - Install Flowise locally or use Flowise Cloud.
- Node.js 24 - Required by the current Flowise 3.1.x package.
Install Flowise
Install Flowise via NPM
Start Flowise
http://localhost:3000. Open this URL in your browser to access the Flowise interface.Configure Cerebras in Flowise
Create a new Chatflow
- Click on “Chatflows” in the left sidebar
- Click the “+Add New” button
- Give your chatflow a descriptive name like “Cerebras Chat Assistant”
Add the ChatCerebras node
- In the canvas, click the ”+” button or drag from the left panel
- Search for “ChatCerebras” in the Chat Models category
- Drag the ChatCerebras node onto the canvas
Configure the ChatCerebras node
-
Connect Credential: Click to add your Cerebras API Key
- If this is your first time, click “Create New”
- Enter your API key from cloud.cerebras.ai (starts with
csk-) - Give it a name like “Cerebras API”
- Click “Add”
-
Model Name: Select from the dropdown:
- gpt-oss-120b - Production model for general text, coding, and tool use
- zai-glm-4.7 - Preview reasoning model scheduled for deprecation on August 17, 2026
- Temperature: Control randomness (0.0 to 1.0, default 0.9)
- Max Tokens: Maximum response length
- Top P: Nucleus sampling parameter
- Streaming: Enable for real-time token generation (default: true)
- Configures the correct API endpoint (
https://api.cerebras.ai/v1) - Adds the integration tracking header for better support
- No manual configuration needed!
Connect additional nodes
- Add a Prompt Template - Click ”+” and search for “Prompt Template” to customize your system prompts
- Add Memory (optional) - Search for “Buffer Memory” or “Conversation Buffer Memory” to maintain conversation context
- Connect the nodes - Draw connections between nodes by clicking and dragging from output ports to input ports
Test your chatflow
- Click the “Save” button in the top right
- Click the “Chat” icon to open the test interface
- Send a test message like “Hello! What can you help me with?”
- You should receive a response from your Cerebras-powered chatflow
https://api.cerebras.ai/v1.Using Cerebras with Flowise API
Flowise automatically generates REST APIs for your chatflows, allowing you to integrate Cerebras-powered AI into any application.Get your Chatflow API endpoint
- Open your chatflow
- Click the “API” button in the top right
- Copy the API endpoint URL (e.g.,
http://localhost:3000/api/v1/prediction/your-chatflow-id)
Make API requests to your chatflow
Direct Integration with OpenAI SDK
For advanced users who want to use Cerebras directly in custom Flowise nodes or external applications, you can use the OpenAI SDK with Cerebras configuration:Advanced Configuration
Using Environment Variables
For production deployments, store your Cerebras API key as an environment variable:${CEREBRAS_API_KEY}.
Streaming Responses
To enable streaming responses for real-time output:- In the ChatCerebras node, enable “Streaming”
- Your API responses will now stream tokens as they’re generated
- This is particularly useful for long-form content generation and provides a better user experience
Using Multiple Cerebras Models
You can create different chatflows for different use cases:- Production text and coding: Use
gpt-oss-120b - Multimodal applications through a custom node: Use the preview
gemma-4-31bmodel - Reasoning applications: Review the model catalog before choosing a preview model
Next Steps
- Explore the Flowise documentation to learn about advanced features
- Try different Cerebras models to find the best fit for your use case
- Join the Flowise Discord community for support and inspiration
- Review the Flowise documentation for reusable components and examples
- Deploy your chatflow to production using Flowise Cloud
FAQ
Error: 'Model not found' or invalid model name
Error: 'Model not found' or invalid model name
- Use
gpt-oss-120bfor the current production model - Do not leave the node on its retired
llama3.1-8bdefault - Check the model catalog before selecting a preview model
Responses are slow or timing out
Responses are slow or timing out
- Check your internet connection
- Verify the Base URL is set to
https://api.cerebras.ai/v1(nothttp://) - Try reducing the
max_tokensparameter - Reduce unnecessary prompt and output tokens
- Check Cerebras status page for any service issues
Does the integration tracking header get added automatically?
Does the integration tracking header get added automatically?
X-Cerebras-3rd-Party-Integration: flowise header is automatically included in all requests. You don’t need to manually configure anything.This header helps Cerebras:- Track integration usage and performance
- Provide better support for Flowise users
- Identify and resolve integration-specific issues faster
Can I use Cerebras with Flowise Cloud?
Can I use Cerebras with Flowise Cloud?
- Sign up at flowiseai.com
- Create a new chatflow
- Configure the ChatCerebras node as described above
- Your chatflow will use Cerebras Inference in the cloud
How do I switch between different Cerebras models?
How do I switch between different Cerebras models?
- Click on the ChatCerebras node in your chatflow
- Click the “Model Name” dropdown
- Select your desired model from the list (each has a description to help you choose)
- Save the chatflow
- Test with the new model
What additional latency can I expect when using Cerebras through Flowise?
What additional latency can I expect when using Cerebras through Flowise?

