API Reference
Libraries
API Overview
Completions
Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
Create completion
Chat
ChatCompletions
Given a list of messages comprising a conversation, the model will return a response.
Create chat completion
List Chat Completions
Get chat completion
Update chat completion
Delete chat completion
ChatCompletionsMessages
Given a list of messages comprising a conversation, the model will return a response.
Get chat messages
Embeddings
Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
Create embeddings
Files
Files are used to upload documents that can be used with features like Assistants and Fine-tuning.
List files
Upload file
Delete file
Retrieve file
Retrieve file content
Images
Given a prompt and/or an input image, the model will generate a new image.
Create image
Create image edit
Create image variation
Audio
AudioTranscriptions
Turn audio into text or text into audio.
Create transcription
AudioTranslations
Turn audio into text or text into audio.
Create translation
AudioSpeech
Turn audio into text or text into audio.
Create speech
AudioVoices
Turn audio into text or text into audio.
Create voice
AudioVoice Consents
Turn audio into text or text into audio.
List voice consents
Create voice consent
Retrieve voice consent
Update voice consent
Delete voice consent
Moderations
Given text and/or image inputs, classifies if those inputs are potentially harmful.
Create moderation
Models
List and describe the various models available in the API.
Fine Tuning
Fine TuningMethods
Fine TuningJobs
Manage fine-tuning jobs to tailor a model to your specific training data.
Create fine-tuning job
List fine-tuning jobs
Retrieve fine-tuning job
List fine-tuning events
Cancel fine-tuning
Pause fine-tuning
Resume fine-tuning
Fine TuningJobsCheckpoints
Manage fine-tuning jobs to tailor a model to your specific training data.
List fine-tuning checkpoints
Fine TuningCheckpoints
Fine TuningCheckpointsPermissions
Manage fine-tuning jobs to tailor a model to your specific training data.
List checkpoint permissions
List checkpoint permissions
Create checkpoint permissions
Delete checkpoint permission
Fine TuningAlpha
Fine TuningAlphaGraders
Manage fine-tuning jobs to tailor a model to your specific training data.
Run grader
Validate grader
Graders
GradersGrader Models
Vector Stores
List vector stores
Create vector store
Retrieve vector store
Modify vector store
Delete vector store
Search vector store
Vector StoresFiles
List vector store files
Create vector store file
Update vector store file attributes
Retrieve vector store file
Delete vector store file
Retrieve vector store file content
Vector StoresFile Batches
Create vector store file batch
Retrieve vector store file batch
Cancel vector store file batch
List vector store files in a batch
Webhooks
Unwrap
Beta
BetaChatKit
BetaChatKitSessions
Cancel chat session
Create ChatKit session
BetaChatKitThreads
List ChatKit thread items
Retrieve ChatKit thread
Delete ChatKit thread
List ChatKit threads
BetaAssistants
Build Assistants that can call models and use tools.
BetaThreads
Build Assistants that can call models and use tools.
BetaThreadsRuns
Build Assistants that can call models and use tools.
BetaThreadsRunsSteps
Build Assistants that can call models and use tools.
BetaThreadsMessages
Build Assistants that can call models and use tools.
Batches
Create large batches of API requests to run asynchronously.
Create batch
Retrieve batch
Cancel batch
List batches
Uploads
Use Uploads to upload large files in multiple parts.
Create upload
Complete upload
Cancel upload
UploadsParts
Use Uploads to upload large files in multiple parts.
Add upload part
Admin
AdminOrganization
AdminOrganizationAudit Logs
List user actions and configuration changes within this organization.
List audit logs
AdminOrganizationAdmin API Keys
List all organization and project API keys.
Create admin API key
Retrieve admin API key
Delete admin API key
AdminOrganizationUsage
Audio speeches
Audio transcriptions
Code interpreter sessions
Completions
Embeddings
Images
Moderations
Vector stores
Costs
AdminOrganizationInvites
List invites
Create invite
Retrieve invite
Delete invite
AdminOrganizationUsers
List users
Retrieve user
Modify user
Delete user
AdminOrganizationUsersRoles
List user organization role assignments
Assign organization role to user
Unassign organization role from user
AdminOrganizationGroups
List groups
Create group
Update group
Delete group
AdminOrganizationGroupsUsers
List group users
Add group user
Remove group user
AdminOrganizationGroupsRoles
List group organization role assignments
Assign organization role to group
Unassign organization role from group
AdminOrganizationRoles
List organization roles
Create organization role
Update organization role
Delete organization role
AdminOrganizationCertificates
List organization certificates
Upload certificate
Get certificate
Modify certificate
Delete certificate
Activate certificates for organization
Deactivate certificates for organization
AdminOrganizationProjects
List projects
Create project
Retrieve project
Modify project
Archive project
AdminOrganizationProjectsUsers
List project users
Create project user
Retrieve project user
Modify project user
Delete project user
AdminOrganizationProjectsUsersRoles
List project user role assignments
Assign project role to user
Unassign project role from user
AdminOrganizationProjectsService Accounts
List project service accounts
Create project service account
Retrieve project service account
Delete project service account
AdminOrganizationProjectsAPI Keys
List project API keys
Retrieve project API key
Delete project API key
AdminOrganizationProjectsRate Limits
List project rate limits
Modify project rate limit
AdminOrganizationProjectsGroups
List project groups
Add project group
Remove project group
AdminOrganizationProjectsGroupsRoles
List project group role assignments
Assign project role to group
Unassign project role from group
AdminOrganizationProjectsRoles
List project roles
Create project role
Update project role
Delete project role
AdminOrganizationProjectsCertificates
List project certificates
Activate certificates for project
Deactivate certificates for project
Responses
Create a model response
Get a model response
Delete a model response
Cancel a response
Compact a response
ResponsesInput Items
List input items
ResponsesInput Tokens
Get input token counts
Realtime
RealtimeClient Secrets
Create client secret
RealtimeCalls
Accept call
Hang up call
Refer call
Reject call
RealtimeSessions
RealtimeTranscription Sessions
Conversations
Manage conversations and conversation items.
Create a conversation
Retrieve a conversation
Update a conversation
Delete a conversation
ConversationsItems
Manage conversations and conversation items.
Create items
List items
Retrieve an item
Delete an item
Evals
Manage and run evals in the OpenAI platform.
List evals
Create eval
Get an eval
Update an eval
Delete an eval
EvalsRuns
Manage and run evals in the OpenAI platform.
Get eval runs
Create eval run
Get an eval run
Cancel eval run
Delete eval run
EvalsRunsOutput Items
Manage and run evals in the OpenAI platform.