Skip to content

AI Support

Instead of hard-coding a single AI SDK, NuxtPro uses a more universal approach:

  • OpenAI-compatible API URL
  • API token

This makes it easy to connect to providers like OpenAI, Gemini, Anthropic, or third-party proxy providers.

Configure model endpoint

Set the API URL and token, then you can build AI features with the included templates:

ts
OPENAI_FORMAT_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxx
OPENAI_FORMAT_API_URL=https://openai.linktre.cc

Chat template

A simple chat template is provided so you can build an AI chat feature quickly. It also supports exposing chat via API.

image

Image generation template

A simple image-generation template is provided so you can build AI image generation quickly. It also supports providing image generation via API.

image