I have two onlays/inlays. Had them done 15+ years ago and they’re still in decent shape. Can’t speak to the cost since it was so long ago but I think it was markedly more than a regular filling, but probably less than a full crown. My current dentist (not the one who did them) was surprised when he saw them at my first visit with him a few years ago and said he doesn’t do them anymore.