Skip to main content
BuildShip is a low-code visual backend builder. Use the community CometAPI Text Generator node to add AI-powered text generation to any workflow.

Prerequisites

1

Get your CometAPI API key

Log in to the CometAPI console. Click Add API Key and copy your sk-xxxxx key.
CometAPI dashboard showing the Add API Key button
CometAPI API key details with base URL
2

Create a workflow with a REST API trigger

  1. In the BuildShip dashboard, click Create a new workflow → From Scratch.
  2. On the canvas, click Add Trigger and select REST API. This generates a callable endpoint for the workflow.
3

Add the CometAPI Text Generator node

  1. Below the REST API trigger, click + Add a new step.
  2. In the node library search box, type cometapi.
  3. From the Community list, select CometAPI Text Generator.
BuildShip node library showing CometAPI Text Generator in search results
CometAPI Text Generator node added to the canvas
4

Link the CometAPI integration

This step tells the node which key management system to use.
  1. Click the node to open the Node Editor on the right.
  2. Switch to the Settings tab.
  3. In Key-based Integration, open the dropdown and select CometAPI.
  4. Click the blue Save button in the top-right corner.
Node Editor Settings tab with Key-based Integration set to CometAPI
5

Add your API key to the node

  1. In the Node Editor, switch to the Inputs tab (or click directly on the node).
  2. Click the 🔑 key icon in the node’s top-right corner to open the key dropdown.
  3. Select + Bring your own Key.
  4. Enter a Key ID (e.g. cometapi-key-1) and paste your sk-xxxxx key in Value.
  5. Click Save.
Key management dialog with Key ID and Value fields filled in
Node showing the key bound successfully
6

Configure input parameters

In the node’s Inputs tab:
  • Instructions (optional): set a system role, e.g. You are a productivity assistant.
  • Prompt: click the </> icon, then select Trigger → Body → prompt to map the incoming request body.
  • Advanced → Model: enter the current model ID you want to use.
CometAPI node with Instructions, Prompt, and Model configured
7

Add a Return Response node and test

  1. Below the CometAPI node, click + Add a new step and select Return Response.
  2. In the Body field, click </> and select the response variable from the CometAPI Text Generator node.
  3. Click Test in the upper-right corner, select JSON input format, and send:
{
  "prompt": "hi"
}
  1. A successful response in the Result panel confirms the workflow is working.
BuildShip test panel showing a successful CometAPI response
If the call fails, verify your API key and that the Key-based Integration is set to CometAPI, or contact CometAPI support.
The Key-based Integration step (linking the node to CometAPI) is essential — skipping it will cause authentication errors even if your API key is correct.