The base credit is $2,500. You could get an extra $417 if your vehicle draws propulsion energy from a battery with at least five kilowatt hours of capacity. Then you may be able to take another $417 for each kilowatt hour of battery capacity that exceeds 5 kilowatt hours. The maximum credit you could be eligible for is $7,500.
The vehicle’s manufacturer should offer certification to the IRS of its eligibility, and possibly even the amount of the credit.