OpenAI API
Transcribes audio into the input language.
Converts audio files into written text using the selected model.
Translates audio into English.
Translates audio content, such as speech in different languages, into written English text using the specified model. Ideal for transcribing and understanding spoken foreign language content.
Creates a model response for the given chat conversation.
Creates model responses for chat conversations by providing a sequence of messages as input. This functionality returns a chat completion object with information about the model's response, message content, and completion tokens utilized. This allows you to engage in dynamic conversations with OpenAI models, including incorporating function calls when needed.
Creates a completion for the provided prompt and parameters.
Generates text completions based on a given prompt and configurable parameters.
Creates a new edit for the provided input, instruction, and parameters.
Creates an edit for the given input, instruction, and parameters. (Deprecated)
Creates an embedding vector representing the input text.
Creates an embedding vector that represents the input text. This endpoint allows you to obtain a numeric representation of a given text using the specified language model. You can specify the model to use, the input text for which you want an embedding, and the encoding format, which can be float or string. The response provides a list of embeddings, with each embedding containing a set of numeric values. These embeddings can be used for various natural language processing tasks, such as similarity analysis, clustering, and classification, and offer a way to convert text data into a format that machine learning algorithms can work with.
Returns a list of files that belong to the user's organization.
Retrieves a list of files associated with the user's organization. These files can be used for various purposes, such as data storage and reference. The response includes information about each file, including its ID, size in bytes, creation timestamp, filename, and purpose.
Upload a file that can be used across various endpoints/features.
Allows users to upload files that can be utilized across various endpoints and features. Each organization can upload files with a combined size of up to 1 GB. If you require an increased storage limit, please [contact us](https://help.openai.com/). The endpoint enables users to specify the purpose of the file, and the response provides details about the uploaded file, including its ID, size in bytes, creation timestamp, filename, purpose, and status.
Returns information about a specific file.
Retrieves information about a specific file within the organization. You must provide the ID of the file you want to retrieve. The response includes details about the file, such as its ID, size in bytes, creation timestamp, filename, and purpose.
Delete a file.
Deletes a specific file associated with the organization. To execute this operation, you need to provide the ID of the file to be deleted. The response indicates whether the file was successfully deleted.
Returns the contents of the specified file.
Retrieves and returns the content of the specified file within the organization. To access the content, provide the ID of the file in the request. The response contains the content of the file, which can be downloaded and saved for further use.
List your organization's fine-tuning jobs
Lists the fine-tuning jobs associated with your organization. You can use this endpoint to view information about your fine-tuning jobs. This operation is deprecated and has been replaced with the more advanced fine-tuning process.
Creates a job that fine-tunes a specified model from a given dataset.
Creates a fine-tuning job that adapts a specified model from a given dataset. The response includes information about the enqueued job, job status, and the name of the fine-tuned models once the job is complete. This operation is deprecated and is recommended to use the more advanced fine-tuning process. [Learn more about fine-tuning](/docs/guides/legacy-fine-tuning)
Gets info about the fine-tune job.
Gets information about a specific fine-tuning job with the provided ID. This operation is deprecated and is recommended to use the more advanced fine-tuning process. [Learn more about fine-tuning](/docs/guides/legacy-fine-tuning)
Immediately cancel a fine-tune job.
Allows immediate cancellation of a specific fine-tuning job with the provided ID. This operation is deprecated and is recommended to use the more advanced fine-tuning process.
Get fine-grained status updates for a fine-tune job.
Retrieve fine-grained status updates for a specific fine-tuning job. This operation is deprecated and is recommended to use the more advanced fine-tuning process. The events can be streamed as they become available, and the stream terminates when the job is finished (succeeded, cancelled, or failed). If streaming is disabled, only events generated so far will be returned.
List your organization's fine-tuning jobs
Lists fine-tuning jobs associated with your organization in a paginated format. You can specify the after parameter to retrieve jobs starting from a specific identifier and control the number of jobs to retrieve with the limit parameter. The response includes a list of fine-tuning job objects and whether more jobs are available for pagination.
Creates a job that fine-tunes a specified model from a given dataset.
Creates a fine-tuning job that refines a specified model using a provided dataset. The response contains information about the enqueued job, including its status and the name of the fine-tuned model once the process is complete. For more details on fine-tuning, please refer to the [fine-tuning guide](/docs/guides/fine-tuning).
Get info about a fine-tuning job.
Retrieves detailed information about a specific fine-tuning job using its unique ID. The response includes data related to the fine-tuning process, such as the model used, timestamps, the fine-tuned model name, organization ID, result files, job status, training file, hyperparameters, and the number of trained tokens. For a deeper understanding of fine-tuning, please refer to the [fine-tuning guide](/docs/guides/fine-tuning).
Immediately cancel a fine-tune job.
Allows immediate cancellation of a specific fine-tuning job using its unique ID. When a job is canceled, it will stop the fine-tuning process. The response includes information about the canceled fine-tuning job, including its status, model, creation timestamp, organization ID, result files, hyperparameters, and related files.
Get status updates for a fine-tuning job.
Retrieves status updates and events related to a specific fine-tuning job using its unique ID. Users can specify the after parameter to start from a particular event and control the number of events to retrieve with the limit parameter. The response includes a list of fine-tuning event objects, providing information on the events that occurred during the fine-tuning process.
Creates an edited or extended image given an original image and a prompt.
Creates an edited or extended image by combining an original image with a user-provided prompt. This endpoint allows you to take an existing image, apply modifications or extensions specified in the prompt, and generate a new image based on the combination. The edited image is created by considering both the visual content of the original image and the textual input from the prompt, resulting in a creative and context-aware image transformation. This API call takes the original image, a prompt, and optional parameters to control the image generation process, producing a list of edited images.
Creates an image given a prompt.
Creates an image based on a provided prompt.
Creates a variation of a given image.
Creates a variation of a given image by applying artistic modifications, styles, and transformations. This API call takes an original image as a base and generates multiple artistic variations of that image. These variations are produced based on the provided image, and you can specify the number of variations to generate, as well as the desired size of the output images. This endpoint offers a creative way to explore artistic interpretations of your images, providing a list of edited image variations that can add a unique touch to your visual content.
Lists the currently available models, and provides basic information about each one such as the owner and availability.
List the currently available models and provide basic information about each model, including the owner and availability. You can use this endpoint to discover the models you can use for various tasks.
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
Retrieve detailed information about a specific model, including details such as the model owner and permissions. You can use this endpoint to gather information about a specific model based on its unique ID.
Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.
Delete a fine-tuned model. To delete a model, you must have the Owner role in your organization. This operation allows you to remove a model from your available models.
Classifies if text violates OpenAI's Content Policy
This endpoint is used to classify whether a given text violates OpenAI's Content Policy. You can submit text for moderation, and it will return a moderation object that provides information about whether the text contains content that goes against OpenAI's guidelines. The response includes details such as whether the text is flagged and the categories it might fall under, such as sexual content, hate speech, harassment, self-harm, and more.