What this model error usually means
Google: Gemma 4 31B (free) returning 400 / context length exceeded means you should first confirm whether model ID google/gemma-4-31b-it:free is visible for this Google key, then separate permission, context, capability, rate limit, or route issues.
- Model: google/gemma-4-31b-it:free
- Provider: Google
- Status code: 400