@acedatacloud/node-red-gemini 1.0.0

Call the native Ace Data Cloud Gemini Generate Content API from a Node-RED flow.

npm install @acedatacloud/node-red-gemini

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

  1. Open Import → Examples → @acedatacloud/node-red-gemini and select Ask Gemini Generate Content.
  2. 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.
  3. 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
  }
}

Public Gemini Generate Content API contract

Node Info

Version: 1.0.0
Updated 5 days ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • acedatacloud-gemini-account
  • acedatacloud-gemini-generate-content

Keywords

  • node-red
  • gemini
  • chat
  • acedatacloud

Maintainers