v6

latestOpenAPI 3.1.02026-08-04135335658.3 KB
LLM Configs

Test Llm Config Inline

Run a one-shot test invocation against a fully inline LLM configuration that has not been persisted yet (the create flow), and return the model's reply.

Because there is no stored record to recover secrets from, the provider api_key must be supplied in body.config (or omitted to fall back to the team's stored vendor credentials). Provider/runtime failures are returned as HTTP 200 with success=False and a clean error message, mirroring the saved-config test endpoint, so the dashboard can render them inline.

post/workflows/v1/llm-configs/test

Request body

system_promptstring required

Required, non-empty system prompt.

Response

Successful Response

successboolean required
responsestring nullable

Concatenated model output text on success.

errorstring nullable

Clean error message when success is False.

providerstring nullable
modelstring nullable
prompt_tokensinteger nullable
completion_tokensinteger nullable
total_tokensinteger nullable
latency_msinteger nullable
backchannel_responsestring nullable

Backchannel text emitted before the main response, if any.

backchannel_prompt_tokensinteger nullable
backchannel_completion_tokensinteger nullable
backchannel_total_tokensinteger nullable