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.
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.
| Enum | Value | RAG | Preambles | Image Processing | Notes |
|---|---|---|---|---|---|
ModelFamily.COHERE_COMMAND | cohere.command-a-03-2025 | Yes | Yes | No | Cohere 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_LATEST | cohere.command-a-03-2025 | Yes | Yes | No | - |
ModelFamily.COHERE_COMMAND_VISION | cohere.command-a-vision | No | Yes | Yes | - |
ModelFamily.COHERE_COMMAND_VISION_LATEST | cohere.command-a-vision | No | Yes | Yes | - |
ModelFamily.GEMINI_FLASH | google.gemini-3.8-flash | No | Yes | No | - |
ModelFamily.GEMINI_FLASH_LATEST | google.gemini-3.8-flash | No | Yes | No | - |
ModelFamily.GEMINI_FLASH_LITE | google.gemini-3.1-flash-lite | No | Yes | No | - |
ModelFamily.GEMINI_FLASH_LITE_LATEST | google.gemini-3.1-flash-lite | No | Yes | No | - |
ModelFamily.GPT_OSS | openai.gpt-oss-120b | No | Yes | No | - |
ModelFamily.GPT_OSS_LATEST | openai.gpt-oss-120b | No | Yes | No | - |
Supported Capabilities Overview
- Retrieval-augmented generation (RAG): This feature allows you to provide documents with text content using the
options.documentsparameter. 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.preambleparameter, 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.imageparameter. 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.
1// Add additional code2...3 4const response = llm.generateText({5 prompt: "Hello World!",6 modelFamily: llm.ModelFamily.COHERE_COMMAND,7 ...8});9 10...11// Add additional codeThe 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)?
Which supported model can process images in SuiteScript?
Do all supported models accept a preamble, and how do I provide one?
What model does SuiteScript use when `modelFamily` is omitted?
Weekly Update History (2)
Updated llm.ModelFamily to include support for Google Gemini models in the N/llm module.
View Oracle DocsUpdated 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 DocsWas this article helpful?
More in AI
- Prompt Studio: Generative AI Management in NetSuite 2026.1
Prompt Studio in NetSuite 2026.1 enhances generative AI management, enabling customization of prompts and Text Enhance actions.
- SuiteCloud Agent Skills for AI Development in NetSuite 2026.1
NetSuite 2026.2 adds AI Agent Plug-ins for business and SuiteCloud workflows, with platform support, role-based skills, and finance analysis.
- N/llm Module: Usage Limits and Additional Requests in NetSuite
In NetSuite 2026.1, the N/llm module sets usage limits and options for additional requests via Oracle Cloud.
- Required Features and Permissions for NetSuite AI Connector
Ensure Server SuiteScript and OAuth 2.0 are enabled for secure usage of the NetSuite AI Connector Service.
