Prompt Version
Create a prompt version
Overview
Prompts
- Prompt
- Prompt Version
- Prompt Deployment
- Prompt Config
Datasets
- Dataset
- Dataset column
- Dataset entry
- Dataset split
Evaluators
- Evaluator
Log repositories
- Log repository
Folders
- Folder
- Folder contents
Integrations
- Integration
Alerts
- Alert
Test runs
- Test run
Test run entries
- Test run entries
Test run reports
- Test run report
Prompt Version
Create a prompt version
Create a prompt version
POST
/
v1
/
prompts
/
versions
curl --request POST \
--url https://api.getmaxim.ai/v1/prompts/versions \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"promptId": "<string>",
"description": "<string>",
"modelName": "<string>",
"modelProvider": "openai",
"messages": [
{
"role": "assistant",
"content": "<string>"
}
],
"modelParameters": {}
}'
{
"data": {
"id": "<string>",
"version": 123,
"description": "<string>",
"promptId": "<string>",
"config": {
"model": "<string>",
"author": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"image": "<string>"
},
"messages": [
{
"id": "<string>",
"index": 123,
"payload": {
"role": "<string>",
"content": "<string>"
},
"currentType": "<string>",
"originalType": "<string>"
}
],
"provider": "<string>",
"modelParameters": {
"top_p": 123,
"max_tokens": 123,
"promptTools": [
"<any>"
],
"temperature": 123,
"image_detail": {
"detail": "<string>"
},
"response_format": {
"type": "<string>"
},
"frequency_penalty": 123
}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}
Authorizations
API key for authentication
Body
application/json
Prompt identifier
Version description
Name of the model
Provider of the model
Available options:
openai
, azure
, huggingface
, anthropic
, together
, google
, groq
, bedrock
, maxim
, cohere
, ollama
, xai
Response
200
application/json
Prompt version created successfully
Was this page helpful?
curl --request POST \
--url https://api.getmaxim.ai/v1/prompts/versions \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '{
"promptId": "<string>",
"description": "<string>",
"modelName": "<string>",
"modelProvider": "openai",
"messages": [
{
"role": "assistant",
"content": "<string>"
}
],
"modelParameters": {}
}'
{
"data": {
"id": "<string>",
"version": 123,
"description": "<string>",
"promptId": "<string>",
"config": {
"model": "<string>",
"author": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"image": "<string>"
},
"messages": [
{
"id": "<string>",
"index": 123,
"payload": {
"role": "<string>",
"content": "<string>"
},
"currentType": "<string>",
"originalType": "<string>"
}
],
"provider": "<string>",
"modelParameters": {
"top_p": 123,
"max_tokens": 123,
"promptTools": [
"<any>"
],
"temperature": 123,
"image_detail": {
"detail": "<string>"
},
"response_format": {
"type": "<string>"
},
"frequency_penalty": 123
}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}