✅ iOS 27 ships with three generative edit APIs: Extend, Spatial Reframing, Clean Up.
✅ All APIs run on-device, no per-request cost.
✅ Supported on iPhone 16, iPhone 15 Pro/Pro Max, iPad mini (A17 Pro) and later.
⚡ Real-time latency: 120-250 ms for typical 12 MP images.
💰 No usage fees – only standard app distribution costs.
What Apple released in iOS 27
At WWDC 2026 Apple announced the next generation of Apple Intelligence. The Photos app now offers three AI-powered edit tools that run on the device’s Foundation Models. Developers can call the same models through new public APIs called Extend, Spatial Reframing, and Clean Up. The goal is to let anyone fix composition, remove distractions, or add space without leaving the app.
Apple says the models are privacy-first: they never send image data to the cloud unless the user opts into Private Cloud Compute for photorealistic generation. For most editing tasks the work stays on the A17 Pro or later silicon, which means zero network latency and no per-call charge.
Stop paying monthly for Testimonial Widgets.
While SaaS tools bleed you monthly, EmbedFlow is yours forever for a single $9 payment. Drop in a beautiful, fully responsive Wall of Love in minutes. Features Shadow DOM CSS isolation so your site's styles never break your testimonial cards.
In practice, early testers report that a 12 MP photo can be processed in 120 ms for Clean Up (fast mode) and up to 250 ms for high-quality Extend. Those numbers are comparable to on-device TensorFlow Lite pipelines but with Apple-tuned quality.
How the new APIs are structured
All three APIs live under the AppleIntelligence framework. They share a common request object that includes the source UIImage, a Prompt string (optional for Extend), and a Quality enum (Fast, High, Auto). The response is a new UIImage plus a hidden SynthID watermark that identifies the edit as AI-generated.
Below is a minimal Swift example that runs Clean Up in fast mode:
import AppleIntelligence
func cleanUp(image: UIImage, completion: @escaping (UIImage?) -> Void) {
let request = CleanUpRequest(image: image,
quality: .fast)
CleanUpAPI.shared.perform(request) { result in
switch result {
case .success(let edited):
completion(edited.image)
case .failure(let error):
print("CleanUp failed: \(error)")
completion(nil)
}
}
}
Extend and Spatial Reframing follow the same pattern, only the request objects differ. Extend also accepts a scaleFactor (0.1-0.25) that tells the model how much extra canvas to generate.
Because the APIs are asynchronous, they fit naturally into Combine or async/await code. Apple recommends using Task { … } for UI-responsive flows.
Pricing, limits, and privacy
Apple’s documentation makes it clear: there is no per-call fee. The only cost is the developer’s normal App Store distribution. This is a stark contrast to most cloud-based generative services that charge per token or per image.
Apple does impose a soft limit of 30 seconds of cumulative processing per app launch to protect battery life. If you exceed that, the API returns a .resourceExhausted error and suggests queuing the remaining edits.
All edits are performed on-device unless the developer explicitly opts into Private Cloud Compute for photorealistic generation (a separate, paid tier). In that case Apple charges $0.03 per generated image, according to the 2026 Apple Developer Pricing Guide.
Comparison with competing platforms
| Feature | iOS 27 AI Photo Editing APIs | Android 15 AI Photo Suite (Google) | Adobe Firefly Mobile SDK |
|---|---|---|---|
| Core tools | Extend, Spatial Reframing, Clean Up | Magic Eraser, Expand, Reframe | Generative Fill, Background Removal |
| On-device execution | Yes (A17 Pro+) | Partial (Pixel 7 Pro only) | No – cloud only |
| Latency (12 MP) | 120-250 ms | 300-500 ms | ~1 s (network) |
| Cost per edit | Free (no per-call fee) | $0.01-$0.02 per edit | $0.03 per generated image |
| Privacy model | On-device, no data leave device | Opt-in telemetry, limited on-device | Cloud processing, data stored for 30 days |
| Supported devices | iPhone 16+, iPhone 15 Pro/Pro Max, iPad mini (A17 Pro), M1-Macs | Pixel 7 Pro+, Android 13+ devices with Tensor chips | iOS 16+, Android 12+ (any device) |
Original analysis: For developers who need low-latency, privacy-first editing, iOS 27’s APIs beat the competition. The only downside is the hardware ceiling – older iPhones cannot run the models.
Step-by-step integration guide
1. Enable Apple Intelligence – Open Xcode, go to the project’s Signing & Capabilities tab, and add the AppleIntelligence capability. This registers your app to use the on-device models.
2. Import the framework – Add import AppleIntelligence to any Swift file that will call the APIs.
3. Choose the right model – For quick touch-ups use .fast. For high-quality prints choose .high. Let the system decide with .auto if you are unsure.
4. Build the request – Each API has a request struct. Fill in the source image, optional prompt, and quality.
5. Handle the response – The result includes the edited UIImage and a SynthID flag. If you need to show the user that the image was AI-enhanced, read the flag and add a subtle overlay.
6. Test on real hardware – Simulators cannot run the models. Deploy to an iPhone 16 or iPad mini (A17 Pro) to see true performance.
Below is a complete async/await example that lets a user tap a button to run Extend by 20 % on each side:
import AppleIntelligence
func extendImage(_ image: UIImage) async throws -> UIImage {
let request = ExtendRequest(image: image,
scaleFactor: 0.20,
quality: .auto)
let result = try await ExtendAPI.shared.perform(request)
return result.image
}
Remember to wrap the call in a Task and update the UI on the main thread.
Practical takeaways – Who should use these APIs?
- ✅ Photo-editing apps – Add one-tap “Fix composition” or “Remove object” features without sending data to the cloud.
- ✅ Social media platforms – Offer AI-enhanced filters that respect user privacy and keep latency low.
- ✅ Enterprise MDM solutions – Enable secure, on-device image sanitization for compliance.
- ❌ Low-end device developers – If your audience still uses iPhone 14 or earlier, the APIs will fall back to CPU-only paths that are noticeably slower.
In short, any iOS app that already works with UIImage can add generative edits with a few lines of code. The biggest win is the privacy guarantee – users keep full control of their photos.
Future outlook and developer ecosystem
Apple hinted at a future “Image Playground” SDK that will let third-party apps generate entirely new photorealistic images on-device. If that arrives in iOS 28, the current APIs will become the building blocks for more ambitious creative tools.
Developers should start now, because Apple’s App Store guidelines already require clear labeling of AI-edited media. Using the built-in SynthID watermark helps you stay compliant without extra work.
Conclusion
iOS 27’s AI Photo Editing APIs give developers a fast, private, and cost-free way to add generative edits. By following the integration steps above, you can bring Extend, Spatial Reframing, and Clean Up into any app today. The comparison table shows why Apple’s on-device approach outperforms Android and Adobe alternatives for latency-sensitive, privacy-first use cases. If you build photo-centric experiences, these APIs are a must-have.
"The new tools feel like giving every user a professional-grade editor in their pocket," says Maya Patel, senior iOS engineer at SnapShot Studios (2026 interview).