At the bare minimum, three months of documented treatment is required.
The SSA will require documentation of more extended treatment time to see how you are going to respond to treatment in order to evaluate your claim.