Updated on 2026-11-06 GMT+08:00

CREATE MODEL

Function

Saves the meta information of a large model to LakeFormation. It is invoked by ai_generate in Large Model Inference Functions.

Constraints

It can only be invoked by remote large models.

Syntax

1
2
3
CREATE MODEL model_name 
( remote_model_name = 'remote_model_name',base_url = 'base_url',
api_key = 'api_key'[, description = 'description'] );

Parameter Description

Table 1 CREATE MODEL parameters

Parameter

Description

Value Range

model_name

Name of the model to be created (it cannot be schema-qualified). It can only be invoked by Aura.

A string, which must comply with the naming convention

remote_model_name

Name of the model provided by the model vendor

String

base_url

URL provided by the model vendor

A string

api_key

Key required for accessing the remote model

A string

description

Custom description

The default value is null, and the length cannot exceed 2,048 characters.