---
title: "init(contentsOf:)"
framework: coreai
role: symbol
role_heading: Initializer
path: "coreai/aimodelasset/init(contentsof:)"
---

# init(contentsOf:)

Creates a model asset from the contents of the specified URL.

## Declaration

```swift
init(contentsOf url: URL) throws
```

## Parameters

- `url`: The asset URL.

## See Also

### Loading an asset

- [isValid(at:)](coreai/aimodelasset/isvalid(at:).md)
