Application developers can use Cloud Kiaccess to Apple’iCloud servers into iOS and OS X applications cloud kifoundation for both iCloud Storage and iCloud Photo Library.
Application developers can use CloudKit for integrated access to Apple's iCloud servers into iOS and OS X applications. CloudKit is the foundation for both iCloud Storage and iCloud Photo Library.