NAME
OpenAPI::Client::OpenAI::Path - Index of OpenAI API Paths
DESCRIPTION
Index of paths in the OpenAI API; each links to its per-path documentation.
PATHS
/assistants
GETlist_assistants - Returns a list of assistants.POSTcreate_assistant - Create an assistant with a model and instructions.
See OpenAPI::Client::OpenAI::Path::assistants.
/assistants/{assistant_id}
DELETEdelete_assistant - Delete an assistant.GETget_assistant - Retrieves an assistant.POSTmodify_assistant - Modifies an assistant.
See OpenAPI::Client::OpenAI::Path::assistants-assistant_id.
/audio/speech
POSTcreate_speech - Generates audio from the input text.Returns the audio file content, or a stream of audio events.
See OpenAPI::Client::OpenAI::Path::audio-speech.
/audio/transcriptions
POSTcreate_transcription - Transcribes audio into the input language.Returns a transcription object in
json,diarized_json, orverbose_jsonformat, or a stream of transcript events.
See OpenAPI::Client::OpenAI::Path::audio-transcriptions.
/audio/translations
POSTcreate_translation - Translates audio into English.
See OpenAPI::Client::OpenAI::Path::audio-translations.
/audio/voice_consents
GETlist_voice_consents - Returns a list of voice consent recordings.POSTcreate_voice_consent - Upload a voice consent recording.
See OpenAPI::Client::OpenAI::Path::audio-voice_consents.
/audio/voice_consents/{consent_id}
DELETEdelete_voice_consent - Deletes a voice consent recording.GETget_voice_consent - Retrieves a voice consent recording.POSTupdate_voice_consent - Updates a voice consent recording (metadata only).
See OpenAPI::Client::OpenAI::Path::audio-voice_consents-consent_id.
/audio/voices
POSTcreate_voice - Creates a custom voice.
See OpenAPI::Client::OpenAI::Path::audio-voices.
/batches
GETlist_batches - List your organization's batches.POSTcreate_batch - Creates and executes a batch from an uploaded file of requests
See OpenAPI::Client::OpenAI::Path::batches.
/batches/{batch_id}
GETretrieve_batch - Retrieves a batch.
See OpenAPI::Client::OpenAI::Path::batches-batch_id.
/batches/{batch_id}/cancel
POSTcancel_batch - Cancels an in-progress batch. The batch will be in statuscancellingfor up to 10 minutes, before changing tocancelled, where it will have partial results (if any) available in the output file.
See OpenAPI::Client::OpenAI::Path::batches-batch_id-cancel.
/chat/completions
GETlist_chat_completions - List stored Chat Completions. Only Chat Completions that have been stored with thestoreparameter set totruewill be returned.POSTcreate_chat_completion - Starting a new project? We recommend trying Responses to take advantage of the latest OpenAI platform features. Compare Chat Completions with Responses .Creates a model response for the given chat conversation. Learn more in the text generation , vision , and audio guides.
Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide .
Returns a chat completion object, or a streamed sequence of chat completion chunk objects if the request is streamed.
See OpenAPI::Client::OpenAI::Path::chat-completions.
/chat/completions/{completion_id}
DELETEdelete_chat_completion - Delete a stored chat completion. Only Chat Completions that have been created with thestoreparameter set totruecan be deleted.GETget_chat_completion - Get a stored chat completion. Only Chat Completions that have been created with thestoreparameter set totruewill be returned.POSTupdate_chat_completion - Modify a stored chat completion. Only Chat Completions that have been created with thestoreparameter set totruecan be modified. Currently, the only supported modification is to update themetadatafield.
See OpenAPI::Client::OpenAI::Path::chat-completions-completion_id.
/chat/completions/{completion_id}/messages
GETget_chat_completion_messages - Get the messages in a stored chat completion. Only Chat Completions that have been created with thestoreparameter set totruewill be returned.
See OpenAPI::Client::OpenAI::Path::chat-completions-completion_id-messages.
/chatkit/sessions
POSTcreate_chat_session_method - Create a ChatKit session.
See OpenAPI::Client::OpenAI::Path::chatkit-sessions.
/chatkit/sessions/{session_id}/cancel
POSTcancel_chat_session_method - Cancel an active ChatKit session and return its most recent metadata.Cancelling prevents new requests from using the issued client secret.
See OpenAPI::Client::OpenAI::Path::chatkit-sessions-session_id-cancel.
/chatkit/threads
GETlist_threads_method - List ChatKit threads with optional pagination and user filters.
See OpenAPI::Client::OpenAI::Path::chatkit-threads.
/chatkit/threads/{thread_id}
DELETEdelete_thread_method - Delete a ChatKit thread along with its items and stored attachments.GETget_thread_method - Retrieve a ChatKit thread by its identifier.
See OpenAPI::Client::OpenAI::Path::chatkit-threads-thread_id.
/chatkit/threads/{thread_id}/items
GETlist_thread_items_method - List items that belong to a ChatKit thread.
See OpenAPI::Client::OpenAI::Path::chatkit-threads-thread_id-items.
/completions
POSTcreate_completion - Creates a completion for the provided prompt and parameters.Returns a completion object, or a sequence of completion objects if the request is streamed.
See OpenAPI::Client::OpenAI::Path::completions.
/containers
GETlist_containers - List ContainersPOSTcreate_container - Create Container
See OpenAPI::Client::OpenAI::Path::containers.
/containers/{container_id}
DELETEdelete_container - Delete ContainerGETretrieve_container - Retrieve Container
See OpenAPI::Client::OpenAI::Path::containers-container_id.
/containers/{container_id}/files
GETlist_container_files - List Container filesPOSTcreate_container_file - Create a Container FileYou can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID.
See OpenAPI::Client::OpenAI::Path::containers-container_id-files.
/containers/{container_id}/files/{file_id}
DELETEdelete_container_file - Delete Container FileGETretrieve_container_file - Retrieve Container File
See OpenAPI::Client::OpenAI::Path::containers-container_id-files-file_id.
/containers/{container_id}/files/{file_id}/content
GETretrieve_container_file_content - Retrieve Container File Content
See OpenAPI::Client::OpenAI::Path::containers-container_id-files-file_id-content.
/conversations
POSTcreate_conversation - Create a conversation.
See OpenAPI::Client::OpenAI::Path::conversations.
/conversations/{conversation_id}
DELETEdelete_conversation - Delete a conversation. Items in the conversation will not be deleted.GETget_conversation - Get a conversationPOSTupdate_conversation - Update a conversation
See OpenAPI::Client::OpenAI::Path::conversations-conversation_id.
/conversations/{conversation_id}/items
GETlist_conversation_items - List all items for a conversation with the given ID.POSTcreate_conversation_items - Create items in a conversation with the given ID.
See OpenAPI::Client::OpenAI::Path::conversations-conversation_id-items.
/conversations/{conversation_id}/items/{item_id}
DELETEdelete_conversation_item - Delete an item from a conversation with the given IDs.GETget_conversation_item - Get a single item from a conversation with the given IDs.
See OpenAPI::Client::OpenAI::Path::conversations-conversation_id-items-item_id.
/embeddings
POSTcreate_embedding - Creates an embedding vector representing the input text.
See OpenAPI::Client::OpenAI::Path::embeddings.
/evals
GETlist_evals - List evaluations for a project.POSTcreate_eval - Create the structure of an evaluation that can be used to test a model's performance. An evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources. For more information, see the Evals guide .
See OpenAPI::Client::OpenAI::Path::evals.
/evals/{eval_id}
DELETEdelete_eval - Delete an evaluation.GETget_eval - Get an evaluation by ID.POSTupdate_eval - Update certain properties of an evaluation.
See OpenAPI::Client::OpenAI::Path::evals-eval_id.
/evals/{eval_id}/runs
GETget_eval_runs - Get a list of runs for an evaluation.POSTcreate_eval_run - Kicks off a new run for a given evaluation, specifying the data source, and what model configuration to use to test. The datasource will be validated against the schema specified in the config of the evaluation.
See OpenAPI::Client::OpenAI::Path::evals-eval_id-runs.
/evals/{eval_id}/runs/{run_id}
DELETEdelete_eval_run - Delete an eval run.GETget_eval_run - Get an evaluation run by ID.POSTcancel_eval_run - Cancel an ongoing evaluation run.
See OpenAPI::Client::OpenAI::Path::evals-eval_id-runs-run_id.
/evals/{eval_id}/runs/{run_id}/output_items
GETget_eval_run_output_items - Get a list of output items for an evaluation run.
See OpenAPI::Client::OpenAI::Path::evals-eval_id-runs-run_id-output_items.
/evals/{eval_id}/runs/{run_id}/output_items/{output_item_id}
GETget_eval_run_output_item - Get an evaluation run output item by ID.
See OpenAPI::Client::OpenAI::Path::evals-eval_id-runs-run_id-output_items-output_item_id.
/files
GETlist_files - Returns a list of files.POSTcreate_file - Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and each project can store up to 2.5 TB of files in total. There is no organization-wide storage limit. Uploads to this endpoint are rate-limited to 1,000 requests per minute per authenticated user.- The Assistants API supports files up to 2 million tokens and of specific file types. See the Assistants Tools guide for details. - The Fine-tuning API only supports
.jsonlfiles. The input also has certain required formats for fine-tuning chat or completions models. - The Batch API only supports.jsonlfiles up to 200 MB in size. The input also has a specific required format . - For Retrieval orfile_searchingestion, upload files here first. If you need to attach multiple uploaded files to the same vector store, use/vector_stores/{vector_store_id}/file_batchesinstead of attaching them one by one. Vector store attachment has separate limits from file upload, including 2,000 attached files per minute per organization.Please contact us if you need to increase these storage limits.
See OpenAPI::Client::OpenAI::Path::files.
/files/{file_id}
DELETEdelete_file - Delete a file and remove it from all vector stores.GETretrieve_file - Returns information about a specific file.
See OpenAPI::Client::OpenAI::Path::files-file_id.
/files/{file_id}/content
GETdownload_file - Returns the contents of the specified file.
See OpenAPI::Client::OpenAI::Path::files-file_id-content.
/fine_tuning/alpha/graders/run
POSTrun_grader - Run a grader.
See OpenAPI::Client::OpenAI::Path::fine_tuning-alpha-graders-run.
/fine_tuning/alpha/graders/validate
POSTvalidate_grader - Validate a grader.
See OpenAPI::Client::OpenAI::Path::fine_tuning-alpha-graders-validate.
/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions
GETlist_fine_tuning_checkpoint_permissions - NOTE: This endpoint requires an admin API key .Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.
POSTcreate_fine_tuning_checkpoint_permission - NOTE: Calling this endpoint requires an admin API key .This enables organization owners to share fine-tuned models with other projects in their organization.
See OpenAPI::Client::OpenAI::Path::fine_tuning-checkpoints-fine_tuned_model_checkpoint-permissions.
/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}
DELETEdelete_fine_tuning_checkpoint_permission - NOTE: This endpoint requires an admin API key .Organization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.
/fine_tuning/jobs
GETlist_paginated_fine_tuning_jobs - List your organization's fine-tuning jobsPOSTcreate_fine_tuning_job - Creates a fine-tuning job which begins the process of creating a new model from a given dataset.Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
See OpenAPI::Client::OpenAI::Path::fine_tuning-jobs.
/fine_tuning/jobs/{fine_tuning_job_id}
GETretrieve_fine_tuning_job - Get info about a fine-tuning job.
See OpenAPI::Client::OpenAI::Path::fine_tuning-jobs-fine_tuning_job_id.
/fine_tuning/jobs/{fine_tuning_job_id}/cancel
POSTcancel_fine_tuning_job - Immediately cancel a fine-tune job.
See OpenAPI::Client::OpenAI::Path::fine_tuning-jobs-fine_tuning_job_id-cancel.
/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints
GETlist_fine_tuning_job_checkpoints - List checkpoints for a fine-tuning job.
See OpenAPI::Client::OpenAI::Path::fine_tuning-jobs-fine_tuning_job_id-checkpoints.
/fine_tuning/jobs/{fine_tuning_job_id}/events
GETlist_fine_tuning_events - Get status updates for a fine-tuning job.
See OpenAPI::Client::OpenAI::Path::fine_tuning-jobs-fine_tuning_job_id-events.
/fine_tuning/jobs/{fine_tuning_job_id}/pause
POSTpause_fine_tuning_job - Pause a fine-tune job.
See OpenAPI::Client::OpenAI::Path::fine_tuning-jobs-fine_tuning_job_id-pause.
/fine_tuning/jobs/{fine_tuning_job_id}/resume
POSTresume_fine_tuning_job - Resume a fine-tune job.
See OpenAPI::Client::OpenAI::Path::fine_tuning-jobs-fine_tuning_job_id-resume.
/images/edits
POSTcreate_image_edit - Creates an edited or extended image given one or more source images and a prompt. This endpoint supports GPT Image models (gpt-image-1.5,gpt-image-1,gpt-image-1-mini, andchatgpt-image-latest) anddall-e-2.
See OpenAPI::Client::OpenAI::Path::images-edits.
/images/generations
POSTcreate_image - Creates an image given a prompt. Learn more .
See OpenAPI::Client::OpenAI::Path::images-generations.
/images/variations
POSTcreate_image_variation - Creates a variation of a given image. This endpoint only supportsdall-e-2.
See OpenAPI::Client::OpenAI::Path::images-variations.
/models
GETlist_models - Lists the currently available models, and provides basic information about each one such as the owner and availability.
See OpenAPI::Client::OpenAI::Path::models.
/models/{model}
DELETEdelete_model - Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.GETretrieve_model - Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
See OpenAPI::Client::OpenAI::Path::models-model.
/moderations
POSTcreate_moderation - Classifies if text and/or image inputs are potentially harmful. Learn more in the moderation guide .
See OpenAPI::Client::OpenAI::Path::moderations.
/organization/admin_api_keys
GETadmin_api_keys_list - List organization API keysPOSTadmin_api_keys_create - Create an organization admin API key
See OpenAPI::Client::OpenAI::Path::organization-admin_api_keys.
/organization/admin_api_keys/{key_id}
DELETEadmin_api_keys_delete - Delete an organization admin API keyGETadmin_api_keys_get - Retrieve a single organization API key
See OpenAPI::Client::OpenAI::Path::organization-admin_api_keys-key_id.
/organization/audit_logs
GETlist_audit_logs - List user actions and configuration changes within this organization.
See OpenAPI::Client::OpenAI::Path::organization-audit_logs.
/organization/certificates
GETlist_organization_certificates - List uploaded certificates for this organization.POSTupload_certificate - Upload a certificate to the organization. This does not automatically activate the certificate.Organizations can upload up to 50 certificates.
See OpenAPI::Client::OpenAI::Path::organization-certificates.
/organization/certificates/activate
POSTactivate_organization_certificates - Activate certificates at the organization level.You can atomically and idempotently activate up to 10 certificates at a time.
See OpenAPI::Client::OpenAI::Path::organization-certificates-activate.
/organization/certificates/deactivate
POSTdeactivate_organization_certificates - Deactivate certificates at the organization level.You can atomically and idempotently deactivate up to 10 certificates at a time.
See OpenAPI::Client::OpenAI::Path::organization-certificates-deactivate.
/organization/certificates/{certificate_id}
DELETEdelete_certificate - Delete a certificate from the organization.The certificate must be inactive for the organization and all projects.
GETget_certificate - Get a certificate that has been uploaded to the organization.You can get a certificate regardless of whether it is active or not.
POSTmodify_certificate - Modify a certificate. Note that only the name can be modified.
See OpenAPI::Client::OpenAI::Path::organization-certificates-certificate_id.
/organization/costs
GETusage_costs - Get costs details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-costs.
/organization/data_retention
GETretrieve_organization_data_retention - Retrieves organization data retention controls.POSTupdate_organization_data_retention - Updates organization data retention controls.
See OpenAPI::Client::OpenAI::Path::organization-data_retention.
/organization/groups
GETlist_groups - Lists all groups in the organization.POSTcreate_group - Creates a new group in the organization.
See OpenAPI::Client::OpenAI::Path::organization-groups.
/organization/groups/{group_id}
DELETEdelete_group - Deletes a group from the organization.GETretrieve_group - Retrieves a group.POSTupdate_group - Updates a group's information.
See OpenAPI::Client::OpenAI::Path::organization-groups-group_id.
/organization/groups/{group_id}/roles
GETlist_group_role_assignments - Lists the organization roles assigned to a group within the organization.POSTassign_group_role - Assigns an organization role to a group within the organization.
See OpenAPI::Client::OpenAI::Path::organization-groups-group_id-roles.
/organization/groups/{group_id}/roles/{role_id}
DELETEunassign_group_role - Unassigns an organization role from a group within the organization.GETretrieve_group_role - Retrieves an organization role assigned to a group.
See OpenAPI::Client::OpenAI::Path::organization-groups-group_id-roles-role_id.
/organization/groups/{group_id}/users
GETlist_group_users - Lists the users assigned to a group.POSTadd_group_user - Adds a user to a group.
See OpenAPI::Client::OpenAI::Path::organization-groups-group_id-users.
/organization/groups/{group_id}/users/{user_id}
DELETEremove_group_user - Removes a user from a group.GETretrieve_group_user - Retrieves a user in a group.
See OpenAPI::Client::OpenAI::Path::organization-groups-group_id-users-user_id.
/organization/invites
GETlist_invites - Returns a list of invites in the organization.POSTinvite_user - Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization.
See OpenAPI::Client::OpenAI::Path::organization-invites.
/organization/invites/{invite_id}
DELETEdelete_invite - Delete an invite. If the invite has already been accepted, it cannot be deleted.GETretrieve_invite - Retrieves an invite.
See OpenAPI::Client::OpenAI::Path::organization-invites-invite_id.
/organization/projects
GETlist_projects - Returns a list of projects.POSTcreate_project - Create a new project in the organization. Projects can be created and archived, but cannot be deleted.
See OpenAPI::Client::OpenAI::Path::organization-projects.
/organization/projects/{project_id}
GETretrieve_project - Retrieves a project.POSTmodify_project - Modifies a project in the organization.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id.
/organization/projects/{project_id}/api_keys
GETlist_project_api_keys - Returns a list of API keys in the project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-api_keys.
/organization/projects/{project_id}/api_keys/{api_key_id}
DELETEdelete_project_api_key - Deletes an API key from the project.Returns confirmation of the key deletion, or an error if the key belonged to a service account.
GETretrieve_project_api_key - Retrieves an API key in the project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-api_keys-api_key_id.
/organization/projects/{project_id}/archive
POSTarchive_project - Archives a project in the organization. Archived projects cannot be used or updated.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-archive.
/organization/projects/{project_id}/certificates
GETlist_project_certificates - List certificates for this project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-certificates.
/organization/projects/{project_id}/certificates/activate
POSTactivate_project_certificates - Activate certificates at the project level.You can atomically and idempotently activate up to 10 certificates at a time.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-certificates-activate.
/organization/projects/{project_id}/certificates/deactivate
POSTdeactivate_project_certificates - Deactivate certificates at the project level. You can atomically and idempotently deactivate up to 10 certificates at a time.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-certificates-deactivate.
/organization/projects/{project_id}/data_retention
GETretrieve_project_data_retention - Retrieves project data retention controls.POSTupdate_project_data_retention - Updates project data retention controls.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-data_retention.
/organization/projects/{project_id}/groups
GETlist_project_groups - Lists the groups that have access to a project.POSTadd_project_group - Grants a group access to a project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-groups.
/organization/projects/{project_id}/groups/{group_id}
DELETEremove_project_group - Revokes a group's access to a project.GETretrieve_project_group - Retrieves a project's group.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-groups-group_id.
/organization/projects/{project_id}/hosted_tool_permissions
GETretrieve_project_hosted_tool_permissions - Returns hosted tool permissions for a project.POSTupdate_project_hosted_tool_permissions - Updates hosted tool permissions for a project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-hosted_tool_permissions.
/organization/projects/{project_id}/model_permissions
DELETEdelete_project_model_permissions - Deletes model permissions for a project.GETretrieve_project_model_permissions - Returns model permissions for a project.POSTupdate_project_model_permissions - Updates model permissions for a project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-model_permissions.
/organization/projects/{project_id}/rate_limits
GETlist_project_rate_limits - Returns the rate limits per model for a project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-rate_limits.
/organization/projects/{project_id}/rate_limits/{rate_limit_id}
POSTupdate_project_rate_limits - Updates a project rate limit.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-rate_limits-rate_limit_id.
/organization/projects/{project_id}/service_accounts
GETlist_project_service_accounts - Returns a list of service accounts in the project.POSTcreate_project_service_account - Creates a new service account in the project. This also returns an unredacted API key for the service account.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-service_accounts.
/organization/projects/{project_id}/service_accounts/{service_account_id}
DELETEdelete_project_service_account - Deletes a service account from the project.Returns confirmation of service account deletion, or an error if the project is archived (archived projects have no service accounts).
GETretrieve_project_service_account - Retrieves a service account in the project.POSTupdate_project_service_account - Updates a service account in the project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-service_accounts-service_account_id.
/organization/projects/{project_id}/spend_alerts
GETlist_project_spend_alerts - Lists project spend alerts.POSTcreate_project_spend_alert - Creates a project spend alert.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-spend_alerts.
/organization/projects/{project_id}/spend_alerts/{alert_id}
DELETEdelete_project_spend_alert - Deletes a project spend alert.POSTupdate_project_spend_alert - Updates a project spend alert.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-spend_alerts-alert_id.
/organization/projects/{project_id}/users
GETlist_project_users - Returns a list of users in the project.POSTcreate_project_user - Adds a user to the project. Users must already be members of the organization to be added to a project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-users.
/organization/projects/{project_id}/users/{user_id}
DELETEdelete_project_user - Deletes a user from the project.Returns confirmation of project user deletion, or an error if the project is archived (archived projects have no users).
GETretrieve_project_user - Retrieves a user in the project.POSTmodify_project_user - Modifies a user's role in the project.
See OpenAPI::Client::OpenAI::Path::organization-projects-project_id-users-user_id.
/organization/roles
GETlist_roles - Lists the roles configured for the organization.POSTcreate_role - Creates a custom role for the organization.
See OpenAPI::Client::OpenAI::Path::organization-roles.
/organization/roles/{role_id}
DELETEdelete_role - Deletes a custom role from the organization.GETretrieve_role - Retrieves an organization role.POSTupdate_role - Updates an existing organization role.
See OpenAPI::Client::OpenAI::Path::organization-roles-role_id.
/organization/spend_alerts
GETlist_organization_spend_alerts - Lists organization spend alerts.POSTcreate_organization_spend_alert - Creates an organization spend alert.
See OpenAPI::Client::OpenAI::Path::organization-spend_alerts.
/organization/spend_alerts/{alert_id}
DELETEdelete_organization_spend_alert - Deletes an organization spend alert.POSTupdate_organization_spend_alert - Updates an organization spend alert.
See OpenAPI::Client::OpenAI::Path::organization-spend_alerts-alert_id.
/organization/usage/audio_speeches
GETusage_audio_speeches - Get audio speeches usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-audio_speeches.
/organization/usage/audio_transcriptions
GETusage_audio_transcriptions - Get audio transcriptions usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-audio_transcriptions.
/organization/usage/code_interpreter_sessions
GETusage_code_interpreter_sessions - Get code interpreter sessions usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-code_interpreter_sessions.
/organization/usage/completions
GETusage_completions - Get completions usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-completions.
/organization/usage/embeddings
GETusage_embeddings - Get embeddings usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-embeddings.
/organization/usage/file_search_calls
GETusage_file_search_calls - Get file search calls usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-file_search_calls.
/organization/usage/images
GETusage_images - Get images usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-images.
/organization/usage/moderations
GETusage_moderations - Get moderations usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-moderations.
/organization/usage/vector_stores
GETusage_vector_stores - Get vector stores usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-vector_stores.
/organization/usage/web_search_calls
GETusage_web_search_calls - Get web search calls usage details for the organization.
See OpenAPI::Client::OpenAI::Path::organization-usage-web_search_calls.
/organization/users
GETlist_users - Lists all of the users in the organization.
See OpenAPI::Client::OpenAI::Path::organization-users.
/organization/users/{user_id}
DELETEdelete_user - Deletes a user from the organization.GETretrieve_user - Retrieves a user by their identifier.POSTmodify_user - Modifies a user's role in the organization.
See OpenAPI::Client::OpenAI::Path::organization-users-user_id.
/organization/users/{user_id}/roles
GETlist_user_role_assignments - Lists the organization roles assigned to a user within the organization.POSTassign_user_role - Assigns an organization role to a user within the organization.
See OpenAPI::Client::OpenAI::Path::organization-users-user_id-roles.
/organization/users/{user_id}/roles/{role_id}
DELETEunassign_user_role - Unassigns an organization role from a user within the organization.GETretrieve_user_role - Retrieves an organization role assigned to a user.
See OpenAPI::Client::OpenAI::Path::organization-users-user_id-roles-role_id.
/projects/{project_id}/groups/{group_id}/roles
GETlist_project_group_role_assignments - Lists the project roles assigned to a group within a project.POSTassign_project_group_role - Assigns a project role to a group within a project.
See OpenAPI::Client::OpenAI::Path::projects-project_id-groups-group_id-roles.
/projects/{project_id}/groups/{group_id}/roles/{role_id}
DELETEunassign_project_group_role - Unassigns a project role from a group within a project.GETretrieve_project_group_role - Retrieves a project role assigned to a group.
See OpenAPI::Client::OpenAI::Path::projects-project_id-groups-group_id-roles-role_id.
/projects/{project_id}/roles
GETlist_project_roles - Lists the roles configured for a project.POSTcreate_project_role - Creates a custom role for a project.
See OpenAPI::Client::OpenAI::Path::projects-project_id-roles.
/projects/{project_id}/roles/{role_id}
DELETEdelete_project_role - Deletes a custom role from a project.GETretrieve_project_role - Retrieves a project role.POSTupdate_project_role - Updates an existing project role.
See OpenAPI::Client::OpenAI::Path::projects-project_id-roles-role_id.
/projects/{project_id}/users/{user_id}/roles
GETlist_project_user_role_assignments - Lists the project roles assigned to a user within a project.POSTassign_project_user_role - Assigns a project role to a user within a project.
See OpenAPI::Client::OpenAI::Path::projects-project_id-users-user_id-roles.
/projects/{project_id}/users/{user_id}/roles/{role_id}
DELETEunassign_project_user_role - Unassigns a project role from a user within a project.GETretrieve_project_user_role - Retrieves a project role assigned to a user.
See OpenAPI::Client::OpenAI::Path::projects-project_id-users-user_id-roles-role_id.
/realtime/calls
POSTcreate_realtime_call - Create a new Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection.
See OpenAPI::Client::OpenAI::Path::realtime-calls.
/realtime/calls/{call_id}/accept
POSTaccept_realtime_call - Accept an incoming SIP call and configure the realtime session that will handle it.
See OpenAPI::Client::OpenAI::Path::realtime-calls-call_id-accept.
/realtime/calls/{call_id}/hangup
POSThangup_realtime_call - End an active Realtime API call, whether it was initiated over SIP or WebRTC.
See OpenAPI::Client::OpenAI::Path::realtime-calls-call_id-hangup.
/realtime/calls/{call_id}/refer
POSTrefer_realtime_call - Transfer an active SIP call to a new destination using the SIP REFER verb.
See OpenAPI::Client::OpenAI::Path::realtime-calls-call_id-refer.
/realtime/calls/{call_id}/reject
POSTreject_realtime_call - Decline an incoming SIP call by returning a SIP status code to the caller.
See OpenAPI::Client::OpenAI::Path::realtime-calls-call_id-reject.
/realtime/client_secrets
POSTcreate_realtime_client_secret - Create a Realtime client secret with an associated session configuration.Client secrets are short-lived tokens that can be passed to a client app, such as a web frontend or mobile client, which grants access to the Realtime API without leaking your main API key. You can configure a custom TTL for each client secret.
You can also attach session configuration options to the client secret, which will be applied to any sessions created using that client secret, but these can also be overridden by the client connection.
Learn more about authentication with client secrets over WebRTC .
Returns the created client secret and the effective session object. The client secret is a string that looks like
ek_1234.
See OpenAPI::Client::OpenAI::Path::realtime-client_secrets.
/realtime/sessions
POSTcreate_realtime_session - Create an ephemeral API token for use in client-side applications with the Realtime API. Can be configured with the same session parameters as thesession.updateclient event.It responds with a session object, plus a
client_secretkey which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API.Returns the created Realtime session object, plus an ephemeral key.
See OpenAPI::Client::OpenAI::Path::realtime-sessions.
/realtime/transcription_sessions
POSTcreate_realtime_transcription_session - Create an ephemeral API token for use in client-side applications with the Realtime API specifically for realtime transcriptions. Can be configured with the same session parameters as thetranscription_session.updateclient event.It responds with a session object, plus a
client_secretkey which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API.Returns the created Realtime transcription session object, plus an ephemeral key.
See OpenAPI::Client::OpenAI::Path::realtime-transcription_sessions.
/realtime/translations/client_secrets
POSTcreate_realtime_translation_client_secret - Create a Realtime translation client secret with an associated translation session configuration.Client secrets are short-lived tokens that can be passed to a client app, such as a web frontend or mobile client, which grants access to the Realtime Translation API without leaking your main API key. You can configure a custom TTL for each client secret.
Returns the created client secret and the effective translation session object. The client secret is a string that looks like
ek_1234.
See OpenAPI::Client::OpenAI::Path::realtime-translations-client_secrets.
/responses
POSTcreate_response - Creates a model response. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model's response.
See OpenAPI::Client::OpenAI::Path::responses.
/responses/compact
POSTcompactconversation - Compact a conversation. Returns a compacted response object.Learn when and how to compact long-running conversations in the conversation state guide . For ZDR-compatible compaction details, see Compaction (advanced) .
See OpenAPI::Client::OpenAI::Path::responses-compact.
/responses/input_tokens
POSTgetinputtokencounts - Returns input token counts of the request.Returns an object with
objectset toresponse.input_tokensand aninput_tokenscount.
See OpenAPI::Client::OpenAI::Path::responses-input_tokens.
/responses/{response_id}
DELETEdelete_response - Deletes a model response with the given ID.GETget_response - Retrieves a model response with the given ID.
See OpenAPI::Client::OpenAI::Path::responses-response_id.
/responses/{response_id}/cancel
POSTcancel_response - Cancels a model response with the given ID. Only responses created with thebackgroundparameter set totruecan be cancelled. Learn more .
See OpenAPI::Client::OpenAI::Path::responses-response_id-cancel.
/responses/{response_id}/input_items
GETlist_input_items - Returns a list of input items for a given response.
See OpenAPI::Client::OpenAI::Path::responses-response_id-input_items.
/skills
GETlist_skills - List all skills for the current project.POSTcreate_skill - Create a new skill.
See OpenAPI::Client::OpenAI::Path::skills.
/skills/{skill_id}
DELETEdelete_skill - Delete a skill by its ID.GETget_skill - Get a skill by its ID.POSTupdate_skill_default_version - Update the default version pointer for a skill.
See OpenAPI::Client::OpenAI::Path::skills-skill_id.
/skills/{skill_id}/content
GETget_skill_content - Download a skill zip bundle by its ID.
See OpenAPI::Client::OpenAI::Path::skills-skill_id-content.
/skills/{skill_id}/versions
GETlist_skill_versions - List skill versions for a skill.POSTcreate_skill_version - Create a new immutable skill version.
See OpenAPI::Client::OpenAI::Path::skills-skill_id-versions.
/skills/{skill_id}/versions/{version}
DELETEdelete_skill_version - Delete a skill version.GETget_skill_version - Get a specific skill version.
See OpenAPI::Client::OpenAI::Path::skills-skill_id-versions-version.
/skills/{skill_id}/versions/{version}/content
GETget_skill_version_content - Download a skill version zip bundle.
See OpenAPI::Client::OpenAI::Path::skills-skill_id-versions-version-content.
/threads
POSTcreate_thread - Create a thread.
See OpenAPI::Client::OpenAI::Path::threads.
/threads/runs
POSTcreate_thread_and_run - Create a thread and run it in one request.
See OpenAPI::Client::OpenAI::Path::threads-runs.
/threads/{thread_id}
DELETEdelete_thread - Delete a thread.GETget_thread - Retrieves a thread.POSTmodify_thread - Modifies a thread.
See OpenAPI::Client::OpenAI::Path::threads-thread_id.
/threads/{thread_id}/messages
GETlist_messages - Returns a list of messages for a given thread.POSTcreate_message - Create a message.
See OpenAPI::Client::OpenAI::Path::threads-thread_id-messages.
/threads/{thread_id}/messages/{message_id}
DELETEdelete_message - Deletes a message.GETget_message - Retrieve a message.POSTmodify_message - Modifies a message.
See OpenAPI::Client::OpenAI::Path::threads-thread_id-messages-message_id.
/threads/{thread_id}/runs
GETlist_runs - Returns a list of runs belonging to a thread.POSTcreate_run - Create a run.
See OpenAPI::Client::OpenAI::Path::threads-thread_id-runs.
/threads/{thread_id}/runs/{run_id}
GETget_run - Retrieves a run.POSTmodify_run - Modifies a run.
See OpenAPI::Client::OpenAI::Path::threads-thread_id-runs-run_id.
/threads/{thread_id}/runs/{run_id}/cancel
POSTcancel_run - Cancels a run that isin_progress.
See OpenAPI::Client::OpenAI::Path::threads-thread_id-runs-run_id-cancel.
/threads/{thread_id}/runs/{run_id}/steps
GETlist_run_steps - Returns a list of run steps belonging to a run.
See OpenAPI::Client::OpenAI::Path::threads-thread_id-runs-run_id-steps.
/threads/{thread_id}/runs/{run_id}/steps/{step_id}
GETget_run_step - Retrieves a run step.
See OpenAPI::Client::OpenAI::Path::threads-thread_id-runs-run_id-steps-step_id.
/threads/{thread_id}/runs/{run_id}/submit_tool_outputs
POSTsubmit_tool_ouputs_to_run - When a run has thestatus: "requires_action"andrequired_action.typeissubmit_tool_outputs, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.
See OpenAPI::Client::OpenAI::Path::threads-thread_id-runs-run_id-submit_tool_outputs.
/uploads
POSTcreate_upload - Creates an intermediate Upload object that you can add Parts to. Currently, an Upload can accept at most 8 GB in total and expires after an hour after you create it.Once you complete the Upload, we will create a File object that contains all the parts you uploaded. This File is usable in the rest of our platform as a regular File object.
For certain
purposevalues, the correctmime_typemust be specified. Please refer to documentation for the supported MIME types for your use case .For guidance on the proper filename extensions for each purpose, please follow the documentation on creating a File .
Returns the Upload object with status
pending.
See OpenAPI::Client::OpenAI::Path::uploads.
/uploads/{upload_id}/cancel
POSTcancel_upload - Cancels the Upload. No Parts may be added after an Upload is cancelled.Returns the Upload object with status
cancelled.
See OpenAPI::Client::OpenAI::Path::uploads-upload_id-cancel.
/uploads/{upload_id}/complete
POSTcomplete_upload - Completes the Upload .Within the returned Upload object, there is a nested File object that is ready to use in the rest of the platform.
You can specify the order of the Parts by passing in an ordered list of the Part IDs.
The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed. Returns the Upload object with status
completed, including an additionalfileproperty containing the created usable File object.
See OpenAPI::Client::OpenAI::Path::uploads-upload_id-complete.
/uploads/{upload_id}/parts
POSTadd_upload_part - Adds a Part to an Upload object. A Part represents a chunk of bytes from the file you are trying to upload.Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.
It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you complete the Upload .
See OpenAPI::Client::OpenAI::Path::uploads-upload_id-parts.
/vector_stores
GETlist_vector_stores - Returns a list of vector stores.POSTcreate_vector_store - Create a vector store.
See OpenAPI::Client::OpenAI::Path::vector_stores.
/vector_stores/{vector_store_id}
DELETEdelete_vector_store - Delete a vector store.GETget_vector_store - Retrieves a vector store.POSTmodify_vector_store - Modifies a vector store.
See OpenAPI::Client::OpenAI::Path::vector_stores-vector_store_id.
/vector_stores/{vector_store_id}/file_batches
POSTcreate_vector_store_file_batch - Create a vector store file batch.
See OpenAPI::Client::OpenAI::Path::vector_stores-vector_store_id-file_batches.
/vector_stores/{vector_store_id}/file_batches/{batch_id}
GETget_vector_store_file_batch - Retrieves a vector store file batch.
See OpenAPI::Client::OpenAI::Path::vector_stores-vector_store_id-file_batches-batch_id.
/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel
POSTcancel_vector_store_file_batch - Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
See OpenAPI::Client::OpenAI::Path::vector_stores-vector_store_id-file_batches-batch_id-cancel.
/vector_stores/{vector_store_id}/file_batches/{batch_id}/files
GETlist_files_in_vector_store_batch - Returns a list of vector store files in a batch.
See OpenAPI::Client::OpenAI::Path::vector_stores-vector_store_id-file_batches-batch_id-files.
/vector_stores/{vector_store_id}/files
GETlist_vector_store_files - Returns a list of vector store files.POSTcreate_vector_store_file - Create a vector store file by attaching a File to a vector store .
See OpenAPI::Client::OpenAI::Path::vector_stores-vector_store_id-files.
/vector_stores/{vector_store_id}/files/{file_id}
DELETEdelete_vector_store_file - Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the delete file endpoint.GETget_vector_store_file - Retrieves a vector store file.POSTupdate_vector_store_file_attributes - Update attributes on a vector store file.
See OpenAPI::Client::OpenAI::Path::vector_stores-vector_store_id-files-file_id.
/vector_stores/{vector_store_id}/files/{file_id}/content
GETretrieve_vector_store_file_content - Retrieve the parsed contents of a vector store file.
See OpenAPI::Client::OpenAI::Path::vector_stores-vector_store_id-files-file_id-content.
/vector_stores/{vector_store_id}/search
POSTsearch_vector_store - Search a vector store for relevant chunks based on a query and file attributes filter.
See OpenAPI::Client::OpenAI::Path::vector_stores-vector_store_id-search.
/videos
GETlist_videos - List recently generated videos for the current project.POSTcreate_video - Create a new video generation job from a prompt and optional reference assets.
See OpenAPI::Client::OpenAI::Path::videos.
/videos/characters
POSTcreate_video_character - Create a character from an uploaded video.
See OpenAPI::Client::OpenAI::Path::videos-characters.
/videos/characters/{character_id}
GETget_video_character - Fetch a character.
See OpenAPI::Client::OpenAI::Path::videos-characters-character_id.
/videos/edits
POSTcreate_video_edit - Create a new video generation job by editing a source video or existing generated video.
See OpenAPI::Client::OpenAI::Path::videos-edits.
/videos/extensions
POSTcreate_video_extend - Create an extension of a completed video.
See OpenAPI::Client::OpenAI::Path::videos-extensions.
/videos/{video_id}
DELETEdelete_video - Permanently delete a completed or failed video and its stored assets.GETget_video - Fetch the latest metadata for a generated video.
See OpenAPI::Client::OpenAI::Path::videos-video_id.
/videos/{video_id}/content
GETretrieve_video_content - Download the generated video bytes or a derived preview asset.Streams the rendered video content for the specified video job.
See OpenAPI::Client::OpenAI::Path::videos-video_id-content.
/videos/{video_id}/remix
POSTcreate_video_remix - Create a remix of a completed video using a refreshed prompt.
See OpenAPI::Client::OpenAI::Path::videos-video_id-remix.
COPYRIGHT AND LICENSE
Copyright (C) 2023-2026 by Nelson Ferraz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.0 or, at your option, any later version of Perl 5 you may have available.