Skip to main content
All CollectionsPlugins
OpenAI Integration
OpenAI Integration

Integrate OpenAI directly into your app with three clicks

Adam avatar
Written by Adam
Updated over 3 weeks ago

This plugin allows for seamless interaction with OpenAI's API to leverage advanced AI capabilities such as chat completions, image creation, and more, all from within your Bubble.io apps.

Key Features

  • Chat Completions: Utilize OpenAI's language model to generate text completions, answers, and suggestions based on the input provided.

  • Create Image: Generate unique images based on textual descriptions, perfect for applications requiring dynamic content creation.

  • Create Moderation: Evaluate content to determine if it meets certain safety or appropriateness criteria.

  • List Models: Access a list of available models you can use, tailored to different tasks and requirements.

  • Create Speech: Convert text into natural-sounding speech, enhancing accessibility and user engagement.

Getting Started

To begin using the OpenAI API Plugin, you'll need to configure authentication and shared headers:

Authentication

  1. Private Key: Include a private key in the header of your API calls. This key is for testing purposes and will not be shipped with the plugin.

    • Key Name: Authorization

    • Private Key: Bearer sk-proj-your-private-key

Shared Headers for All Calls

  • Content-Type: application/json

Commonly Used API Calls

  1. Chat Completions

    • Generate conversational responses or complete prompts with contextually relevant text.

  2. Create Image

    • Create images from textual descriptions, suitable for various applications like dynamic advertising or content personalization.

  3. List Models

    • Retrieve a list of all available OpenAI models, allowing you to select the most appropriate one for your task.

  4. Create Speech

    • Turn text into spoken audio, useful for accessibility features or multimedia applications.

  5. Create Moderation

    • Assess whether text content adheres to specified guidelines, crucial for maintaining community standards.

More Capabilities

The plugin includes many more capabilities such as transcription, translation, fine-tuning of models, file management, and batch processing.

Support

For support and further assistance, you can contact us through the live chat feature on our website. The team at Syrup is dedicated to providing you with the necessary support to integrate and utilize AI features effectively within your Bubble applications.

Before deploying AI models in a production environment, ensure you understand the safety best practices recommended by OpenAI. For more information, refer to the Safety Best Practices article. Additionally, to optimize your organization's setup for seamless integration and deployment, consult the Production Best Practices guide on setting up your organization.

This documentation provides a quick overview to get started with the most important features of the OpenAI API Plugin for Bubble.io. For more detailed information and advanced features, please explore the full capabilities listed within the plugin in the Bubble.io environment.

Did this answer your question?