Embeddable

Use your own OpenAI, Anthropic or Gemini key

Connect your own OpenAI, Anthropic (Claude) or Google Gemini API key so your widget's AI features run on your account and the model you choose.

2 min readPublished by Daniel Sternlicht on Nov 22, 2026, 10:57 AM UTCUpdated Nov 22, 2026

Widgets with AI features, like a chat assistant, a quiz that writes personal results or a product finder, work out of the box with Embeddable's built-in AI. You don't need to connect anything.

Connect your own AI provider when you want those features to run on your own account: to use a specific model, or to have the usage billed by OpenAI, Anthropic or Google directly. This doesn't change the AI chat you use to build widgets. It only affects the AI inside your widget.

Get your API key

Pick one provider and create a key. Treat it like a password, and keep billing set up on that account, since your widget's AI requests are charged there.

  • OpenAI: go to platform.openai.com/api-keys, click Create new secret key, and copy it.
  • Anthropic (Claude): in the Claude Console at console.anthropic.com, open API Keys, click Create Key, and copy it.
  • Google Gemini: go to aistudio.google.com/app/apikey, click Create API key, and copy it.

Connect it

  1. Open your widget in the editor.
  2. In the AI chat, say which provider to use, for example "Use my own OpenAI key for the chat assistant" or "Power the quiz results with Claude".
  3. A connection card for that provider appears in the chat. Paste your key into the field, which reads OpenAI API key, Anthropic API key or Google Gemini API key, and click Save.

The card shows Connected. You can also connect from More, then Connect apps. For the general steps, see Connect an app to your widget.

What happens next

Once a provider is connected, the AI builder sets up your widget's AI features to use it. Your key stays on our servers and is never put in the widget's code, so visitors can't see it.

If you want a particular model, name it in the chat, for example "Use gpt-4o for the assistant." If you don't, a default model from that provider is used. You can also ask for how the AI should answer, like "Keep replies under three sentences" or "Answer as a friendly bakery assistant."

Try the AI feature in the preview, then publish your changes. You can see the requests and costs in your provider's own dashboard.

Change or remove it

  • To use a new key, click the pencil icon on the connection card, paste the new key and click Update.
  • To remove it, click the trash icon on the card, or click More, then Connect apps, open the provider and click Disconnect. Then ask the AI chat to switch the widget back to Embeddable's built-in AI, so its AI features keep working.
  • Your key stays saved in your workspace so you can use it again. To stop all access, delete the key in your provider's dashboard.

If the AI feature stops answering after you connect, check that the key is active and that your provider account has billing set up. If it still doesn't work, email us through the contact page with the widget name.

Did this answer your question?

Your feedback helps us improve.