Skip to main content

AI

Command Description

Calls an AI model through an OpenAI-compatible API.

Command Input Parameters

Input ParameterTypeDescription
AIstrAPI endpoint URL or built-in endpoint name: deepseek, ChatGPT, or AlibabaBailian
ModelstrModel name, such as deepseek-v3
KeystrAPI key
QuestionstrPrompt sent to the model
Response FormatenumResponse format: text or json_object

Command Output Parameters

Output ParameterTypeDescription
ResponseanyResponse returned by the model

Example

The following example uses DeepSeek to analyze specifications on the Xiaomi SU7 website and return JSON with a specified structure.