← Back to compatibility guides
Gemini compatibility
Gemini generateContent mocking for CI/CD
Validate Gemini generateContent integrations using the same key query and x-goog-api-key authentication your app already sends.
Copy-paste SDK setup
Use this in local tests, GitHub Actions, or pre-deploy smoke suites.
curl https://api.mockllm.io/v1beta/models/gemini-pro:generateContent \
-H 'x-goog-api-key: $MOCKLLM_API_KEY'Endpoint
/v1beta/models/gemini-pro:generateContent
CI use cases
- ✓Gemini request payload checks
- ✓Multimodal fallback contract tests
- ✓Deployment gate smoke tests
GitHub Actions smoke test
Gate releases with a deterministic MockLLM fixture instead of a live provider call.
- name: Gemini MockLLM smoke test
env:
MOCKLLM_API_KEY: ${{ secrets.MOCKLLM_API_KEY }}
run: npm test -- --runTestsByPath tests/gemini-generate-content-smoke.test.tsShip deterministic LLM tests this week
Start with one fixture, prove the provider contract, and expand coverage without increasing API spend.