Supported Models for Generative AI in SuiteScript

NetSuite 2026.2 adds Gemini Flash and Flash Lite model details and clarifies RAG, preamble, and image-processing support.

·3 min read·114 views·View Oracle Docs

The following table lists the models supported when using the llm.generateText(options) and llm.generateTextStreamed(options) functions, along with their associated capabilities. In NetSuite 2026.2, supported models include Gemini Flash and Gemini Flash Lite in addition to Cohere Command and GPT OSS. The model support listed here also applies to the promise versions of these functions.

Supported Models and Capabilities

The capability columns indicate support for retrieval-augmented generation (RAG), preambles, and image processing separately.

EnumValueRAGPreamblesImage ProcessingNotes
ModelFamily.COHERE_COMMANDcohere.command-a-03-2025YesYesNoCohere Command A is the default model used when the options.modelFamily parameter is omitted in llm.generateText(options) or llm.generateTextStreamed(options).
ModelFamily.COHERE_COMMAND_LATESTcohere.command-a-03-2025YesYesNo-
ModelFamily.COHERE_COMMAND_VISIONcohere.command-a-visionNoYesYes-
ModelFamily.COHERE_COMMAND_VISION_LATESTcohere.command-a-visionNoYesYes-
ModelFamily.GEMINI_FLASHgoogle.gemini-3.8-flashNoYesNo-
ModelFamily.GEMINI_FLASH_LATESTgoogle.gemini-3.8-flashNoYesNo-
ModelFamily.GEMINI_FLASH_LITEgoogle.gemini-3.1-flash-liteNoYesNo-
ModelFamily.GEMINI_FLASH_LITE_LATESTgoogle.gemini-3.1-flash-liteNoYesNo-
ModelFamily.GPT_OSSopenai.gpt-oss-120bNoYesNo-
ModelFamily.GPT_OSS_LATESTopenai.gpt-oss-120bNoYesNo-

Supported Capabilities Overview

  • Retrieval-augmented generation (RAG): This feature allows you to provide documents with text content using the options.documents parameter. Such documents enhance the LLM's responses by providing additional context. Supply documents as llm.Document objects. The LLM will return llm.Citation objects, signifying the source of the information it used. As shown in the table, RAG is supported by Cohere Command A, but not by Cohere Command A Vision, Gemini, or GPT OSS. More information about RAG can be found in the Oracle Cloud Infrastructure Documentation.
  • Preambles: Initial context can be given to the LLM through the options.preamble parameter, helping guide its responses better. All models listed in the table support preambles. For details on using a preamble, refer to the Offered Pretrained Foundational Models in Generative AI in the Oracle Cloud Infrastructure Documentation.
  • Image processing: You can provide an image (as a file.File object) using the options.image parameter. You can ask questions about the image and receive responses that can include advanced image captions, a detailed description of the image, information about charts and graphs in the image, and so on. Among the listed models, only Cohere Command A Vision supports image processing.

Syntax

The following sample shows the syntax for selecting a model. It is not a functional example. For a complete script example, see N/llm Module Script Samples.

suitescript
1// Add additional code
2...
3
4const response = llm.generateText({
5 prompt: "Hello World!",
6 modelFamily: llm.ModelFamily.COHERE_COMMAND,
7 ...
8});
9
10...
11// Add additional code

The llm.generateText(options) method returns an llm.Response for a given prompt and is also available through the llm.chat(options) alias, which uses the same parameters and can throw the same errors. This SuiteScript 2.1 method is supported in server scripts, has a governance cost of 100, and consumes NetSuite AI Units. A prompt is required unless options.toolResults is specified; when tool results are supplied, any prompt is ignored and the LLM generates a follow-up response based only on those results. Optional options.chatHistory entries provide chat history for consideration.

Conclusion

These models and capabilities enrich the functionality of the SuiteScript generative AI APIs, enabling more flexible and informed responses from the LLM according to user-defined parameters.

Key Takeaways

  • The table outlines models supported by SuiteScript generative AI APIs.
  • RAG enhances responses by incorporating additional document context.
  • Preambles help set context for the LLM's generation process.
  • Image processing allows for direct inquiries about images.
  • In NetSuite 2026.2, Gemini Flash and Gemini Flash Lite support preambles, but not RAG or image processing.

Frequently Asked Questions (4)

Which SuiteScript generative AI models support retrieval-augmented generation (RAG)?
Cohere Command A supports RAG through the `options.documents` parameter, which accepts `llm.Document` objects and can provide additional context. Cohere Command A Vision, Gemini Flash, Gemini Flash Lite, and GPT OSS do not support RAG.
Which supported model can process images in SuiteScript?
Only Cohere Command A Vision supports image processing. Pass an image as a `file.File` object using `options.image`; the model can respond to questions about the image, including its contents, charts, or graphs.
Do all supported models accept a preamble, and how do I provide one?
Yes, every model in the supported-model table accepts a preamble. Provide initial context through the `options.preamble` parameter.
What model does SuiteScript use when `modelFamily` is omitted?
`llm.generateText(options)` and `llm.generateTextStreamed(options)` use Cohere Command A by default when `options.modelFamily` is omitted. The same model support applies to the promise versions of these functions.

Weekly Update History (2)

SuiteScriptupdated

Updated llm.ModelFamily to include support for Google Gemini models in the N/llm module.

View Oracle Docs
SuiteScriptupdated

Updated the following topics to add the Cohere Command A Vision model: llm.ModelFamily llm.generateText(options) llm.generateTextStreamed(options) N/llm Module Model Parameter Values by LLM

View Oracle Docs
Source: Values — Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in AI

View all AI articles →