--- title: 'OpenAI' description: 'Generate text, create embeddings, and moderate content with the OpenAI API.' --- # OpenAI Generate text, create embeddings, and moderate content with the OpenAI API. | Detail | Value | |---|---| | Category | AI | | Base URL | `https://api.openai.com/v1` | | Authentication | Bearer Token | | Endpoints | 6 | | Connector key | `openai` | ## Using OpenAI in a workflow 1. Go to **Connections** and click **New Connection**. 2. Pick **OpenAI** from the marketplace. 3. Enter your credentials (see Authentication above for what's expected). 4. In a workflow, drop an **API Call** node and select this connection. 5. Pick the operation you need from the Operation dropdown — see the table below. ## Available Endpoints | Endpoint | Summary | |---|---| | [POST /chat/completions](./post_chat_completions_ai_createchatcompletion) | Create a chat completion | | [POST /embeddings](./post_embeddings_ai_createembedding) | Create an embedding vector | | [POST /images/generations](./post_images_generations_ai_generateimage) | Generate an image | | [POST /moderations](./post_moderations_ai_createmoderation) | Classify text for moderation | | [GET /models](./get_models_ai_listmodels) | List available models | | [POST /audio/transcriptions](./post_audio_transcriptions_ai_transcribeaudio) | Transcribe audio to text | > Each endpoint has its own page with parameter details, an example > `API Call` node configuration, and the response shape.