Create 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.
Request body
Example request
{
"prompt": "This is a test.",
"max_tokens": 16,
"n": 1,
"stop": "\n",
"suffix": "test.",
"temperature": 1,
"top_p": 1,
"user": "user-1234"
}Response
OK
Changes
Changed in 16 of the 163 revisions of this API.5831
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
the request property
became not nullablerequest-property-became-not-nullable
- ▲
the
request property type changed fromobjectto no typerequest-property-type-changed
- ▲
the
//response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ●
removed the request property
/request-property-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ○
added
subschema #1subschema #2to therequest propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #1subschema #2to the//response propertyanyOflist for the response statusresponse-property-any-of-added
This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
the
response's property default value0was added for the statusresponse-property-default-value-added
- ○
the
response's property default value0was added for the statusresponse-property-default-value-added
- ○
the
response's property default value0was added for the statusresponse-property-default-value-added
- ○
the
response's property default value0was added for the statusresponse-property-default-value-added
- ○
the
response's property default value0was added for the statusresponse-property-default-value-added
- ○
the
response's property default value0was added for the statusresponse-property-default-value-added
- ○
the
response's property default value0was added for the statusresponse-property-default-value-added
- ○
the
response's property default value0was added for the statusresponse-property-default-value-added
- ○
the
response's property default value0was added for the statusresponse-property-default-value-added
- ○