tune api and example