Meta has agreed to spend over $10 billion on Google Cloud services over six years, primarily to support its growing artificial intelligence infrastructure.