Request
This endpoint expects an object.
messageslist of objectsRequired
Non-empty message array. Each message requires role; content may be omitted, an empty string, null, or an empty array.
descriptionstringOptional
Version description.
thinkingobject or nullOptional
Optional provider-specific reasoning configuration.
modelstringOptional
Primary model for this version.
streambooleanOptionalDefaults to false
Whether to stream responses.
temperaturedoubleOptional
Sampling temperature (0-2).
max_tokensintegerOptional
Maximum tokens to generate.
top_pdoubleOptional
Nucleus sampling parameter.
frequency_penaltydoubleOptional
Frequency penalty (-2 to 2).
presence_penaltydoubleOptional
Presence penalty (-2 to 2).
reasoning_effortstring or nullOptional
verbositystring or nullOptional
seedinteger or nullOptional
variablesobjectOptional
Template variables and their default values.
fallback_modelslist of stringsOptional
Fallback models if the primary model fails.
load_balance_modelslist of objectsOptional
Weighted load-balancing model configuration.
toolslist of objectsOptional
Tools available to the model.
tool_choicestring or map from strings to anyOptional
response_formatobject or nullOptional
Structured output / response format configuration.
json_schemaobject or nullOptional
JSON schema used for structured outputs when configured.
is_enforcing_response_formatbooleanOptionalDefaults to false
Whether to strictly enforce the response format.
deploybooleanOptionalDefaults to false
Deploy this version as the live version immediately.
Response
Prompt version created successfully.
prompt_version_idstringOptional
descriptionstring or nullOptional
messageslist of maps from strings to anyOptional
thinkingobject or nullOptional
temperaturedouble or nullOptional
max_tokensinteger or nullOptional
top_pdouble or nullOptional
frequency_penaltydouble or nullOptional
presence_penaltydouble or nullOptional
reasoning_effortstring or nullOptional
verbositystring or nullOptional
seedinteger or nullOptional
fallback_modelslist of strings or nullOptional
load_balance_modelslist of objects or nullOptional
toolslist of objects or nullOptional
tool_choicestring or map from strings to anyOptional
response_formatobject or nullOptional
json_schemaobject or nullOptional
is_enforcing_response_formatbooleanOptional
is_deployedbooleanOptional
created_atdatetimeOptional
updated_atdatetimeOptional