Update api.md

[skip ci]