Cost-effective AI integration