Set Project Model
(v1)PUT
Sets one of the project's models by the type path segment: evaluation (the LLM judge that scores metrics), platform (powers Confident AI's own AI features), or simulation (simulates user turns in conversation simulations). Setting platform or simulation creates a project override (source becomes project); use DELETE to fall back to the organization default. The provider's credential must already be configured on the project or organization (blocked providers return 403), CONFIDENT_AI needs no credential, and maxInputTokens is rejected on the evaluation path.
curl -X PUT "https://api.confident-ai.com/v1/projects/{projectId}/models/{type}" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"provider": "OPEN_AI",
"name": "gpt-4o-mini",
"maxConcurrency": 10
}'{
"success": true,
"data": {
"model": {
"id": "cm4xq2j3k0000abcdef123456",
"type": "EVALUATION",
"provider": "OPEN_AI",
"name": "gpt-4o-mini",
"maxConcurrency": 10,
"maxInputTokens": null,
"projectId": "6e0f1c2d-3b4a-4c5d-8e9f-0a1b2c3d4e5f",
"organizationId": null
}
}
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
projectIdstringRequiredThe unique identifier of the project.
typeenumRequiredWhich of the project's models to set.
Request body
providerenumRequiredThe model provider to run the model on.
CONFIDENT_AIrequires no credential; every other provider requires its credential to be configured first via the model credentials endpoints. TheCUSTOMprovider cannot be configured through the public API.Show 16 enum valuesHide 16 enum values
CONFIDENT_AIOPEN_AIANTHROPICGEMINIX_AIDEEPSEEKMISTRALPERPLEXITYBEDROCKVERTEX_AIAZUREPORTKEYOPEN_ROUTERTRUE_FOUNDRYLITE_LLMHUGGING_FACE
namestringThe model name to use, for example
gpt-4o-mini. Omit to clear it; ignored forCONFIDENT_AI.maxConcurrencyintegerMaximum number of concurrent calls made to the model. Omit or pass
nullto clear it.maxInputTokensintegerMaximum number of input tokens sent to the model per call. Platform and simulation models only; rejected on the
evaluationpath. Omit or passnullto clear it.
Response
successbooleanIndicates if the request was successful
dataobjectShow 2 propertiesHide 2 properties
modelobjectShow 8 propertiesHide 8 properties
idstringUnique identifier of the model configuration
typeenumWhat the model is used for
Show 4 enum valuesHide 4 enum values
EVALUATIONPLATFORMGENERATIONSIMULATION
providerenumThe model provider to run the model on.
CONFIDENT_AIrequires no credential; every other provider requires its credential to be configured first via the model credentials endpoints. TheCUSTOMprovider cannot be configured through the public API.Show 16 enum valuesHide 16 enum values
CONFIDENT_AIOPEN_AIANTHROPICGEMINIX_AIDEEPSEEKMISTRALPERPLEXITYBEDROCKVERTEX_AIAZUREPORTKEYOPEN_ROUTERTRUE_FOUNDRYLITE_LLMHUGGING_FACE
namestringThe configured model name;
nullwhen the provider's default is usedmaxConcurrencyintegerMaximum number of concurrent calls made to the model
maxInputTokensintegerMaximum number of input tokens sent to the model per call
projectIdstringSet when the model is configured on a project
organizationIdstringSet when the model is configured on the organization
sourceenumReturned for project reads and for platform and simulation model updates; whether the model in effect comes from a project override or the organization default
Show 2 enum valuesHide 2 enum values
projectorganization