Openai
OpenAI is an AI platform and API for using language, vision, audio, and other machine learning models.
- Base URL:
https://api.openai.com/v1 - Auth:
bearer(pass your key via theapiKeyinput)
Operations
listfiles— GET /files — Returns a list of files that belong to the user's organization.retrievefile— GET /files/{file_id} — Returns information about a specific file.downloadfile— GET /files/{file_id}/content — Returns the contents of the specified file-
listfinetunes— GET /fine-tunes — List your organization's fine-tuning jobs -
retrievefinetune— GET /fine-tunes/{fine_tune_id} — Gets info about the fine-tune job.
listfinetuneevents— GET /fine-tunes/{fine_tune_id}/events — Get fine-grained status updates for a fine-tune job.
Inputs
apiKey— your openai API keyoperation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: listfiles
apiKey: <your key>
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
string | yes | — | DEPRECATED — bind an API Key credential to the task with credentialName instead. A key pasted here is stored in the workflow definition in clear and appears in every export of it. Still honoured for workflows built before the change. |
operation |
string | yes | — | One of: listfiles, retrievefile, downloadfile, listfinetunes, retrievefinetune, listfinetuneevents |
file_id |
string | no | — | Path parameter file_id (required by some operations). |
fine_tune_id |
string | no | — | Path parameter fine_tune_id (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |