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 |
|---|---|---|
| idPrompt | Column containing the prompt text. | C1 |
| idKey | Your OpenAI API key (sk-…). |
sk-… |
| idDVModel | Model name string. | gpt-3.5-turbo (safe default) |
| idDVTemp | Temperature (creativity). 0–2. | 1 |
| idDVMT | max_tokens—upper bound for output length. |
96 (raise for longer) |
| idDVTP | top_p nucleus sampling. 0–1. |
1 |
| idDVFP | frequency_penalty |
0 |
| idDVPP | presence_penalty |
0 |
| idN | Number of completions per row. | 1 |
| idPrefixColName | Prefix for output columns. | openai_ |
| idDebug | Verbosity in logs. | nothing |
| idOptional | Extra cURL args (normally leave empty). | (empty) |
| nRetry | 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 idKey |
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 nRetry |
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
