Separate pricing based in build parameters

Hello!

I would like to know if there is any methods of separating the cost management based in parameters of each build
For example: Build with parameter A equals to 1, uses a source of credit, another build with parameter A equals to 2, uses another credit, etc

Thank you so much!