---
updatedAt: 2026-05-27T01:07:19.000Z
agentTools:
  projectIndex: https://docs.d-id.com/llms.txt
---

# Create a Premium+ Avatar

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Videos Endpoints",
    "version": "0.1"
  },
  "servers": [
    {
      "url": "https://api.d-id.com/"
    }
  ],
  "paths": {
    "/clips/avatars": {
      "post": {
        "operationId": "TrainClip",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "driver_id": {
                      "type": "string"
                    },
                    "presenter_id": {
                      "type": "string"
                    },
                    "created_by": {
                      "type": "string"
                    },
                    "owner_id": {
                      "type": "string"
                    },
                    "created_at": {
                      "type": "string"
                    },
                    "consent_id": {
                      "type": "string"
                    },
                    "gender": {
                      "type": "string",
                      "enum": [
                        "male",
                        "female"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "status": {
                      "$ref": "#/components/schemas/ClipAvatarStatus"
                    },
                    "id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "driver_id",
                    "presenter_id",
                    "created_by",
                    "owner_id",
                    "created_at",
                    "consent_id",
                    "gender",
                    "name",
                    "status",
                    "id"
                  ],
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "AuthorizationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonError"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "kind": "AuthorizationError",
                      "description": "user unauthenticated"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create a Premium+ Avatar",
        "tags": [
          "Clips (Premium Avatars)"
        ],
        "security": [
          {
            "basic": []
          },
          {
            "bearer": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClipTrainRequest"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "JsonError": {
        "properties": {
          "kind": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "details": {},
          "internal": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "description"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ClipAvatarStatus": {
        "enum": [
          "created",
          "ready",
          "done",
          "draft",
          "error",
          "post-done",
          "rejected",
          "started",
          "validating"
        ],
        "type": "string"
      },
      "TrainConfig": {
        "properties": {
          "is_greenscreen": {
            "type": "boolean",
            "description": "Whether the clip is a greenscreen clip",
            "default": false
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "CreateClipTrainRequest": {
        "properties": {
          "source_url": {
            "type": "string",
            "description": "The source URL of the clip video to train, the video must be longer than 3 minutes and have a resolution higher than 0.5 megapixels."
          },
          "name": {
            "type": "string",
            "description": "A name for the avatar"
          },
          "gender": {
            "type": "string",
            "enum": [
              "male",
              "female"
            ],
            "description": "The gender of the presenter"
          },
          "consent_id": {
            "type": "string",
            "description": "Id of the related consent for the clip"
          },
          "webhook": {
            "type": "string",
            "description": "The webhook to call when the training is done"
          },
          "config": {
            "$ref": "#/components/schemas/TrainConfig",
            "description": "Configuration options for the clip training"
          }
        },
        "required": [
          "source_url",
          "gender"
        ],
        "type": "object",
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "curl"
    ]
  }
}
```