We consider a funding competition for targeted projects. Potential participants have stochastic opportunity costs, and do not know the number of competitors. The funding agency sets a budget cap indicating the maximum funding that participants may request. We show that raising the budget cap helps to attract more participants but causes an increase in the requested funds. A higher budget cap is optimal when the preferences of researchers and the funding agency are more congruent, competition is lower, targeted projects have larger social value, the cost of public funds is smaller, or bidding preparation costs are lower.