[api] Make api semantic consistent