Skip to Content

Create Application - CreateMVApp

Overview

Provide parameters to create application

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateMVApp.Yes
PublicKeystringThe user’s public key can be obtained from Console Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
AppNamestringApplication NameYes
AppTypeintApplication TypeYes
LLMIDstringLanguage Model IDYes
LLMTemperatureintModel sampling temperature, open interval (0,100), cannot be equal to 0 or 100, default value 95No
LLMTopPintModel Sampling Temperature (Core Sampling), open interval (0,100), cannot be equal to 0 or 100, default value 70No
AppDesstringApplication DescriptionNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
MsgstringWhen the Code is non-zero, it describes the error information.Yes
AppInfoAppInfoApplication InformationYes

Data Model

AppInfo

Field NameTypeDescription InformationRequired
AppNamestringApplication NameNo
AppIDstringApplication IDNo
AppTypeintApplication TypeNo
AppDesstringApplication DescriptionNo
AppStateintApplication StatusNo
LLMIDstringLanguage Model IDNo
LLMTemperatureintModel Sampling TemperatureNo
LLMTopPintAnother method of model sampling temperature (nucleus sampling)No
CreateTimeintApplication Creation TimeNo
UpdateTimeintApplication Update TimeNo

Example

Request Example

https://api.ucloud-global.com/?Action=CreateMVApp &AppName=pRwgTpER &AppType=6 &LLMID=BtTWclTl &LLMTemperature=5 &LLMTopP=4 &AppDes=cIBGvFSV

Response Example

{ "Action": "CreateMVAppResponse", "AppInfo": {}, "Msg": "MHZLcsLH", "RetCode": 0 }