Add api, cli and serializable model