Skip to main content

Introduction to OpenAI

Want to build a chat app or AI assistant on Magic Patterns? You can use our OpenAI integration to create fully functional AI apps that leverage the latest models from OpenAI, the same company that build ChatGPT.
OpenAI Integration

Step by Step Tutorial

1

Create an OpenAI Account

Create a new OpenAI account if you don’t already have one.
2

Create a new OpenAI API Key

Magic Patterns uses the OpenAI API to communicate with OpenAI’s services. Your API key is sensitive and should be stored securely—never share it directly in prompts to Magic Patterns.You can create a new API key here.
3

(Optional) Set a usage limit

We highly recommend setting a usage limit on your OpenAI account. This protects you from unexpected charges in case your API key is accidentally exposed or compromised.
4

Enable the OpenAI Integration in Magic Patterns

Once you have your API key, enable the integration in Magic Patterns via the “Integrations” panel.
5

Prompt Magic Patterns to use OpenAI

By default, Magic Patterns will not connect to OpenAI. Once the integration is enabled, you can prompt along the lines of “Connect this design to OpenAI” and Magic Patterns will then integrate your design.
Once a design is connected to OpenAI, anyone you share the design or preview link with will be able to use the AI features. This will consume your OpenAI API credits.
I