Table of Contents

AI Mod Setup Guide

This page explains how to configure different AI providers for the AI Mod. Choose the provider that best fits your needs - some are free, others require payment or self-hosting.

To select provider open Settings - AI.

OpenRouter allows you to access a wide selection of models via a single API.

Steps to set up:

  1. Create an API key here: https://openrouter.ai/settings/keys
  2. Copy the key and paste it into the API key” field in the provider settings.
  3. Browse available models here: https://openrouter.ai/models
  4. Copy the Model ID (click the button next to the model name) and paste it into the “Model” field in the provider settings.

Notes:

OpenAI

This provider supports all models exposed through the official OpenAI API, including GPT-3.5 and GPT-4.

Steps to set up:

  1. Create an API key here: https://platform.openai.com/api-keys
  2. Paste the key into the API key” field in the provider settings.
  3. Use the model name (e.g. `gpt-3.5-turbo` or `gpt-4`) in the “Model” field.

Notes:

Ollama (Self-Hosted)

Ollama allows you to run models locally on your own machine.

Steps to set up:

  1. Download and install Ollama: https://ollama.com/
  2. Launch it and pull a model, e.g. `ollama run llama3`
  3. In the provider settings, use:
    1. Model: `llama3` (or any model you've pulled)

Notes:

Cloudflare AI Gateway

A proxy layer to route requests to other AI providers through Cloudflare infrastructure.

Steps to set up:

  1. Register and configure your gateway.
  2. Use the provided endpoint and key in your provider settings.

Notes:

Compatibility with OpenAI-like APIs

Many other providers (e.g., Together.ai, DeepInfra, Groq) support OpenAI-compatible APIs. If a provider gives you:

  1. a base URL,
  2. an API key, and
  3. a model name,

…you can usually plug those into the AI Mod using the “OpenAI” provider option.

Important:

  1. Some models may block or filter adult content.
  2. If using NSFW content, prefer self-hosted or OpenRouter models that explicitly allow it.