NetSuite: SuiteAPI v2025.2 Released

Published on March 2, 2025.

Today I've released SuiteAPI v2025.2 (an open source, alternative Web API for the NetSuite platform), which adds support for three generative AI-related procedures. These procedures give developers the ability to use NetSuite's large language model capabilities in external applications, such as mobile, desktop, and Web apps.

The three new SuiteAPI procedures include:
llmEnumerate, which provides information about the chat roles and model families that it supports.
llmGenerateText, which returns the LLM response for a given prompt.
llmGetRemainingFreeUsage, which returns the number of free LLM requests remaining in the current month.

The procedures use the SuiteScript n/LLM module, which is NetSuite's generative AI APIs. If you're unfamiliar with the n/LLM module, or with generative artificial intelligence (AI) in general, I recommend reading SuiteScript 2.x Generative AI APIs.


Using SuiteAPI to Send A Prompt

Sending a prompt is very simple. Here's an example.

{
  "procedure": "llmGenerateText",
  "prompt": "How many feet are in a kilometer?"
}

The response will look like this.

{
  "text": "There are approximately 3280.84 feet in 1 kilometer.",
  "model": "ocid1.generativeaiendpoint.oc1.us-chicago-1.amaaaaaad2zjmiaajjrrvbl3wlq5jaiubjrcodsx3jbrifaunjgmf2tonjoa-1.7",
  "remainingFreeUsage": 977
}

There are several optional parameters that the "llmGenerateText" procedure supports that give developers the ability to specify the LLM model to be used, a chat history (to be considered when responding to the prompt), temperature, frequency penalty, and more. For more information, see the SuiteAPI documentation.


Next Steps

For more information about SuiteAPI, please visit:
https://suiteapi.com

SuiteAPI can be downloaded here:
https://suiteapi.com/download/

If you'd like to learn about some of the projects that I've used SuiteAPI on, check out these previous blog posts:
Develop An Order Status Web App With SuiteQL, SuiteAPI, and Xojo
NetSuite Integration with SuiteAPI and Xojo
Palladium: A Hybrid Desktop App Powered by ColdFusion, Xojo, NetSuite, and SuiteAPI

About Me

Hello, I’m Tim Dietrich. I design and build custom software for businesses running on NetSuite — from mobile apps and Web portals to Web APIs and integrations.

I’ve created several widely used open-source solutions for the NetSuite community, including the SuiteQL Query Tool and SuiteAPI, which help developers and businesses get more out of their systems.

I’m also the founder of SuiteStep, a NetSuite development studio focused on pushing the boundaries of what’s possible on the platform. Through SuiteStep, I deliver custom software and AI-driven solutions that make NetSuite more powerful, accessible, and future-ready.

Copyright © 2025 Tim Dietrich.