643 matches
25 actions
OpenAI
25 actions
- 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). POSTv1.0.0
- Classifies if text violates OpenAI's Content PolicyPOSTv1.0.0
- Creates a completion for the chat messagePOSTv1.0.0
- Creates a completion for the provided prompt and parametersPOSTv1.0.0
- 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) POSTv1.0.0
- Creates a new edit for the provided input, instruction, and parameters.POSTv1.0.0
- Creates a variation of a given image.POSTv1.0.0
- Creates an edited or extended image given an original image and a prompt.POSTv1.0.0
- Creates an embedding vector representing the input text.POSTv1.0.0
- Creates an image given a prompt.POSTv1.0.0
- Delete a file.DELETEv1.0.0
- Delete a fine-tuned model. You must have the Owner role in your organization.DELETEv1.0.0
- Get fine-grained status updates for a fine-tune job. GETv1.0.0
- Gets info about the fine-tune job. [Learn more about Fine-tuning](/docs/guides/fine-tuning) GETv1.0.0
- Immediately cancel a fine-tune job. POSTv1.0.0
- List your organization's fine-tuning jobs GETv1.0.0
- Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability.GETv1.0.0
- Lists the currently available models, and provides basic information about each one such as the owner and availability.GETv1.0.0
- Retrieves a model instance, providing basic information about it such as the owner and availability.GETv1.0.0
- Retrieves a model instance, providing basic information about the model such as the owner and permissioning.GETv1.0.0
- Returns a list of files that belong to the user's organization.GETv1.0.0
- Returns information about a specific file.GETv1.0.0
- 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. POSTv1.0.0
- Transcribes audio into the input language.POSTv1.0.0
- Translates audio into into English.POSTv1.0.0
AI & ML/OpenAI
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)
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
{
"type": "object",
"required": [
"training_file"
],
"properties": {
"batch_size": {
"type": "integer",
"description": "The batch size to use for training. The batch size is the number of\ntraining examples used to train a single forward and backward pass.\n\nBy default, the batch size will be dynamically configured to be\n~0.2% of the number of examples in the training set, capped at 256 -\nin general, we've found that larger batch sizes tend to work better\nfor larger datasets.\n"
},
"classification_betas": {
"type": "array",
"description": "If this is provided, we calculate F-beta scores at the specified\nbeta values. The F-beta score is a generalization of F-1 score.\nThis is only used for binary classification.\n\nWith a beta of 1 (i.e. the F-1 score), precision and recall are\ngiven the same weight. A larger beta score puts more weight on\nrecall and less on precision. A smaller beta score puts more weight\non precision and less on recall.\n",
"items": {
"type": "number"
}
},
"classification_n_classes": {
"type": "integer",
"description": "The number of classes in a classification task.\n\nThis parameter is required for multiclass classification.\n"
},
"classification_positive_class": {
"type": "string",
"description": "The positive class in binary classification.\n\nThis parameter is needed to generate precision, recall, and F1\nmetrics when doing binary classification.\n"
},
"compute_classification_metrics": {
"type": "boolean",
"description": "If set, we calculate classification-specific metrics such as accuracy\nand F-1 score using the validation set at the end of every epoch.\nThese metrics can be viewed in the [results file](/docs/guides/fine-tuning/analyzing-your-fine-tuned-model).\n\nIn order to compute classification metrics, you must provide a\n`validation_file`. Additionally, you must\nspecify `classification_n_classes` for multiclass classification or\n`classification_positive_class` for binary classification.\n"
},
"learning_rate_multiplier": {
"type": "number",
"description": "The learning rate multiplier to use for training.\nThe fine-tuning learning rate is the original learning rate used for\npretraining multiplied by this value.\n\nBy default, the learning rate multiplier is the 0.05, 0.1, or 0.2\ndepending on final `batch_size` (larger learning rates tend to\nperform better with larger batch sizes). We recommend experimenting\nwith values in the range 0.02 to 0.2 to see what produces the best\nresults.\n"
},
"model": {
"type": "string",
"description": "The name of the base model to fine-tune. You can select one of \"ada\",\n\"babbage\", \"curie\", \"davinci\", or a fine-tuned model created after 2022-04-21.\nTo learn more about these models, see the\n[Models](https://platform.openai.com/docs/models) documentation.\n"
},
"n_epochs": {
"type": "integer",
"description": "The number of epochs to train the model for. An epoch refers to one\nfull cycle through the training dataset.\n"
},
"prompt_loss_weight": {
"type": "number",
"description": "The weight to use for loss on the prompt tokens. This controls how\nmuch the model tries to learn to generate the prompt (as compared\nto the completion which always has a weight of 1.0), and can add\na stabilizing effect to training when completions are short.\n\nIf prompts are extremely long (relative to completions), it may make\nsense to reduce this weight so as to avoid over-prioritizing\nlearning the prompt.\n"
},
"suffix": {
"type": "string",
"description": "A string of up to 40 characters that will be added to your fine-tuned model name.\n\nFor example, a `suffix` of \"custom-model-name\" would produce a model name like `ada:ft-your-org:custom-model-name-2022-02-15-04-21-04`.\n"
},
"training_file": {
"type": "string",
"description": "The ID of an uploaded file that contains training data.\n\nSee [upload file](/docs/api-reference/files/upload) for how to upload a file.\n\nYour dataset must be formatted as a JSONL file, where each training\nexample is a JSON object with the keys \"prompt\" and \"completion\".\nAdditionally, you must upload your file with the purpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/fine-tuning/creating-training-data) for more details.\n"
},
"validation_file": {
"type": "string",
"description": "The ID of an uploaded file that contains validation data.\n\nIf you provide this file, the data is used to generate validation\nmetrics periodically during fine-tuning. These metrics can be viewed in\nthe [fine-tuning results file](/docs/guides/fine-tuning/analyzing-your-fine-tuned-model).\nYour train and validation data should be mutually exclusive.\n\nYour dataset must be formatted as a JSONL file, where each validation\nexample is a JSON object with the keys \"prompt\" and \"completion\".\nAdditionally, you must upload your file with the purpose `fine-tune`.\n\nSee the [fine-tuning guide](/docs/guides/fine-tuning/creating-training-data) for more details.\n"
}
}
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
{
"required": [
"created_at",
"fine_tuned_model",
"hyperparams",
"id",
"model",
"object",
"organization_id",
"result_files",
"status",
"training_files",
"updated_at",
"validation_files"
],
"properties": {
"created_at": {
"type": "integer"
},
"events": {
"type": "array",
"items": {
"required": [
"object",
"created_at",
"level",
"message"
],
"properties": {
"created_at": {
"type": "integer"
},
"level": {
"type": "string"
},
"message": {
"type": "string"
},
"object": {
"type": "string"
}
}
}
},
"fine_tuned_model": {
"type": "string"
},
"hyperparams": {
"type": "object"
},
"id": {
"type": "string"
},
"model": {
"type": "string"
},
"object": {
"type": "string"
},
"organization_id": {
"type": "string"
},
"result_files": {
"type": "array",
"items": {
"required": [
"id",
"object",
"bytes",
"created_at",
"filename",
"purpose"
],
"properties": {
"bytes": {
"type": "integer"
},
"created_at": {
"type": "integer"
},
"filename": {
"type": "string"
},
"id": {
"type": "string"
},
"object": {
"type": "string"
},
"purpose": {
"type": "string"
},
"status": {
"type": "string"
},
"status_details": {
"type": "object"
}
}
}
},
"status": {
"type": "string"
},
"training_files": {
"type": "array",
"items": {
"required": [
"id",
"object",
"bytes",
"created_at",
"filename",
"purpose"
],
"properties": {
"bytes": {
"type": "integer"
},
"created_at": {
"type": "integer"
},
"filename": {
"type": "string"
},
"id": {
"type": "string"
},
"object": {
"type": "string"
},
"purpose": {
"type": "string"
},
"status": {
"type": "string"
},
"status_details": {
"type": "object"
}
}
}
},
"updated_at": {
"type": "integer"
},
"validation_files": {
"type": "array",
"items": {
"required": [
"id",
"object",
"bytes",
"created_at",
"filename",
"purpose"
],
"properties": {
"bytes": {
"type": "integer"
},
"created_at": {
"type": "integer"
},
"filename": {
"type": "string"
},
"id": {
"type": "string"
},
"object": {
"type": "string"
},
"purpose": {
"type": "string"
},
"status": {
"type": "string"
},
"status_details": {
"type": "object"
}
}
}
}
}
}