Chat

List Chat Completions

List stored Chat Completions. Only Chat Completions that have been stored with the store parameter set to true will be returned.

get/chat/completions

Query parameters

modelstring

The model used to generate the Chat Completions.

metadataMetadata nullable

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.

Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

A list of metadata keys to filter the Chat Completions by. Example:

metadata[key1]=value1&metadata[key2]=value2

afterstring

Identifier for the last chat completion from the previous pagination request.

limitinteger

Number of Chat Completions to retrieve.

order'asc' | 'desc'

Sort order for Chat Completions by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.

Response

A list of Chat Completions

object'list' required

The type of this object. It is always set to "list".

first_idstring required

The identifier of the first chat completion in the data array.

last_idstring required

The identifier of the last chat completion in the data array.

has_moreboolean required

Indicates whether there are more Chat Completions available.

Changes

Changed in 9 of the 163 revisions of this API.16423

    • ○

      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

    • ●

      removed the optional property /// from the response with the status

      response-optional-property-removed

    • ○

      added the optional property /// to the response with the status

      response-optional-property-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property //// to the response with the status

      response-optional-property-added

    • ○

      added the optional property //// to the response with the status

      response-optional-property-added

    • ○

      added the optional property //// to the response with the status

      response-optional-property-added

    • ●

      added the new fast enum value to the /// response property for the response status

      response-property-enum-value-added

    • ○

      added the optional property // to the response with the status

      response-optional-property-added

    • ○

      added the optional property //// to the response with the status

      response-optional-property-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 74cbcf73838f1610See the full diff
    • ▲

      response property data/items/choices/items/message/content list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • ▲

      response property data/items/choices/items/message/refusal list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • ▲

      response property data/items/service_tier list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • ▲

      added to the ////// response property oneOf list for the response status

      response-property-one-of-added

    • ▲

      the //// response's property type changed from object to no type for status

      response-property-type-changed

    • ▲

      the ///// response's property type changed from object to no type for status

      response-property-type-changed

    • ▲

      the ////// response's property type changed from object to no type for status

      response-property-type-changed

    • ▲

      removed the required property ///// from the response with the status

      response-required-property-removed

    • ▲

      removed the required property ///// from the response with the status

      response-required-property-removed

    • ▲

      removed the required property ////// from the response with the status

      response-required-property-removed

    • ▲

      removed the required property ////// from the response with the status

      response-required-property-removed

    • ▲

      removed the required property ////// from the response with the status

      response-required-property-removed

    • ▲

      removed the required property ////// from the response with the status

      response-required-property-removed

    • ▲

      removed the required property /////// from the response with the status

      response-required-property-removed

    • ▲

      removed the required property /////// from the response with the status

      response-required-property-removed

    • ▲

      removed the required property /////// from the response with the status

      response-required-property-removed

    • ○

      query request parameter metadata list-of-types was widened by adding types null

      request-parameter-list-of-types-widened

    • ○

      for the query request parameter metadata, the type was generalized from object to no type

      request-parameter-type-generalized

    • ○

      added subschema #1 subschema #2 to the //// response property anyOf list for the response status

      response-property-any-of-added

    • ○

      added subschema #1 subschema #2 to the ///// response property anyOf list for the response status

      response-property-any-of-added

    • ○

      the response's property default value auto was removed for the status

      response-property-default-value-removed

    • ○

      response property data/items/system_fingerprint deprecated

      response-property-deprecated

    • ○

      added discriminator to ////// response property for the response status

      response-property-discriminator-added

    • ○

      removed the auto enum value from the // response property for the response status

      response-property-enum-value-removed

    • ○

      removed the default enum value from the // response property for the response status

      response-property-enum-value-removed

    • ○

      removed the flex enum value from the // response property for the response status

      response-property-enum-value-removed

    This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 6a6c681b182022See the full diff
    • ●

      added the new auto enum value to the // response property for the response status

      response-property-enum-value-added

    • ●

      added the new flex enum value to the // response property for the response status

      response-property-enum-value-added

    • ○

      the response's property default value auto was added for the status

      response-property-default-value-added

    • ○

      removed the scale enum value from the // response property for the response status

      response-property-enum-value-removed

    This revision also has 18 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • ○

      endpoint added

      endpoint-added