> For the complete documentation index, see [llms.txt](https://api.pyblish.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.pyblish.com/pyblish.api/context/context.create_instance.md).

# .create\_instance

Create [Instances](/pyblish.api/instance.md) for a given [Context](/pyblish.api/context.md).

## Introduction

Create an instance and automatically make it a child of the calling context, returns the newly created [Instance](/pyblish.api/instance.md).

```python
import pyblish.api
context = pyblish.api.Context()
instance = context.create_instance(name="MyInstance")
```

{{ file.mtime }}
