Conversations

Create a conversation

Changed on

Create a conversation.

post/conversations

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/conversations
  • Auth
    HTTP bearer

Request body

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.

Response

Success

idstring required

The unique ID of the conversation.

object'conversation' required

The object type, which is always conversation.

metadataobject required

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.

created_atinteger required

The time at which the conversation was created, measured in seconds since the Unix epoch.

Changes

    • info

      added the new optional request property /////////

    • info

      added the new optional request property /////////

    • info

      added the new optional request property /////////

    • info

      added the new optional request property /////////

    • info

      added the new optional request property /////////

    • info

      added the new optional request property /////////

    • info

      added the new optional request property //////////

    • info

      added the new optional request property //////////

    • info

      added the new optional request property //////////

    • info

      the request property default value changed from gpt-image-1 to gpt-image-2

    • info

      the request property default value changed from gpt-image-1 to gpt-image-2