How long should an API key be?
Aim for at least 128 bits of randomness. That's 22 letters-and-numbers characters, 32 hex characters or 22 URL-safe characters; the default 32 letters and numbers gives 190 bits. Longer adds nothing you'd notice except length.
The prefix adds no strength. It tells people and secret scanners what the key is for, which is why services like Stripe and GitHub use them: sk_live_, ghp_.