Skip to content

Test prompt

POST
/v2/document/test-prompt

Send a single prompt, model and provider for test the results of a single prompt

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
promptId

A Prompt Id

string
prompt
required

A prompt

string
llmProvider

The provider of the prompt

string
Allowed values: OPENAI FSCO BEDROCK
OPENAI
llmModel

The model of the prompt

string
Allowed values: GPT_4 GPT_4_TURBO GPT_4O GPT_4O_MINI O1 O1_MINI O3_MINI LLAMA_3 CLAUDE_OPUS CLAUDE_SONNET
GPT_4
content

Content to test prompt against

string

The resource has been successfully created.

object
queryId
required

The process ID. Since this is a synchronous request, it returns only the ID. You must wait for the webhook notification to receive the actual result.

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a