Skip to main content
Generates text using a chat Provider. Pass a prompt alone or include one image or video for the model to interpret.

Syntax

Arguments

  • prompt: A VARCHAR expression describing the task for the model. You can use a text column.
  • file: A FILE expression supplying the image or video. See FILE input support.
  • options: An optional constant JSON object. See JSON options.
For the types and default behavior of provider and model, see Common calling rules.

Return value

Returns the text generated by the model as VARCHAR.

Examples

For an image, see the OpenAI-compatible Chat example. For a video, the following query uses the native multimodal Provider dashscope_chat from CREATE AI PROVIDER.