OpenAI APIs · Schema

CreateThreadRequest

Artificial IntelligenceEmbeddingsImage GenerationLanguage ModelsSpeech

Properties

Name Type Description
messages array Initial messages to start the thread with
metadata object Key-value metadata for the thread
View JSON Schema on GitHub

JSON Schema

openai-apis-createthreadrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateThreadRequest",
  "title": "CreateThreadRequest",
  "type": "object",
  "properties": {
    "messages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CreateMessageRequest"
      },
      "description": "Initial messages to start the thread with"
    },
    "metadata": {
      "type": "object",
      "description": "Key-value metadata for the thread"
    }
  }
}