---
title: "init(model:)"
framework: vision
role: symbol
role_heading: Initializer
path: "vision/vncoremlrequest/init(model:)"
---

# init(model:)

Creates a model container to use with an image analysis request based on the model you provide.

## Declaration

```swift
convenience init(model: VNCoreMLModel)
```

## Parameters

- `model`: The doc://com.apple.documentation/documentation/CoreML model on which to base the Vision request.

## Discussion

Discussion Initialization can fail if the Core ML model you provide isn’t supported in Vision, such as if the model doesn’t accept an image as input.

## See Also

### Initializing with a Core ML Model

- [init(model:completionHandler:)](vision/vncoremlrequest/init(model:completionhandler:).md)
- [model](vision/vncoremlrequest/model.md)
- [VNCoreMLModel](vision/vncoremlmodel.md)
