Strange. I just opened a ticket on Mailgun asking if the API key format has changed.
Edit: And I heard back from them. It’s still the same. @lunikon, my best guess is that you’re using an SMTP password rather than an API key. You can look at my install FAQ for how to find the API key.