Skip to main content

Generate a response (BYOK)

Use Gemini with your own API key to generate human-like responses to a given prompt or question. Maximum response length and configurations varies by model.

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

Application

  • Google Gemini

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Connected AccountThe Connected Account with your Google Gemini 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 Gemini model to use. Options: Gemini 3.1 Pro Preview, Gemini 3 Flash Preview, Gemini 3.8 FlashPredefined 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 blank, the model default maximum is used. If the Generated text output is blank, try increasing this value, decreasing the thinking level, or turning off Include thoughts?NumberNo
TemperatureSampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Shown for Gemini 3 Flash Preview and Gemini 3.1 Pro Preview; not supported on Gemini 3.8 FlashNumber with decimalsNo
Thinking levelConstrains effort on thinking for thinking models. Reducing thinking effort can result in faster responses and fewer tokens used on thinking. Leave blank to use the model default. Options: Low, Medium, HighPredefined Choice ListNo
FilesFiles to be provided to the AIList of filesNo
Include thoughts?If set to true, the response will include the thoughts of the AI if availableTrue/FalseNo
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, Gemini 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
Stop reasonThe reason the response was stoppedText (Short)No

Outcomes

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

Requirements

  • A Google Gemini Connected Account with a valid Google Gemini API key
  • Access to the selected Gemini model on your Google AI / Gemini account

Tips

  • For faster responses, set Thinking level to Low or Medium and set a Maximum output tokens value instead of leaving both blank.
  • Leaving Thinking level and Maximum output tokens blank can make runs take much longer, because the provider default thinking effort and a high output token limit may be used.