PSOpenAI
4.50.0
PowerShell module for OpenAI API
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2025 mkht. All rights reserved.
Package Details
Author(s)
- mkht
Tags
Functions
ConvertFrom-Token ConvertTo-Token Get-CosineSimilarity Get-OpenAIContext Clear-OpenAIContext Set-OpenAIContext Get-Assistant New-Assistant Remove-Assistant Set-Assistant Get-Thread New-Thread Remove-Thread Set-Thread Add-ThreadMessage Get-ThreadMessage Remove-ThreadMessage Start-ThreadRun Stop-ThreadRun Get-ThreadRun Wait-ThreadRun Receive-ThreadRun Submit-ToolOutput Get-ThreadRunStep Get-OpenAIModels Request-AudioSpeech Request-AudioTranscription Request-AudioTranslation Request-TextCompletion Request-ChatCompletion Get-ChatCompletion Set-ChatCompletion Remove-ChatCompletion Request-Embeddings Request-ImageEdit Request-ImageGeneration Request-ImageVariation New-Video New-VideoRemix Get-Video Get-VideoContent Remove-Video Wait-Video Request-Moderation Request-Response Get-Response Get-ResponseInputItem Remove-Response Request-ResponseCompaction New-Conversation Set-Conversation Get-Conversation Remove-Conversation Get-ConversationItem Add-ConversationItem Remove-ConversationItem Add-OpenAIFile Remove-OpenAIFile Get-OpenAIFile Get-OpenAIFileContent New-Container Get-Container Remove-Container Add-ContainerFile Get-ContainerFile Get-ContainerFileContent Remove-ContainerFile Start-Batch Get-Batch Wait-Batch Stop-Batch Get-BatchOutput New-VectorStore Get-VectorStore Set-VectorStore Remove-VectorStore Add-VectorStoreFile Get-VectorStoreFile Remove-VectorStoreFile Get-VectorStoreFileBatch Get-VectorStoreFileInBatch Start-VectorStoreFileBatch Stop-VectorStoreFileBatch Wait-VectorStoreFileBatch Connect-RealtimeSession Connect-RealtimeTranscriptionSession Disconnect-RealtimeSession Send-RealtimeSessionEvent Set-RealtimeSessionConfiguration Set-RealtimeTranscriptionSessionConfiguration Add-RealtimeSessionItem Remove-RealtimeSessionItem Request-RealtimeSessionResponse Stop-RealtimeSessionResponse Start-RealtimeSessionAudioOutput Stop-RealtimeSessionAudioOutput Start-RealtimeSessionAudioInput Stop-RealtimeSessionAudioInput New-ChatCompletionFunction Enter-ChatGPT
PSEditions
Dependencies
This module has no dependencies.
FileList
- PSOpenAI.nuspec
- CHANGELOG.md
- PSOpenAI.psd1
- Private\ChatCompletionFunction.ps1
- Private\Enums.ps1
- Private\Get-MaskedString.ps1
- Private\Initialize-APIBase.ps1
- Private\Invoke-OpenAIAPIRequest.ps1
- Private\ObjectParser.ps1
- Private\Wait-OpenAIFileStatus.ps1
- Public\Enter-ChatGPT.ps1
- Public\Assistants\Get-Assistant.ps1
- Public\Audio\Request-AudioTranscription.ps1
- Public\Batch\Stop-Batch.ps1
- Public\Chat\Request-ChatCompletion.ps1
- Public\Containers\Get-ContainerFileContent.ps1
- Public\Conversations\Get-Conversation.ps1
- Public\Conversations\Set-Conversation.ps1
- Public\Files\Remove-OpenAIFile.ps1
- Public\Moderations\Request-Moderation.ps1
- Public\Realtime\Remove-RealtimeSessionItem.ps1
- Public\Realtime\Start-RealtimeSessionAudioInput.ps1
- Public\Responses\Get-Response.ps1
- Public\Runs\Get-ThreadRun.ps1
- Public\Runs\Submit-ToolOutput.ps1
- Public\Threads\New-Thread.ps1
- Public\VectorStores\New-VectorStore.ps1
- Public\Videos\Get-VideoContent.ps1
- Public\Videos\Wait-Video.ps1
- Libs\NAudio\net472\NAudio.dll
- Libs\NJsonSchema\netstandard2.0\NJsonSchema.dll
- Public\VectorStores\Batches\Get-VectorStoreFileBatch.ps1
- Public\VectorStores\Batches\Wait-VectorStoreFileBatch.ps1
- LICENSE
- PSOpenAI.psm1
- Private\Convert-ImageToDataURL.ps1
- Private\Exceptions.ps1
- Private\Get-OpenAIAPIEndpoint.ps1
- Private\Initialize-APIKey.ps1
- Private\Invoke-OpenAIAPIRequestSSE.ps1
- Private\Parse-WebExceptionResponse.ps1
- Private\Write-ByteContent.ps1
- Public\Get-CosineSimilarity.ps1
- Public\Assistants\New-Assistant.ps1
- Public\Audio\Request-AudioTranslation.ps1
- Public\Batch\Wait-Batch.ps1
- Public\Chat\Set-ChatCompletion.ps1
- Public\Containers\New-Container.ps1
- Public\Conversations\Get-ConversationItem.ps1
- Public\Embeddings\Request-Embeddings.ps1
- Public\Images\Request-ImageEdit.ps1
- Public\Realtime\Add-RealtimeSessionItem.ps1
- Public\Realtime\Request-RealtimeSessionResponse.ps1
- Public\Realtime\Start-RealtimeSessionAudioOutput.ps1
- Public\Responses\Get-ResponseInputItem.ps1
- Public\Runs\Get-ThreadRunStep.ps1
- Public\Runs\Wait-ThreadRun.ps1
- Public\Threads\Remove-Thread.ps1
- Public\VectorStores\Remove-VectorStore.ps1
- Public\Videos\New-Video.ps1
- Libs\CancelableWait\netstandard2.0\CancelableWait.dll
- Libs\NAudio\net472\NAudio.WinMM.dll
- Libs\TokenizerLib\netstandard2.0\cl100k_base.tiktoken
- Public\VectorStores\Batches\Get-VectorStoreFileInBatch.ps1
- Public\VectorStores\Files\Add-VectorStoreFile.ps1
- PSOpenAI-Help.xml
- PSOpenAI.Types.ps1xml
- Private\Convert-LogitBiasDictionary.ps1
- Private\Get-AzureOpenAIAPIEndpoint.ps1
- Private\Get-OpenAIAPIParameter.ps1
- Private\Initialize-OpenAIAPIRequestParam.ps1
- Private\New-MultipartFormBoundary.ps1
- Private\Should-Retry.ps1
- Public\Clear-OpenAIContext.ps1
- Public\Get-OpenAIContext.ps1
- Public\Assistants\Remove-Assistant.ps1
- Public\Batch\Get-Batch.ps1
- Public\Chat\Get-ChatCompletion.ps1
- Public\Containers\Add-ContainerFile.ps1
- Public\Containers\Remove-Container.ps1
- Public\Conversations\New-Conversation.ps1
- Public\Files\Add-OpenAIFile.ps1
- Public\Images\Request-ImageGeneration.ps1
- Public\Realtime\Connect-RealtimeSession.ps1
- Public\Realtime\Send-RealtimeSessionEvent.ps1
- Public\Realtime\Stop-RealtimeSessionAudioInput.ps1
- Public\Responses\Remove-Response.ps1
- Public\Runs\Receive-ThreadRun.ps1
- Public\Threads\Add-ThreadMessage.ps1
- Public\Threads\Remove-ThreadMessage.ps1
- Public\VectorStores\Set-VectorStore.ps1
- Public\Videos\New-VideoRemix.ps1
- Libs\CustomAttributes\netstandard2.0\CustomAttributes.dll
- Libs\NJsonSchema\netstandard2.0\Namotion.Reflection.dll
- Libs\TokenizerLib\netstandard2.0\o200k_base.tiktoken
- Public\VectorStores\Batches\Start-VectorStoreFileBatch.ps1
- Public\VectorStores\Files\Get-VectorStoreFile.ps1
- PSOpenAI.Format.ps1xml
- README.md
- Private\Convert-ModelToEncoding.ps1
- Private\Get-ChatCompletionMessage.ps1
- Private\Get-RetryDelay.ps1
- Private\Initialize-OrganizationID.ps1
- Private\New-MultipartFormContent.ps1
- Private\Test-Debug.ps1
- Public\ConvertFrom-Token.ps1
- Public\Request-TextCompletion.ps1
- Public\Assistants\Set-Assistant.ps1
- Public\Batch\Get-BatchOutput.ps1
- Public\Chat\New-ChatCompletionFunction.ps1
- Public\Containers\Get-Container.ps1
- Public\Containers\Remove-ContainerFile.ps1
- Public\Conversations\Remove-Conversation.ps1
- Public\Files\Get-OpenAIFile.ps1
- Public\Images\Request-ImageVariation.ps1
- Public\Realtime\Connect-RealtimeTranscriptionSession.ps1
- Public\Realtime\Set-RealtimeSessionConfiguration.ps1
- Public\Realtime\Stop-RealtimeSessionAudioOutput.ps1
- Public\Responses\Request-Response.ps1
- Public\Runs\Start-ThreadRun.ps1
- Public\Threads\Get-Thread.ps1
- Public\Threads\Set-Thread.ps1
- Public\Videos\Get-Video.ps1
- Public\Videos\Remove-Video.ps1
- Libs\NAudio\net472\NAudio.Core.dll
- Libs\NJsonSchema\netstandard2.0\Newtonsoft.Json.dll
- Libs\TokenizerLib\netstandard2.0\TokenizerLib.dll
- Public\VectorStores\Batches\Stop-VectorStoreFileBatch.ps1
- Public\VectorStores\Files\Remove-VectorStoreFile.ps1
- Private\Assert-DeprecationModel.ps1
- Private\ConvertTo-JsonSchema.ps1
- Private\Get-CultureInfo.ps1
- Private\Get-UserAgent.ps1
- Private\Invoke-ChatCompletionFunction.ps1
- Private\New-ParentFolder.ps1
- Private\Utils.ps1
- Public\ConvertTo-Token.ps1
- Public\Set-OpenAIContext.ps1
- Public\Audio\Request-AudioSpeech.ps1
- Public\Batch\Start-Batch.ps1
- Public\Chat\Remove-ChatCompletion.ps1
- Public\Containers\Get-ContainerFile.ps1
- Public\Conversations\Add-ConversationItem.ps1
- Public\Conversations\Remove-ConversationItem.ps1
- Public\Files\Get-OpenAIFileContent.ps1
- Public\Models\Get-OpenAIModels.ps1
- Public\Realtime\Disconnect-RealtimeSession.ps1
- Public\Realtime\Set-RealtimeTranscriptionSessionConfiguration.ps1
- Public\Realtime\Stop-RealtimeSessionResponse.ps1
- Public\Responses\Request-ResponseCompaction.ps1
- Public\Runs\Stop-ThreadRun.ps1
- Public\Threads\Get-ThreadMessage.ps1
- Public\VectorStores\Get-VectorStore.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 4.50.0 (current version) | 87 | 8/15/2026 |
| 4.49.0 | 2,920 | 5/23/2026 |
| 4.48.0 | 1,705 | 2/7/2026 |
| 4.47.0 | 137 | 1/28/2026 |
| 4.46.0 | 254 | 12/19/2025 |
| 4.45.0 | 66 | 12/13/2025 |
| 4.44.0 | 68 | 12/6/2025 |
| 4.43.0 | 194 | 11/14/2025 |
| 4.42.0 | 9 | 11/14/2025 |
| 4.41.0 | 193 | 10/18/2025 |
| 4.40.0 | 87 | 10/12/2025 |
| 4.39.1 | 50 | 10/7/2025 |
| 4.39.0 | 342 | 9/24/2025 |
| 4.38.0 | 696 | 9/14/2025 |
| 4.37.0 | 613 | 9/2/2025 |
| 4.36.0 | 255 | 8/27/2025 |
| 4.35.0 | 170 | 8/24/2025 |
| 4.34.0 | 61 | 8/18/2025 |
| 4.33.0 | 76 | 8/9/2025 |
| 4.32.0 | 491 | 7/30/2025 |
| 4.31.0 | 223 | 7/20/2025 |
| 4.30.0 | 267 | 7/13/2025 |
| 4.29.1 | 619 | 6/20/2025 |
| 4.29.0 | 47 | 6/18/2025 |
| 4.28.0 | 180 | 6/7/2025 |
| 4.27.0 | 93 | 6/4/2025 |
| 4.26.0 | 168 | 5/28/2025 |
| 4.25.0 | 174 | 5/17/2025 |
| 4.24.0 | 163 | 5/3/2025 |
| 4.23.0 | 92 | 4/17/2025 |
| 4.22.0 | 17 | 4/15/2025 |
| 4.21.0 | 18 | 4/13/2025 |
| 4.20.0 | 388 | 3/21/2025 |
| 4.19.0 | 214 | 3/13/2025 |
| 4.18.0 | 514 | 2/28/2025 |
| 4.17.0 | 1,316 | 2/16/2025 |
| 4.16.0 | 1,025 | 2/9/2025 |
| 4.15.0 | 1,047 | 2/5/2025 |
| 4.14.0 | 1,414 | 2/1/2025 |
| 4.13.1 | 2,770 | 1/26/2025 |
| 4.13.0 | 1,269 | 1/22/2025 |
| 4.12.2 | 7,425 | 12/27/2024 |
| 4.12.0 | 2,261 | 12/21/2024 |
| 4.11.0 | 4,478 | 11/20/2024 |
| 4.10.0 | 1,370 | 11/6/2024 |
| 4.9.1 | 377 | 11/1/2024 |
| 4.8.0 | 182 | 10/27/2024 |
| 4.7.0 | 1,719 | 10/2/2024 |
| 4.6.0 | 74 | 10/1/2024 |
| 4.5.0 | 221 | 9/27/2024 |
| 4.4.1 | 371 | 9/19/2024 |
| 4.4.0 | 296 | 9/13/2024 |
| 4.3.0 | 364 | 9/6/2024 |
| 4.2.0 | 959 | 8/16/2024 |
| 4.1.1 | 144 | 8/12/2024 |
| 4.1.0 | 58 | 8/11/2024 |
| 4.0.0 | 528 | 7/19/2024 |
| 3.16.0 | 410 | 7/7/2024 |
| 3.15.1 | 688 | 6/19/2024 |
| 3.15.0 | 241 | 6/14/2024 |
| 3.14.0 | 80 | 5/26/2024 |
| 3.13.0 | 23 | 5/24/2024 |
| 3.12.0 | 409 | 5/14/2024 |
| 3.11.0 | 9 | 5/13/2024 |
| 3.10.0 | 13 | 5/11/2024 |
| 3.9.1 | 100 | 5/2/2024 |
| 3.9.0 | 7 | 5/2/2024 |
| 3.8.0 | 13 | 4/29/2024 |
| 3.7.0 | 15 | 4/25/2024 |
| 3.6.1 | 20 | 4/17/2024 |
| 3.6.0 | 20 | 4/14/2024 |
| 3.5.0 | 20 | 4/8/2024 |
| 3.4.0 | 49 | 4/1/2024 |
| 3.3.1 | 139 | 3/25/2024 |
| 3.3.0 | 33 | 3/24/2024 |
| 3.2.0 | 172 | 3/17/2024 |
| 3.1.0 | 467 | 3/10/2024 |
| 3.0.0 | 310 | 2/27/2024 |
| 2.10.0 | 126 | 2/22/2024 |
| 2.9.0 | 130 | 2/14/2024 |
| 2.8.0 | 15 | 2/10/2024 |
| 2.7.0 | 103 | 1/27/2024 |
| 2.6.2 | 18 | 1/20/2024 |
| 2.6.1 | 11 | 1/19/2024 |
| 2.6.0 | 13 | 1/13/2024 |
| 2.5.0 | 66 | 12/27/2023 |
| 2.4.0 | 21 | 12/18/2023 |
| 2.3.0 | 146 | 11/28/2023 |
| 2.2.0 | 14 | 11/23/2023 |
| 2.1.0 | 21 | 11/10/2023 |
| 2.0.0 | 20 | 10/20/2023 |
| 1.15.2 | 43 | 10/4/2023 |
| 1.15.1 | 8 | 10/4/2023 |
| 1.15.0 | 11 | 10/4/2023 |
| 1.14.3 | 15 | 9/19/2023 |
| 1.14.2 | 465 | 8/23/2023 |
| 1.14.0 | 71 | 6/19/2023 |
| 1.12.6 | 32 | 5/23/2023 |
| 1.12.5 | 22 | 5/16/2023 |
| 1.12.4 | 12 | 5/14/2023 |
| 1.12.3 | 11 | 5/8/2023 |
| 1.12.2 | 120 | 5/6/2023 |
| 1.12.1 | 14 | 5/4/2023 |
| 1.12.0 | 9 | 5/3/2023 |
| 1.11.0 | 11 | 4/28/2023 |
| 1.10.0 | 9 | 4/27/2023 |
| 1.9.2 | 14 | 4/23/2023 |
| 1.9.1 | 10 | 4/23/2023 |
| 1.9.0 | 9 | 4/22/2023 |
| 1.8.0 | 11 | 4/19/2023 |
| 1.7.0 | 12 | 4/15/2023 |
| 1.6.0 | 14 | 4/10/2023 |
| 1.5.0 | 15 | 4/9/2023 |
| 1.4.0 | 14 | 4/1/2023 |
| 1.3.0 | 12 | 3/28/2023 |
| 1.2.1 | 15 | 3/21/2023 |
| 1.2.0 | 18 | 3/13/2023 |
| 1.1.2 | 13 | 3/11/2023 |
| 1.1.0 | 12 | 3/9/2023 |
| 1.0.0 | 15 | 3/8/2023 |