> For the complete documentation index, see [llms.txt](https://docs.colossyan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.colossyan.com/avatar-creation/create-avatar.md).

# Create avatar

You can create an "instant" avatar by sending an image or video link to the API. The avatar will be generated based on the provided media.

The API will return the avatar's name, which can then be used for generating video with the avatar.

## Creates a new avatar.

> Creates a new avatar from the sent properties.

```json
{"openapi":"3.0.3","info":{"title":"Avatar API","version":"1.0.0"},"servers":[{"url":"https://app.colossyan.com/api/v1","description":"V1 API"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"PostActorsRequestBody":{"type":"object","properties":{"displayName":{"type":"string","description":"Name to be displayed for the avatar"},"sourceFileUrl":{"type":"string","description":"URL to the video or image file for the avatar to be created from"},"gender":{"type":"string","enum":["Male","Female"]}}}}},"paths":{"/assets/actors":{"post":{"summary":"Creates a new avatar.","description":"Creates a new avatar from the sent properties.","operationId":"postActors","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostActorsRequestBody"}}}},"responses":{"201":{"description":"Avatar created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Used to identify the avatar, can be used for video generation"}}}}}},"400":{"description":"Bad Request. Invalid input data."},"401":{"description":"Unauthorized. Authentication required."},"500":{"description":"Internal server error."}}}}}}
```
