Open AI Studio, go to the Library, select the model, choose "Add API Access," pick the project, and confirm by clicking "Grant Access.