<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhotogrammetrySession/Request/modelFile(url:detail:geometry:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21PhotogrammetrySessionC7RequestO9modelFileyAE0B03URLV_AE6DetailOAE8GeometryVSgtcAEmF"
  },
  "title" : "PhotogrammetrySession.Request.modelFile(url:detail:geometry:)"
}
-->

# PhotogrammetrySession.Request.modelFile(url:detail:geometry:)

An object-creation request saved to a USDZ file or a folder (for OBJ output).

```
case modelFile(url: URL, detail: PhotogrammetrySession.Request.Detail = .reduced, geometry: PhotogrammetrySession.Request.Geometry? = nil)
```

## Parameters

`url`

The location URL in the file system where you want to save the model file.
The request saves a USDZ file if the `url` ends with `.usdz`.
If `url` refers to a directory, the request saves an OBJ object and every texture map there.

`detail`

The level of detail for the created model.

`geometry`

The bounding box or transforms for the generated object.

---

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)