

Neosantara provides fast, low latency API access to state-of-the-art models. The Neosantara x Vercel integrations allows you to quickly integrate Neosantara AI into your web applications with ease, so you can focus on what counts - building and shipping high-performance AI applications.
With this integration, you can:
After installation, the Neosantara integration will automatically create a free account for you or link your existing Neosantara account if the same email is used across both Neosantara and Vercel.
This will allow you to link your Neosantara account with your Vercel projects to seamlessly sync your NAI_API_KEY into your Vercel environment variables. You can go to your Vercel project settings page to see your NAI_API_KEY as an environment variable after installation.
Note: This installation will overwrite your existing OPENAI_API_KEY, OPENAI_BASE_URL, ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL
See our documentation for more details.
import { openai } from '@ai-sdk/openai';import { generateText } from 'ai';
const { text } = await generateText({ model: openai.chat('nusantara-base'), prompt: 'Explain the culture of Indonesia.',});
console.log(text)