Connect to OpenAI for chat completions, embeddings, image generation, audio transcription, and assistants management.
| Action | Description | Parameters | Returns |
|---|---|---|---|
chat_completion | Create a chat completion | model, messages [temperature, max_tokens, tools] | ChatCompletion |
create_assistant | Create an assistant | model, name [instructions, tools] | Assistant |
create_embedding | Create text embeddings | model, input | Embedding |
create_fine_tuning_job ⚠ | Create a fine-tuning job | model, training_file | FineTuningJob |
create_image | Generate images from a text prompt | prompt [size, n] | ImageResult |
create_moderation | Run content moderation on text | input | ModerationResult |
create_speech | Generate speech audio from text | input, voice [model, response_format, speed] | bytes |
create_thread | Create a thread | — | Thread |
create_thread_message | Create a message in a thread | thread_id, content [role] | ThreadMessage |
delete_assistant ⚠ | Delete an assistant | assistant_id | bool |
delete_file ⚠ | Delete an uploaded file | file_id | bool |
delete_model ⚠ | Delete a fine-tuned model | model_id | bool |
get_assistant | Get an assistant by ID | assistant_id | Assistant |
get_file | Get file metadata by ID | file_id | OpenAIFile |
get_file_content | Get file content by ID | file_id | str |
get_model | Get a model by ID | model_id | OpenAIModel |
get_thread_run | Get a thread run by ID | thread_id, run_id | ThreadRun |
list_assistants | List assistants | [limit] | PaginatedList[Assistant] |
list_files | List uploaded files | [purpose] | list |
list_fine_tuning_jobs | List fine-tuning jobs | [limit] | list |
list_models | List available models | — | list |
list_thread_messages | List messages in a thread | thread_id [limit] | list |
run_thread | Run a thread with an assistant | thread_id, assistant_id | ThreadRun |
transcribe_audio | Transcribe audio to text | file_url [model] | AudioTranscription |
update_assistant | Update an assistant | assistant_id [name, instructions, model] | Assistant |
upload_file | Upload a file to OpenAI | file_content, purpose [filename] | OpenAIFile |
Full schema explorer, code generation, and live API testing