Prompt Engine
Run Prompt Direct
Run a prompt directly.
POST
/
v1
/
prompt_engine
/
run
Run Prompt Direct is ideal for one-time prompt usage.
For prompts that will be used multiple times, it is recommended to first Create a Prompt and then Run the Prompt for better reliability.
Header
Your JigsawStack API key
Body
The prompt. Maximum character limit is 3000
. Prompt supports dynamic inputs.
See example below.
The prompt inputs. See example below.
How the prompt result should be returned or formatted. See examples below
Include this to guard against unsafe inputs from users. Supported values:
defamation
privacy
hate
sexual_content
elections
code_interpreter_abuse
indiscrimate_weapons
specialized_advice
Key-value pair for dynamic prompt variables.
If set, partial message chunk will be sent.
Include this to allow prompt engine to use the internet.
Sample Prompt Payload
- String
return_prompt
Array<object>
return_prompt
- Object
return_prompt
Response
Indicates whether the call was successful.
Was this page helpful?