<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAI",
  "identifier" : "/documentation/CoreAI/AIModelAsset/isValid(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core AI"
    ],
    "preciseIdentifier" : "s:11CoreAIAsset12AIModelAssetV7isValid2atSb10Foundation3URLV_tFZ"
  },
  "title" : "isValid(at:)"
}
-->

# isValid(at:)

Returns a Boolean value that indicates whether the URL contains a valid model asset.

```
static func isValid(at url: URL) -> Bool
```

## Parameters

`url`

The file URL to validate.

## Return Value

`true` if the URL points to a valid model asset; otherwise, `false`.

## Discussion

This checks that:

- the URL is a file URL
- the extension is one of the known model asset extensions
- the model contains either a source program or a derived artifact

---

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)