v1
latestOpenAPI 3.0.22026-08-062794201004.1 KBModels (AI Data Plane)
Create Model
Create a new model deployment.
In order to access this endpoint, the provided API key must have at least one of the following roles:
- Organization Owner
To learn more, see Organization, Project, and Database Access Overview.
post/v4/organizations/{organizationId}/aiServices/models
Request body
Example request
{
"name": "my-new-model",
"catalogModelName": "meta-llama/Llama-3.1-8B-Instruct",
"cloudConfig": {
"provider": "aws",
"region": "us-east-1",
"compute": {
"cpu": 4,
"gpuMemory": 48
}
},
"quantization": "fullPrecision",
"optimization": "latency",
"guardrails": [
"sexual crime",
"hate speech"
],
"jailbreak": {
"scoreThreshold": 0.9
},
"caching": {
"enableStandard": true,
"semantic": {
"embeddingModel": "my-embedding-model-id",
"scoreThreshold": 0.75,
"dimensions": 4096,
"distanceMetric": "dot_product"
},
"defaultCache": "semantic",
"expiryTTL": 1000
},
"enableBatching": true,
"keywordFiltering": [
"harassment",
"murder"
]
}Response
Model queued for deployment successfully.
Example response
{
"id": "fffffffff-aaaa-1414-eeee-000000000000"
}