> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zype.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create AI Metadata

Generate AI metadata for a video

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Platform",
    "version": "1.0.0",
    "description": ""
  },
  "servers": [
    {
      "url": "https://api.zype.com/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "query"
      }
    }
  },
  "paths": {
    "/videos/{id}/ai_metadata": {
      "post": {
        "tags": [
          "Videos"
        ],
        "summary": "Create AI Metadata",
        "description": "Generate AI metadata for a video",
        "operationId": "createAIMetadata",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of video",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "attributes": {
                    "type": "array",
                    "description": "List of AI metadata attributes to generate. Valid values: title, friendly_title, description, short_description, keywords, genre",
                    "items": {
                      "type": "string",
                      "enum": [
                        "title",
                        "friendly_title",
                        "description",
                        "short_description",
                        "keywords",
                        "genre"
                      ]
                    },
                    "example": [
                      "title",
                      "keywords"
                    ]
                  },
                  "prompt_context_id": {
                    "type": "string",
                    "description": "ID of the prompt context to use when generating AI metadata",
                    "example": "507f1f77bcf86cd799439011"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "title": "AIMetadataCreateResponse",
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Video not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1app/get/responses/404/content/application~1json/schema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1videos/get/responses/422/content/application~1json/schema"
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  }
}
```