<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/CoreMLModelContainer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "s:6Vision20CoreMLModelContainerV"
  },
  "title" : "CoreMLModelContainer"
}
-->

# CoreMLModelContainer

A model container to use with an image-analysis request.

```
struct CoreMLModelContainer
```

## Topics

### Creating a model container

[`init(model: MLModel, featureProvider: (any MLFeatureProvider)?) throws`](/documentation/Vision/CoreMLModelContainer/init(model:featureProvider:))

### Getting the feature name

[`var inputImageFeatureName: String`](/documentation/Vision/CoreMLModelContainer/inputImageFeatureName)

The name of the feature value that Vision sets from the request handler.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)