Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request payload for creating a prompt run.
Key-value map of input variable names to their values.
{ "topic": "AI safety" }Thread ID to continue a multi-turn conversation. Omit to start a new thread.
Processing priority.
onsite, normal, low Environment that scopes which webhooks fire and which environment variables the run can access. Uses the default environment when omitted.
Runtime environment variable overrides for this run. Keys must be UPPER_CASE. At most 50 entries, 64 KB total.
{ "MY_API_KEY": "sk-..." }Arbitrary key-value metadata attached to the run. Values can be strings or arrays of strings.
{ "user_id": "42" }Memory channel within the thread. Prompts on the same channel share conversational history; different channels are isolated.