Catalog AI Model Versions
Create AI Model version
Changed onCreates the latest version with its target_models. Currently, a model only has a single version. Returns 409 if a version already exists.
post/v1/ai-models/{aiModelId}/versions
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v1/ai-models/{aiModelId}/versions
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"version": "1.0.0",
"target_models": [
{
"provider": "openai",
"name": "gpt-4o"
}
]
}Response
The created version
Example response
{
"id": "9c4a1b2c-3d4e-5f60-7182-93a4b5c6d7e8",
"ai_model_id": "123e4567-e89b-12d3-a456-426614174000",
"version": "1.0.0",
"target_models": [
{
"provider": "openai",
"name": "gpt-4o"
}
],
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- info
endpoint added
- info