curl --request POST \
--url http://localhost/api/v1/models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"display_name": "<string>",
"provider_config": {
"api_key": "Dummy",
"urlToFetch": "<string>",
"resourceName": "<string>",
"deploymentId": "<string>",
"apiVersion": "<string>",
"adAuth": "<string>",
"azureAuthMode": "<string>",
"azureManagedClientId": "<string>",
"azureEntraClientId": "<string>",
"azureEntraClientSecret": "<string>",
"azureEntraTenantId": "<string>",
"azureAdToken": "<string>",
"azureModelName": "<string>",
"workersAiAccountId": "<string>",
"customHost": "<string>",
"forwardHeaders": [
"<string>"
],
"index": 123,
"cache": "<string>",
"metadata": {},
"requestTimeout": 123,
"transformToFormData": true,
"awsSecretAccessKey": "<string>",
"awsAccessKeyId": "<string>",
"awsSessionToken": "<string>",
"awsRegion": "<string>",
"awsAuthType": "<string>",
"awsRoleArn": "<string>",
"awsExternalId": "<string>",
"awsS3Bucket": "<string>",
"awsS3ObjectKey": "<string>",
"awsBedrockModel": "<string>",
"awsServerSideEncryption": "<string>",
"awsServerSideEncryptionKMSKeyId": "<string>",
"amznSagemakerCustomAttributes": "<string>",
"amznSagemakerTargetModel": "<string>",
"amznSagemakerTargetVariant": "<string>",
"amznSagemakerTargetContainerHostname": "<string>",
"amznSagemakerInferenceId": "<string>",
"amznSagemakerEnableExplanations": "<string>",
"amznSagemakerInferenceComponent": "<string>",
"amznSagemakerSessionId": "<string>",
"amznSagemakerModelName": "<string>",
"stabilityClientId": "<string>",
"stabilityClientUserId": "<string>",
"stabilityClientVersion": "<string>",
"huggingfaceBaseUrl": "<string>",
"vertexRegion": "<string>",
"vertexProjectId": "<string>",
"vertexServiceAccountJson": {},
"vertexStorageBucketName": "<string>",
"vertexModelName": "<string>",
"filename": "<string>",
"afterRequestHooks": [
{}
],
"beforeRequestHooks": [
{}
],
"defaultInputGuardrails": [
{}
],
"defaultOutputGuardrails": [
{}
],
"openaiProject": "<string>",
"openaiOrganization": "<string>",
"openaiBeta": "<string>",
"azureDeploymentName": "<string>",
"azureApiVersion": "<string>",
"azureExtraParams": "<string>",
"azureFoundryUrl": "<string>",
"strictOpenAiCompliance": true,
"mistralFimCompletion": "<string>",
"anthropicBeta": "<string>",
"anthropicVersion": "<string>",
"fireworksAccountId": "<string>",
"snowflakeAccount": "<string>",
"watsonxVersion": "<string>",
"watsonxSpaceId": "<string>",
"watsonxProjectId": "<string>",
"watsonxDeploymentId": "<string>",
"watsonxCpdUrl": "<string>",
"watsonxCpdUsername": "<string>",
"watsonxCpdPassword": "<string>"
},
"config": {
"decoding_method": "<string>",
"prompt": "<string>",
"max_tokens": 123,
"max_completion_tokens": 123,
"temperature": 123,
"top_p": 123,
"n": 123,
"stream": true,
"logprobs": 123,
"top_logprobs": true,
"echo": true,
"stop": "<string>",
"presence_penalty": 123,
"frequency_penalty": 123,
"best_of": 123,
"logit_bias": {},
"user": "<string>",
"context": "<string>",
"examples": [
{
"input": "<any>",
"output": "<any>"
}
],
"top_k": 123,
"response_format": {
"type": "<string>",
"json_schema": "<any>"
},
"seed": 123,
"store": true,
"metadata": {},
"modalities": [
"<string>"
],
"audio": {
"voice": "<string>",
"format": "<string>"
},
"service_tier": "<string>",
"prediction": {
"type": "<string>",
"content": [
{
"type": "<string>",
"text": "<string>"
}
]
},
"safety_settings": "<any>",
"anthropic_beta": "<string>",
"anthropic_version": "<string>",
"thinking": {
"type": "<string>",
"budget_tokens": 123
},
"space_id": "<string>",
"project_id": "<string>"
},
"description": "<string>",
"tags": [
"<string>"
],
"model_type": "chat",
"connection_id": "<string>"
}'
"<any>"
curl --request POST \
--url http://localhost/api/v1/models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"display_name": "<string>",
"provider_config": {
"api_key": "Dummy",
"urlToFetch": "<string>",
"resourceName": "<string>",
"deploymentId": "<string>",
"apiVersion": "<string>",
"adAuth": "<string>",
"azureAuthMode": "<string>",
"azureManagedClientId": "<string>",
"azureEntraClientId": "<string>",
"azureEntraClientSecret": "<string>",
"azureEntraTenantId": "<string>",
"azureAdToken": "<string>",
"azureModelName": "<string>",
"workersAiAccountId": "<string>",
"customHost": "<string>",
"forwardHeaders": [
"<string>"
],
"index": 123,
"cache": "<string>",
"metadata": {},
"requestTimeout": 123,
"transformToFormData": true,
"awsSecretAccessKey": "<string>",
"awsAccessKeyId": "<string>",
"awsSessionToken": "<string>",
"awsRegion": "<string>",
"awsAuthType": "<string>",
"awsRoleArn": "<string>",
"awsExternalId": "<string>",
"awsS3Bucket": "<string>",
"awsS3ObjectKey": "<string>",
"awsBedrockModel": "<string>",
"awsServerSideEncryption": "<string>",
"awsServerSideEncryptionKMSKeyId": "<string>",
"amznSagemakerCustomAttributes": "<string>",
"amznSagemakerTargetModel": "<string>",
"amznSagemakerTargetVariant": "<string>",
"amznSagemakerTargetContainerHostname": "<string>",
"amznSagemakerInferenceId": "<string>",
"amznSagemakerEnableExplanations": "<string>",
"amznSagemakerInferenceComponent": "<string>",
"amznSagemakerSessionId": "<string>",
"amznSagemakerModelName": "<string>",
"stabilityClientId": "<string>",
"stabilityClientUserId": "<string>",
"stabilityClientVersion": "<string>",
"huggingfaceBaseUrl": "<string>",
"vertexRegion": "<string>",
"vertexProjectId": "<string>",
"vertexServiceAccountJson": {},
"vertexStorageBucketName": "<string>",
"vertexModelName": "<string>",
"filename": "<string>",
"afterRequestHooks": [
{}
],
"beforeRequestHooks": [
{}
],
"defaultInputGuardrails": [
{}
],
"defaultOutputGuardrails": [
{}
],
"openaiProject": "<string>",
"openaiOrganization": "<string>",
"openaiBeta": "<string>",
"azureDeploymentName": "<string>",
"azureApiVersion": "<string>",
"azureExtraParams": "<string>",
"azureFoundryUrl": "<string>",
"strictOpenAiCompliance": true,
"mistralFimCompletion": "<string>",
"anthropicBeta": "<string>",
"anthropicVersion": "<string>",
"fireworksAccountId": "<string>",
"snowflakeAccount": "<string>",
"watsonxVersion": "<string>",
"watsonxSpaceId": "<string>",
"watsonxProjectId": "<string>",
"watsonxDeploymentId": "<string>",
"watsonxCpdUrl": "<string>",
"watsonxCpdUsername": "<string>",
"watsonxCpdPassword": "<string>"
},
"config": {
"decoding_method": "<string>",
"prompt": "<string>",
"max_tokens": 123,
"max_completion_tokens": 123,
"temperature": 123,
"top_p": 123,
"n": 123,
"stream": true,
"logprobs": 123,
"top_logprobs": true,
"echo": true,
"stop": "<string>",
"presence_penalty": 123,
"frequency_penalty": 123,
"best_of": 123,
"logit_bias": {},
"user": "<string>",
"context": "<string>",
"examples": [
{
"input": "<any>",
"output": "<any>"
}
],
"top_k": 123,
"response_format": {
"type": "<string>",
"json_schema": "<any>"
},
"seed": 123,
"store": true,
"metadata": {},
"modalities": [
"<string>"
],
"audio": {
"voice": "<string>",
"format": "<string>"
},
"service_tier": "<string>",
"prediction": {
"type": "<string>",
"content": [
{
"type": "<string>",
"text": "<string>"
}
]
},
"safety_settings": "<any>",
"anthropic_beta": "<string>",
"anthropic_version": "<string>",
"thinking": {
"type": "<string>",
"budget_tokens": 123
},
"space_id": "<string>",
"project_id": "<string>"
},
"description": "<string>",
"tags": [
"<string>"
],
"model_type": "chat",
"connection_id": "<string>"
}'
"<any>"
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful Response
The response is of type any
.