move embed API into embed dir.