---
title: "init(contentsOf:configuration:inputName:outputName:context:)"
framework: createmlcomponents
role: symbol
role_heading: Initializer
path: "createmlcomponents/mlmodelimagefeatureextractor/init(contentsof:configuration:inputname:outputname:context:)"
---

# init(contentsOf:configuration:inputName:outputName:context:)

Creates an image feature extractor from a CoreML model URL.

## Declaration

```swift
init(contentsOf url: URL, configuration: MLModelConfiguration, inputName: String = "image", outputName: String, context: CIContext = CIContext()) async throws
```

## Parameters

- `url`: URL of the .mlmodel file.
- `configuration`: The model configuration of the CoreML model.
- `inputName`: The name of the input which the model expects.
- `outputName`: The name of the output from the model.
- `context`: The Core Image context.

## See Also

### Creating the extractor

- [init(model:inputName:outputName:context:)](createmlcomponents/mlmodelimagefeatureextractor/init(model:inputname:outputname:context:).md)
