D-ID API Troubleshooting
Fix D-ID connection issues and test your setup
🎉 Good News! We've Added HeyGen Integration!
Tired of D-ID issues? We've integrated HeyGen - a more reliable, easier-to-use alternative that works better than D-ID. No more authentication headaches, better video quality, and simpler pricing!
Why HeyGen is Better:
- ✅ Simple API key (no encoding nonsense)
- ✅ More reliable (fewer errors)
- ✅ Better quality avatars & voices
- ✅ Clearer pricing ($0.12/min)
Quick Setup:
- 1. Go to app.heygen.com (FREE trial)
- 2. Get your API key
- 3. We've already set it up for you!
- 4. Start generating videos immediately
🔍 Advanced Diagnostic (USE THIS NOW!)
This will show you EXACTLY what's being sent to D-ID and what error is happening
⚠️ You're still getting 500 errors. This diagnostic tool will reveal the exact issue by showing us what credentials are being sent to D-ID and their exact response.
This diagnostic shows the exact API key length, format, and D-ID's response. Check the logs in Dashboard → Code → Functions → diagnoseDIDConnection for full details.
🔑 API Key Encoder (USE THIS FIRST!)
D-ID shows your key in a format that needs to be re-encoded for our system. Use this tool to convert it properly.
🎯 This is the fix! D-ID shows your API key in their format, but our backend needs it encoded differently. Use this tool to convert it, then paste the result into your environment variables.
Copy the ENTIRE key shown on the D-ID website (it should contain one colon)
Quick Connection Test
Test your D-ID API key with a simple video generation
This test generates a 3-second video to verify your D-ID connection. It uses 0.05 credits.
Check Your D-ID API Key
- 1.Go to https://studio.d-id.com/account-settings
- 2.Click "Show" next to your API key
- 3.Copy the ENTIRE key (it's usually quite long)
- 4.Go to Dashboard → Settings → Environment Variables
- 5.Find DID_API_KEY and click Edit
- 6.Paste the key WITHOUT any "Basic " prefix
- 7.Click Save and wait 30 seconds
Verify Your Credits
- 1.Go to https://studio.d-id.com/usage
- 2.Check your remaining credits (Free: 20/month)
- 3.Each minute of video uses ~1 credit
- 4.If credits are 0, wait until next month or upgrade
- 5.Click "Upgrade" to purchase more credits
Test D-ID Studio Directly
- 1.Go to https://studio.d-id.com
- 2.Click "Create Video"
- 3.Enter a simple script: "Hello, this is a test"
- 4.Select an avatar and voice
- 5.Click Generate
- 6.If this works → API key issue in MoveFlow
- 7.If this fails → D-ID account/service issue
Check D-ID Service Status
- 1.Visit https://status.d-id.com
- 2.Check if there are any ongoing incidents
- 3.Look for "API" or "Video Generation" issues
- 4.If there's an outage, wait and retry later
- 5.D-ID usually resolves issues within 1-2 hours
Common Error Codes & Solutions
500 Internal Server Error
D-ID service issue OR API key problem- →Check if your API key has "Basic " prefix (remove it)
- →Verify credits aren't exhausted
- →Wait 5-10 minutes and retry
- →Check D-ID status page
401 Unauthorized
Invalid or missing API key- →Copy fresh API key from D-ID dashboard
- →Remove any "Basic " prefix
- →Make sure there are no extra spaces
- →Save and wait 30 seconds for redeployment
402 Payment Required
Credits exhausted- →Free tier: 20 credits/month (resets monthly)
- →Check usage at studio.d-id.com/usage
- →Upgrade plan or wait until next month
- →Each minute of video = ~1 credit
400 Bad Request
Invalid request parameters- →Try a different presenter avatar
- →Try a different voice profile
- →Shorten your script (under 3 minutes)
- →Check for special characters in script
🔗 Quick Links
Still having issues?
If you've tried all the steps above and still can't generate videos:
- Check backend function logs: Dashboard → Code → Functions → generateAIVideo
- Contact D-ID support: support@d-id.com
- Try generating a video directly at studio.d-id.com
- Check if your account is in good standing (no payment issues)