# \OpenAiApi All URIs are relative to *https://api.openai.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**cancel_fine_tune**](OpenAiApi.md#cancel_fine_tune) | **POST** /fine-tunes/{fine_tune_id}/cancel | Immediately cancel a fine-tune job. [**create_answer**](OpenAiApi.md#create_answer) | **POST** /answers | Answers the specified question using the provided documents and examples. The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions). [**create_chat_completion**](OpenAiApi.md#create_chat_completion) | **POST** /chat/completions | Creates a completion for the chat message [**create_classification**](OpenAiApi.md#create_classification) | **POST** /classifications | Classifies the specified `query` using provided examples. The endpoint first [searches](/docs/api-reference/searches) over the labeled examples to select the ones most relevant for the particular query. Then, the relevant examples are combined with the query to construct a prompt to produce the final label via the [completions](/docs/api-reference/completions) endpoint. Labeled examples can be provided via an uploaded `file`, or explicitly listed in the request using the `examples` parameter for quick tests and small scale use cases. [**create_completion**](OpenAiApi.md#create_completion) | **POST** /completions | Creates a completion for the provided prompt and parameters [**create_edit**](OpenAiApi.md#create_edit) | **POST** /edits | Creates a new edit for the provided input, instruction, and parameters. [**create_embedding**](OpenAiApi.md#create_embedding) | **POST** /embeddings | Creates an embedding vector representing the input text. [**create_file**](OpenAiApi.md#create_file) | **POST** /files | Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit. [**create_fine_tune**](OpenAiApi.md#create_fine_tune) | **POST** /fine-tunes | Creates a job that fine-tunes a specified 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. [Learn more about Fine-tuning](/docs/guides/fine-tuning) [**create_image**](OpenAiApi.md#create_image) | **POST** /images/generations | Creates an image given a prompt. [**create_image_edit**](OpenAiApi.md#create_image_edit) | **POST** /images/edits | Creates an edited or extended image given an original image and a prompt. [**create_image_variation**](OpenAiApi.md#create_image_variation) | **POST** /images/variations | Creates a variation of a given image. [**create_moderation**](OpenAiApi.md#create_moderation) | **POST** /moderations | Classifies if text violates OpenAI's Content Policy [**create_search**](OpenAiApi.md#create_search) | **POST** /engines/{engine_id}/search | The search endpoint computes similarity scores between provided query and documents. Documents can be passed directly to the API if there are no more than 200 of them. To go beyond the 200 document limit, documents can be processed offline and then used for efficient retrieval at query time. When `file` is set, the search endpoint searches over all the documents in the given file and returns up to the `max_rerank` number of documents. These documents will be returned along with their search scores. The similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query. [**create_transcription**](OpenAiApi.md#create_transcription) | **POST** /audio/transcriptions | Transcribes audio into the input language. [**create_translation**](OpenAiApi.md#create_translation) | **POST** /audio/translations | Translates audio into into English. [**delete_file**](OpenAiApi.md#delete_file) | **DELETE** /files/{file_id} | Delete a file. [**delete_model**](OpenAiApi.md#delete_model) | **DELETE** /models/{model} | Delete a fine-tuned model. You must have the Owner role in your organization. [**download_file**](OpenAiApi.md#download_file) | **GET** /files/{file_id}/content | Returns the contents of the specified file [**list_engines**](OpenAiApi.md#list_engines) | **GET** /engines | Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability. [**list_files**](OpenAiApi.md#list_files) | **GET** /files | Returns a list of files that belong to the user's organization. [**list_fine_tune_events**](OpenAiApi.md#list_fine_tune_events) | **GET** /fine-tunes/{fine_tune_id}/events | Get fine-grained status updates for a fine-tune job. [**list_fine_tunes**](OpenAiApi.md#list_fine_tunes) | **GET** /fine-tunes | List your organization's fine-tuning jobs [**list_models**](OpenAiApi.md#list_models) | **GET** /models | Lists the currently available models, and provides basic information about each one such as the owner and availability. [**retrieve_engine**](OpenAiApi.md#retrieve_engine) | **GET** /engines/{engine_id} | Retrieves a model instance, providing basic information about it such as the owner and availability. [**retrieve_file**](OpenAiApi.md#retrieve_file) | **GET** /files/{file_id} | Returns information about a specific file. [**retrieve_fine_tune**](OpenAiApi.md#retrieve_fine_tune) | **GET** /fine-tunes/{fine_tune_id} | Gets info about the fine-tune job. [Learn more about Fine-tuning](/docs/guides/fine-tuning) [**retrieve_model**](OpenAiApi.md#retrieve_model) | **GET** /models/{model} | Retrieves a model instance, providing basic information about the model such as the owner and permissioning. ## cancel_fine_tune > crate::models::FineTune cancel_fine_tune(fine_tune_id) Immediately cancel a fine-tune job. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **fine_tune_id** | **String** | The ID of the fine-tune job to cancel | [required] | ### Return type [**crate::models::FineTune**](FineTune.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_answer > crate::models::CreateAnswerResponse create_answer(create_answer_request) Answers the specified question using the provided documents and examples. The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions). ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **create_answer_request** | [**CreateAnswerRequest**](CreateAnswerRequest.md) | | [required] | ### Return type [**crate::models::CreateAnswerResponse**](CreateAnswerResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_chat_completion > crate::models::CreateChatCompletionResponse create_chat_completion(create_chat_completion_request) Creates a completion for the chat message ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **create_chat_completion_request** | [**CreateChatCompletionRequest**](CreateChatCompletionRequest.md) | | [required] | ### Return type [**crate::models::CreateChatCompletionResponse**](CreateChatCompletionResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_classification > crate::models::CreateClassificationResponse create_classification(create_classification_request) Classifies the specified `query` using provided examples. The endpoint first [searches](/docs/api-reference/searches) over the labeled examples to select the ones most relevant for the particular query. Then, the relevant examples are combined with the query to construct a prompt to produce the final label via the [completions](/docs/api-reference/completions) endpoint. Labeled examples can be provided via an uploaded `file`, or explicitly listed in the request using the `examples` parameter for quick tests and small scale use cases. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **create_classification_request** | [**CreateClassificationRequest**](CreateClassificationRequest.md) | | [required] | ### Return type [**crate::models::CreateClassificationResponse**](CreateClassificationResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_completion > crate::models::CreateCompletionResponse create_completion(create_completion_request) Creates a completion for the provided prompt and parameters ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **create_completion_request** | [**CreateCompletionRequest**](CreateCompletionRequest.md) | | [required] | ### Return type [**crate::models::CreateCompletionResponse**](CreateCompletionResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_edit > crate::models::CreateEditResponse create_edit(create_edit_request) Creates a new edit for the provided input, instruction, and parameters. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **create_edit_request** | [**CreateEditRequest**](CreateEditRequest.md) | | [required] | ### Return type [**crate::models::CreateEditResponse**](CreateEditResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_embedding > crate::models::CreateEmbeddingResponse create_embedding(create_embedding_request) Creates an embedding vector representing the input text. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **create_embedding_request** | [**CreateEmbeddingRequest**](CreateEmbeddingRequest.md) | | [required] | ### Return type [**crate::models::CreateEmbeddingResponse**](CreateEmbeddingResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_file > crate::models::OpenAiFile create_file(file, purpose) Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **file** | **std::path::PathBuf** | Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded. If the `purpose` is set to \\\"fine-tune\\\", each line is a JSON record with \\\"prompt\\\" and \\\"completion\\\" fields representing your [training examples](/docs/guides/fine-tuning/prepare-training-data). | [required] | **purpose** | **String** | The intended purpose of the uploaded documents. Use \\\"fine-tune\\\" for [Fine-tuning](/docs/api-reference/fine-tunes). This allows us to validate the format of the uploaded file. | [required] | ### Return type [**crate::models::OpenAiFile**](OpenAIFile.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_fine_tune > crate::models::FineTune create_fine_tune(create_fine_tune_request) Creates a job that fine-tunes a specified 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. [Learn more about Fine-tuning](/docs/guides/fine-tuning) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **create_fine_tune_request** | [**CreateFineTuneRequest**](CreateFineTuneRequest.md) | | [required] | ### Return type [**crate::models::FineTune**](FineTune.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_image > crate::models::ImagesResponse create_image(create_image_request) Creates an image given a prompt. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **create_image_request** | [**CreateImageRequest**](CreateImageRequest.md) | | [required] | ### Return type [**crate::models::ImagesResponse**](ImagesResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_image_edit > crate::models::ImagesResponse create_image_edit(image, prompt, mask, n, size, response_format, user) Creates an edited or extended image given an original image and a prompt. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **image** | **std::path::PathBuf** | The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask. | [required] | **prompt** | **String** | A text description of the desired image(s). The maximum length is 1000 characters. | [required] | **mask** | Option<**std::path::PathBuf**> | An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`. | | **n** | Option<**i32**> | The number of images to generate. Must be between 1 and 10. | |[default to 1] **size** | Option<**String**> | The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. | |[default to 1024x1024] **response_format** | Option<**String**> | The format in which the generated images are returned. Must be one of `url` or `b64_json`. | |[default to url] **user** | Option<**String**> | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). | | ### Return type [**crate::models::ImagesResponse**](ImagesResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_image_variation > crate::models::ImagesResponse create_image_variation(image, n, size, response_format, user) Creates a variation of a given image. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **image** | **std::path::PathBuf** | The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square. | [required] | **n** | Option<**i32**> | The number of images to generate. Must be between 1 and 10. | |[default to 1] **size** | Option<**String**> | The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. | |[default to 1024x1024] **response_format** | Option<**String**> | The format in which the generated images are returned. Must be one of `url` or `b64_json`. | |[default to url] **user** | Option<**String**> | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids). | | ### Return type [**crate::models::ImagesResponse**](ImagesResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_moderation > crate::models::CreateModerationResponse create_moderation(create_moderation_request) Classifies if text violates OpenAI's Content Policy ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **create_moderation_request** | [**CreateModerationRequest**](CreateModerationRequest.md) | | [required] | ### Return type [**crate::models::CreateModerationResponse**](CreateModerationResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_search > crate::models::CreateSearchResponse create_search(engine_id, create_search_request) The search endpoint computes similarity scores between provided query and documents. Documents can be passed directly to the API if there are no more than 200 of them. To go beyond the 200 document limit, documents can be processed offline and then used for efficient retrieval at query time. When `file` is set, the search endpoint searches over all the documents in the given file and returns up to the `max_rerank` number of documents. These documents will be returned along with their search scores. The similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **engine_id** | **String** | The ID of the engine to use for this request. You can select one of `ada`, `babbage`, `curie`, or `davinci`. | [required] | **create_search_request** | [**CreateSearchRequest**](CreateSearchRequest.md) | | [required] | ### Return type [**crate::models::CreateSearchResponse**](CreateSearchResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_transcription > crate::models::CreateTranscriptionResponse create_transcription(file, model, prompt, response_format, temperature, language) Transcribes audio into the input language. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **file** | **std::path::PathBuf** | The audio file to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. | [required] | **model** | **String** | ID of the model to use. Only `whisper-1` is currently available. | [required] | **prompt** | Option<**String**> | An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language. | | **response_format** | Option<**String**> | The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. | |[default to json] **temperature** | Option<**f32**> | The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. | |[default to 0] **language** | Option<**String**> | The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format will improve accuracy and latency. | | ### Return type [**crate::models::CreateTranscriptionResponse**](CreateTranscriptionResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## create_translation > crate::models::CreateTranslationResponse create_translation(file, model, prompt, response_format, temperature) Translates audio into into English. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **file** | **std::path::PathBuf** | The audio file to translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. | [required] | **model** | **String** | ID of the model to use. Only `whisper-1` is currently available. | [required] | **prompt** | Option<**String**> | An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English. | | **response_format** | Option<**String**> | The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt. | |[default to json] **temperature** | Option<**f32**> | The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit. | |[default to 0] ### Return type [**crate::models::CreateTranslationResponse**](CreateTranslationResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## delete_file > crate::models::DeleteFileResponse delete_file(file_id) Delete a file. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **file_id** | **String** | The ID of the file to use for this request | [required] | ### Return type [**crate::models::DeleteFileResponse**](DeleteFileResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## delete_model > crate::models::DeleteModelResponse delete_model(model) Delete a fine-tuned model. You must have the Owner role in your organization. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **model** | **String** | The model to delete | [required] | ### Return type [**crate::models::DeleteModelResponse**](DeleteModelResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## download_file > String download_file(file_id) Returns the contents of the specified file ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **file_id** | **String** | The ID of the file to use for this request | [required] | ### Return type **String** ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## list_engines > crate::models::ListEnginesResponse list_engines() Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability. ### Parameters This endpoint does not need any parameter. ### Return type [**crate::models::ListEnginesResponse**](ListEnginesResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## list_files > crate::models::ListFilesResponse list_files() Returns a list of files that belong to the user's organization. ### Parameters This endpoint does not need any parameter. ### Return type [**crate::models::ListFilesResponse**](ListFilesResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## list_fine_tune_events > crate::models::ListFineTuneEventsResponse list_fine_tune_events(fine_tune_id, stream) Get fine-grained status updates for a fine-tune job. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **fine_tune_id** | **String** | The ID of the fine-tune job to get events for. | [required] | **stream** | Option<**bool**> | Whether to stream events for the fine-tune job. If set to true, events will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available. The stream will terminate with a `data: [DONE]` message when the job is finished (succeeded, cancelled, or failed). If set to false, only events generated so far will be returned. | |[default to false] ### Return type [**crate::models::ListFineTuneEventsResponse**](ListFineTuneEventsResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## list_fine_tunes > crate::models::ListFineTunesResponse list_fine_tunes() List your organization's fine-tuning jobs ### Parameters This endpoint does not need any parameter. ### Return type [**crate::models::ListFineTunesResponse**](ListFineTunesResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## list_models > crate::models::ListModelsResponse list_models() Lists the currently available models, and provides basic information about each one such as the owner and availability. ### Parameters This endpoint does not need any parameter. ### Return type [**crate::models::ListModelsResponse**](ListModelsResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## retrieve_engine > crate::models::Engine retrieve_engine(engine_id) Retrieves a model instance, providing basic information about it such as the owner and availability. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **engine_id** | **String** | The ID of the engine to use for this request | [required] | ### Return type [**crate::models::Engine**](Engine.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## retrieve_file > crate::models::OpenAiFile retrieve_file(file_id) Returns information about a specific file. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **file_id** | **String** | The ID of the file to use for this request | [required] | ### Return type [**crate::models::OpenAiFile**](OpenAIFile.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## retrieve_fine_tune > crate::models::FineTune retrieve_fine_tune(fine_tune_id) Gets info about the fine-tune job. [Learn more about Fine-tuning](/docs/guides/fine-tuning) ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **fine_tune_id** | **String** | The ID of the fine-tune job | [required] | ### Return type [**crate::models::FineTune**](FineTune.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## retrieve_model > crate::models::Model retrieve_model(model) Retrieves a model instance, providing basic information about the model such as the owner and permissioning. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **model** | **String** | The ID of the model to use for this request | [required] | ### Return type [**crate::models::Model**](Model.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)