Skip to main content

Generate a response (BYOK)

Use Claude with your own API key to generate human-like responses to a given prompt or question. Maximum response length varies by model. 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

  • Anthropic

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Connected AccountThe Connected Account with your Anthropic 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 Claude model to use. Options: Claude Opus 5.5, Claude Fable 5.1, Claude Sonnet 5Predefined Choice ListYes
System messageThe message which sets the context and expectations for a conversation with the AIText (Long)No
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
Reasoning effortConstrains effort on thinking for thinking models. Reducing reasoning effort can result in faster responses and fewer tokens used on thinking. Leave blank to use the model default. Options: Low, Medium, High, Extra high, MaxPredefined Choice ListNo
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, Claude 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

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