Skip to main content

Generate a response (BYOK)

Use ChatGPT with your own API key to generate human-like responses to a given prompt or question. Accepted file formats: PNG, JPEG, WEBP, GIF and PDF. To stay under the 32 MB request limit for both the prompt and files, please compress large PDFs.

This Wrk Action uses AI-generated content. Like all AI content, use with caution; information may be outdated, incomplete, or inaccurate.

Application

  • OpenAI

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Connected AccountThe Connected Account with your OpenAI API keyConnected AccountYes
PromptThe prompt to generate completions for. Input will be truncated if it exceeds the limit set by the APIText (Long)Yes
ModelThe ChatGPT model to use. Options: ChatGPT 5, ChatGPT 5 Mini, ChatGPT 5 Nano, ChatGPT 5.2Predefined Choice ListYes
System messageThe message which sets the context and expectations for a conversation with the AIText (Long)No
Maximum output tokensThe maximum number of reasoning and output tokens that can be used in this Wrk Action. If the Generated text output is blank, try increasing the Maximum output tokens or decreasing the reasoning effort and/or verbosityNumberNo
Reasoning effortConstrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning. Leave blank to use the model default. Options: None, Minimal, Low, Medium, High, Extra high, MaxPredefined Choice ListNo
VerbosityConstrains the verbosity of the model's response. Lower values will result in more concise responses, while higher values will result in more verbose responses. Options: Low, Medium, HighPredefined Choice ListNo
File input 1The file to be provided to the AIFileNo
File input 2A second file to be provided to the AIFileNo
File input 3A third file to be provided to the AIFileNo
Return response as JSON?If set to true, the response of the AI will return valid JSONTrue/FalseNo
Structured output schemaJSON Schema to enforce structured output. When provided, OpenAI will guarantee the response conforms to this schema. Shown when Return response as JSON? is trueText (Long)No

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Generated textText content created by artificial intelligenceText (Long)No

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.

Requirements

  • An OpenAI Connected Account with a valid OpenAI API key
  • Access to the selected ChatGPT model on your OpenAI account

Tips

  • For faster responses, set Reasoning effort to None, Minimal, or Low and set a Maximum output tokens value instead of leaving both blank.
  • If Generated text is blank after a run, increase Maximum output tokens or lower Reasoning effort / Verbosity.