# OpenAI integration

> OpenAI's API for chat completions, responses, embeddings, images, audio, moderation, files, vector stores, fine-tuning, and batch jobs

- Authentication: apiKey

## Tools (49)

- **Cancel Batch**: Cancel an in-progress batch; partial results may still be available
- **Cancel Fine-Tuning Job**: Cancel an in-progress fine-tuning job
- **Cancel Response**: Cancel a background model response that is still in progress
- **Create Audio Transcription**: Transcribe audio to text in the source language, optionally with timestamps
- **Create Audio Translation**: Translate audio from any supported language into English text
- **Create Batch**: Kick off an asynchronous batch job over an uploaded JSONL file of requests
- **Create Chat Completion**: Generate a chat completion for the given conversation, supporting tools, JSON schema outputs, vision, and streaming
- **Create Conversation**: Create a stateful conversation container for multi-turn interactions with the Responses API
- **Create Conversation Items**: Append one or more items (messages, tool calls) to a conversation
- **Create Embeddings**: Generate vector embeddings for one or more text inputs
- **Create Fine-Tuning Job**: Start a fine-tuning job over an uploaded training dataset
- **Create Image Variation**: Generate variations of an existing image (DALL-E 2 only)
- **Create Moderation**: Classify text and/or image inputs for harmful content across 13 categories
- **Create Response**: Generate a model response via the Responses API, the modern replacement for Chat Completions with built-in tools, multimodal input, and reasoning
- **Create Speech (TTS)**: Convert text to speech audio using OpenAI's TTS models
- **Create Vector Store**: Create a vector store that indexes uploaded files for retrieval via file_search
- **Create Vector Store File**: Attach an existing uploaded file to a vector store for indexing
- **Delete Conversation**: Delete a conversation and all its items
- **Delete Conversation Item**: Remove a single item from a conversation
- **Delete File**: Delete an uploaded file
- **Delete Fine-Tuned Model**: Delete a fine-tuned model owned by the current organization
- **Delete Response**: Delete a stored response from the Responses API
- **Delete Vector Store**: Delete a vector store and its embeddings (source files are unaffected)
- **Delete Vector Store File**: Detach a file from a vector store (the underlying file in /v1/files is not deleted)
- **Download File Content**: Download the raw bytes of an uploaded file (e.g. batch output, fine-tune results)
- **Edit Image**: Edit or extend an existing image guided by a text prompt, with optional mask for targeted edits
- **Generate Image**: Generate an image from a text prompt using DALL-E or GPT-Image models
- **Get Conversation Item**: Retrieve a single conversation item by ID
- **Get Response**: Retrieve a stored or in-progress response by ID, including its full output, usage, and status
- **List Batches**: List batches in the current organization
- **List Conversation Items**: List items in a conversation with cursor pagination
- **List Files**: List files uploaded to the current organization/project
- **List Fine-Tuning Events**: List training events for a fine-tuning job, including per-step metrics
- **List Fine-Tuning Job Checkpoints**: List checkpoints (intermediate model snapshots) for a fine-tuning job
- **List Fine-Tuning Jobs**: List fine-tuning jobs in the current organization
- **List Models**: List models available to the current organization
- **List Response Input Items**: List the input items (messages and content parts) sent to a stored response
- **List Vector Store Files**: List files in a vector store, including per-file processing status
- **List Vector Stores**: List vector stores in the current organization
- **Modify Vector Store**: Modify a vector store's name, expiration policy, or metadata
- **Retrieve Batch**: Retrieve a batch by ID to check status, progress, and result file IDs
- **Retrieve Conversation**: Retrieve a conversation by ID
- **Retrieve File**: Retrieve metadata for a specific file
- **Retrieve Fine-Tuning Job**: Retrieve a fine-tuning job by ID to check status and fine-tuned model name
- **Retrieve Model**: Retrieve metadata for a specific model ID
- **Retrieve Vector Store**: Retrieve a vector store by ID
- **Search Vector Store**: Search a vector store for chunks relevant to a query, for RAG workflows outside the file_search tool
- **Update Conversation**: Update a conversation's metadata
- **Upload File**: Upload a file for use with fine-tuning, batch, assistants, vision, or user-data endpoints

## Related prompts

- [Hourly meeting recordings to Notion briefs and Slack recaps](https://www.generalinput.com/prompts/hourly-meeting-recordings-to-notion-briefs-and-slack-recaps.md)
- [Sync your Notion knowledge base to OpenAI every night](https://www.generalinput.com/prompts/sync-your-notion-knowledge-base-to-openai-every-night.md)
- [Generate DALL-E hero images from Airtable content briefs](https://www.generalinput.com/prompts/generate-dall-e-hero-images-from-airtable-content-briefs.md)
- [Screen new Typeform submissions before they hit HubSpot](https://www.generalinput.com/prompts/screen-new-typeform-submissions-before-they-hit-hubspot.md)

Connect OpenAI in General Input: https://www.generalinput.com/apps/openai