OpenAI

Stable

Bring your own OpenAI key and power your LunoGen agent with GPT models

AI & ML

What is OpenAI?

OpenAI provides the GPT family of large language models, including GPT-5.4, o3-mini, and the DALL-E image generation suite. The LunoGen OpenAI integration lets you bring your own OpenAI API key, pick which model the agent reasons with, generate embeddings for memory recall, run DALL-E image jobs, and monitor your OpenAI spend — all from WhatsApp.

Why connect OpenAI?

LunoGen ships with a default model, but teams with an OpenAI contract often want to use their own key and models. Bringing your own key gives you cost control, access to fine-tuned models, and the option to route different tasks to different models — GPT-5.4 for reasoning, o3-mini for quick replies, embeddings for memory. This integration puts all of that under your control and adds cost tracking so you never get a surprise bill.

What you can do

  • Bring your own OpenAI key for the agent's reasoning layer
  • Per-task model selection (GPT-5.4, o3-mini, and more)
  • Embeddings-based memory recall across conversations
  • Daily and monthly cost tracking on WhatsApp
  • Fine-tuned model deployment and routing
  • DALL-E image generation from chat
  • Token usage breakdown by task type
  • Rate limit monitoring with alerts
  • Automatic model fallback on outage
  • Per-contact model selection for cost control

Setup

Requirements

  • An OpenAI account with API access
  • A valid OpenAI API key with billing enabled
  • A LunoGen account with the Pro plan or above
  1. 1

    Create an OpenAI API key

    In the OpenAI dashboard, go to API keys → Create new secret key. Name it 'LunoGen Agent' and copy the key.

  2. 2

    Add the credential in LunoGen

    In LunoGen, open Credentials → New → OpenAI and paste your API key. Choose an organization ID if you use multiple orgs.

  3. 3

    Pick your default models

    Choose the default reasoning model (GPT-5.4 recommended) and a fast model for quick replies (o3-mini recommended).

  4. 4

    Enable embeddings for memory

    Turn on embeddings and pick the embedding model (text-embedding-3-large is the default). Memory recall will now use your OpenAI account.

  5. 5

    Set budget guardrails

    Configure daily and monthly spend caps. LunoGen will pause new requests and ping you on WhatsApp if a cap is reached.

OpenAI use cases

6 total

Related integrations

Ready to connect OpenAI?

Spin up an AI agent in under 2 minutes, plug in your OpenAI credentials, and start running your workflows from WhatsApp.