Simplify API using embedding.