This is the main gallery API file.