curl --request POST \
--url https://platform.kodexa.ai/api/organizations/{orgId}/llm \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"modelType": "SMALL",
"parameters": {},
"prompt": "<string>",
"promptRef": "<string>"
}
'"<string>"Invokes the platform LLM for the specified organization. Resolves the prompt template (either from a stored prompt reference or an inline string), renders template parameters, and returns the LLM response as plain text.
curl --request POST \
--url https://platform.kodexa.ai/api/organizations/{orgId}/llm \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"modelType": "SMALL",
"parameters": {},
"prompt": "<string>",
"promptRef": "<string>"
}
'"<string>"API key for authentication. Create one from the Kodexa platform UI under Settings > Access Tokens.
Unique identifier (UUID) of the organization.
Request body for invoking the platform LLM. Supply either a promptRef (referencing a stored prompt template) or an inline prompt string.
Size of the model to use.
SMALL, LARGE Key-value parameters for template rendering.
Show child attributes
Inline prompt text. Mutually exclusive with promptRef.
Reference to a stored prompt template (e.g., 'orgSlug/promptSlug' or 'promptSlug'). Mutually exclusive with prompt.
LLM response text
The response is of type string.