Fake AI APIs
Mock AI APIs for testing (OpenAI, Gemini, Anthropic)
Open it
Routes
| Protocol | Address | JAR | Provider |
|---|---|---|---|
| https | fake-openai.wasmserver.com | fake-openai-server.jar | cloudrunjar |
| https | fake-gemini.wasmserver.com | fake-gemini-server.jar | cloudrunjar |
| https | fake-anthropic.wasmserver.com | fake-anthropic-server.jar | cloudrunjar |
Repositories
| Repository | Layer | Description |
|---|---|---|
| fake-ai-apis | other | Mock AI API implementations |
Depends on
Cloud Run— hosting
Documentation Edit this page
Fake AI APIs
Mock AI API implementations for testing.
Description
Provides mock implementations of OpenAI, Gemini, and Anthropic APIs for testing purposes. Allows running tests against AI API interfaces without incurring real API costs or requiring valid API keys.
Architecture
Three independent Cloud Run services, each mimicking the API surface of a major AI provider:
- Fake OpenAI (
fake-openai-server.jar): Mock OpenAI API. - Fake Gemini (
fake-gemini-server.jar): Mock Google Gemini API. - Fake Anthropic (
fake-anthropic-server.jar): Mock Anthropic API.
Dependents
- Test suites that need to exercise AI API client code without real API calls.
Deployment
- Fake OpenAI: Deployed as
fake-openai-server.jaron Cloud Run atfake-openai.wasmserver.com. - Fake Gemini: Deployed as
fake-gemini-server.jaron Cloud Run atfake-gemini.wasmserver.com. - Fake Anthropic: Deployed as
fake-anthropic-server.jaron Cloud Run atfake-anthropic.wasmserver.com.
Health Checks
- HTTPS health check at
fake-openai.wasmserver.com - HTTPS health check at
fake-gemini.wasmserver.com - HTTPS health check at
fake-anthropic.wasmserver.com
Notes
- These services are intended for testing only. They return deterministic or simplified responses, not real AI completions.
- Using these services avoids incurring costs from real AI API providers during test runs.
Read at commit 45ba0b30ed3b