Text completion with an OpenAI model. This node reads a prompt column from the input table and writes model outputs to new columns (prefixed).

Parameters:
See dedicated page for more information.
DaVinci is a scripted action. Embedded code is accessible and customizable through this tab.
See dedicated page for more information.
Text completion with an OpenAI model. This node reads a prompt column from the input table and writes model outputs to new columns (prefixed).
C1)openai_text, plus optional meta), then passes the table to the next nodeInlineTable or readCSV).Sign in to the OpenAI Platform and go to API keys.

Click Create new secret key.

(If prompted) Choose the Project; give the key a name; Permissions: All.

Click Create secret key → Copy the key (starts with sk-… or sk-proj-…). You won’t see it again.

(If you get insufficient_quota later) Open Billing and buy credits / raise the project’s spending limit.

Security: Treat the key as a secret. Don’t commit it to version control or share it in screenshots.
Create a CSV and feed it via readCSV (or build the rows with InlineTable):
C1
"Write a two-sentence tagline for a coffee shop called 'Bean Scene'."
"Summarize in one sentence: The board approved a budget increase to expand the mobile app team next quarter."
"List 3 bullet points (short) describing benefits of daily walking."
Connect that node’s output to daVinci.
| UI Field (Id) | Meaning / Notes | Example / Default |
|---|---|---|
| Column with text to expand on | Column containing the prompt text. | C1 |
| API Key | Your OpenAI API key (sk-…). |
sk-… |
| Parameter model | Model name string. | gpt-3.5-turbo (safe default) |
| Parameter temperature | Temperature (creativity). 0–2. | 1 |
| Parameter max_tokens | max_tokens—upper bound for output length. |
96 (raise for longer) |
| Parameter top_p | top_p nucleus sampling. 0–1. |
1 |
| Parameter frequency_penalty | frequency_penalty |
0 |
| Parameter presence_penalty | presence_penalty |
0 |
| Parameter n | Number of completions per row. | 1 |
| Prefix of output column name | Prefix for output columns. | openai_ |
| Debug information level | Verbosity in logs. | nothing |
| Optional: extra parameters for cURL | Extra cURL args (normally leave empty). | (empty) |
| Number of retries on connection error | Retries on connection error. | 10 |
Model tip: If available in your account,
gpt-4o-miniis a cost-efficient upgrade. Use any model string supported by your OpenAI project.
Upstream node outputs a column C1 with prompts.
In daVinci → Parameters:
C1sk-… keygpt-3.5-turbo96 (or 256 if you need more text)Run the pipeline.
Open Data after daVinci: you should see columns like openai_text containing the model’s responses.
<prefix>text — the generated text (e.g., openai_text)0–0.2.| Error in Log | What it means | Fix |
|---|---|---|
insufficient_quota |
No credits / hit spending cap | Buy credits / raise project limit; retry |
invalid_api_key / 401 |
Key wrong or revoked | Create a new key in the correct project and paste into API Key |
model_not_found |
Model not available to your project | Use a supported model (e.g., gpt-3.5-turbo, gpt-4o-mini) |
rate_limit_exceeded |
Too many requests | Lower concurrency / add backoff; keep Number of retries on connection error |
context_length_exceeded / max_tokens |
Prompt + max_tokens too long | Shorten prompt or reduce max_tokens |
readCSV → daVinci → writeCSV
readCSV reads the sample abovedaVinci generates openai_textwriteCSV saves results for download
