@acedatacloud/node-red-gemini 1.0.0
Call the native Ace Data Cloud Gemini Generate Content API from a Node-RED flow.
Gemini Generate Content for Node-RED
Call the native Ace Data Cloud Gemini Generate Content API from a Node-RED flow. The node accepts one non-streaming request per input and returns the provider's JSON in msg.payload.
Install
Search for @acedatacloud/node-red-gemini in Manage palette → Install. You can also install it with npm install @acedatacloud/node-red-gemini in your Node-RED user directory and restart Node-RED. Use Node.js 22 or later with Node-RED 4 or 5.
Send a request
- Open Import → Examples → @acedatacloud/node-red-gemini and select Ask Gemini Generate Content.
- Open the Gemini Generate Content node and configure an application token that can access this API. Use the raw token from Ace Data Cloud Applications. Node-RED stores it as a password credential outside the exported flow.
- Set a published model available to your application and deploy the flow. Click Example prompt once to send the request. Usage may consume Credits at the selected model's rates.
Set model to a published Gemini chat model and supply the native contents array. The node places the model in the request path. The node sends POST /v1/models/{model}:generateContent and returns a single JSON response. Returned tool calls are data for the next node in your flow. Connect a Catch node for request errors. Each input sends at most one request.
{
"model": "gemini-3.5-flash",
"contents": [
{
"role": "user",
"parts": [
{
"text": "Explain a rainbow in one sentence."
}
]
}
],
"generationConfig": {
"maxOutputTokens": 1024
}
}