CreateModelRequest

interface ApiCreateModelRequest {
    inputPrice?: null | number;
    matchPattern: string;
    modelName: string;
    outputPrice?: null | number;
    startDate?: null | string;
    tokenizerConfig?: any;
    tokenizerId?: null | string;
    totalPrice?: null | number;
    unit?: null | ApiModelUsageUnit;
}

Properties

inputPrice?: null | number

Price (USD) per input unit

double

matchPattern: string

Regex pattern which matches this model definition to generation.model. Useful in case of fine-tuned models. If you want to exact match, use (?i)^modelname$

modelName: string

Name of the model definition. If multiple with the same name exist, they are applied in the following order: (1) custom over built-in, (2) newest according to startTime where model.startTime<observation.startTime

outputPrice?: null | number

Price (USD) per output unit

double

startDate?: null | string

Apply only to generations which are newer than this ISO date.

date-time

tokenizerConfig?: any

Optional. Configuration for the selected tokenizer. Needs to be JSON. See docs for more details.

tokenizerId?: null | string

Optional. Tokenizer to be applied to observations which match to this model. See docs for more details.

totalPrice?: null | number

Price (USD) per total units. Cannot be set if input or output price is set.

double

unit?: null | ApiModelUsageUnit

Unit used by this model.