Skip to content

On-premise users: click in-app to access the full platform documentation for your version of DataRobot.

Custom Models (GenAI)

This page outlines the operations, endpoints, parameters, and example requests and responses for the Custom Models (GenAI).

POST /api/v2/genai/customModelVersions/

Export the specified LLM blueprint as a custom model version in Model Registry.

Code samples

# You can also use wget
curl -X POST https://app.datarobot.com/api/v2/genai/customModelVersions/ \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Body parameter

{
  "llmBlueprintId": "string",
  "promptColumnName": "promptText",
  "targetColumnName": "resultText"
}

Parameters

Name In Type Required Description
body body CreateCustomModelVersionRequest true none

Example responses

202 Response

{
  "customModelId": "string"
}

Responses

Status Meaning Description Schema
202 Accepted Successful Response CreateCustomModelVersionResponse
422 Unprocessable Entity Validation Error HTTPValidationErrorResponse

To perform this operation, you must be authenticated by means of one of the following methods:

BearerAuth

Schemas

CreateCustomModelVersionRequest

{
  "llmBlueprintId": "string",
  "promptColumnName": "promptText",
  "targetColumnName": "resultText"
}

CreateCustomModelVersionRequest

Properties

Name Type Required Restrictions Description
llmBlueprintId string true The ID of the LLM blueprint to use for the custom model version.
promptColumnName string false maxLength: 5000
The name of the column to use for prompt text input in the custom model.
targetColumnName string false maxLength: 5000
The name of the column to use for prediction output in the custom model.

CreateCustomModelVersionResponse

{
  "customModelId": "string"
}

CreateCustomModelVersionResponse

Properties

Name Type Required Restrictions Description
customModelId string true The ID of the created custom model.

HTTPValidationErrorResponse

{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

HTTPValidationErrorResponse

Properties

Name Type Required Restrictions Description
detail [ValidationError] false none

ValidationError

{
  "loc": [
    "string"
  ],
  "msg": "string",
  "type": "string"
}

ValidationError

Properties

Name Type Required Restrictions Description
loc [anyOf] true none

anyOf

Name Type Required Restrictions Description
» anonymous string false none

or

Name Type Required Restrictions Description
» anonymous integer false none

continued

Name Type Required Restrictions Description
msg string true none
type string true none

Updated June 21, 2024