OpenAI integration
Last updated
Was this helpful?
Last updated
Was this helpful?
Our OpenAI integration enables the automation of AI-powered tasks. By leveraging the OpenAI API, Rewst.io can tap into advanced natural language processing (NLP) models and AI capabilities provided by OpenAI. This integration allows Rewst.io to offer intelligent text analysis, generation, and understanding, enabling users to interact with the application in more intuitive and efficient ways.
Log in to OpenAI.
Navigate to the API Keys page.
Create a new secret key for Rewst to use.
Navigate to Configuration > Integrations in the left side menu of your Rewst platform.
Search for OpenAI
in the integrations page.
Click on the integration tile to launch the configuration setup page.
Enter the API key copied from OpenAI into the relevant field.
If you are using the integration in conjunction with Azure, see our separate documentation for those steps to find the Azure API Version field value here. If you aren't using Azure with OpenAI, leave the Use Azure OpenAI set to False.
Optionally, if you belong to multiple organizations, you can specify the OpenAI Organization ID to use.
Click Save Configuration.
OpenAI's own API documentation can be found here.
Chat Completions
Create Chat Completion
Given a chat conversation, the model will return a chat completion response.
Completions
Create Completion
Creates a completion for the provided prompt and parameters
Edits
Create Edit
Creates a new edit for the provided input, instruction, and parameters.
Generic Request
OpenAI API Request
Generic action for making authenticated requests against the OpenAI API
Images
Create Image
Creates an image given a prompt (Beta).
Models
List Models
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Models
Get Model
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
Moderations
Create Moderation
Given a input text, outputs if the model classifies it as violating OpenAI's content policy.