Add generation token api