Platforms & Integrations
Antigravity Tools' core capability is converting protocols from multiple AI platforms into a unified local API gateway. This chapter details the integration methods, compatibility boundaries, and best practices for each protocol.
In This Chapter
| Tutorial | Description |
|---|---|
| OpenAI Compatible API | Implementation strategy for /v1/chat/completions and /v1/responses, enabling seamless OpenAI SDK integration |
| Anthropic Compatible API | Key contracts for /v1/messages and Claude Code, supporting core features like chain-of-thought and system prompts |
| Gemini Native API | /v1beta/models and Google SDK endpoint integration, supporting x-goog-api-key compatibility |
| Imagen 3 Image Generation | Automatic mapping of OpenAI Images parameters size/quality, supporting arbitrary aspect ratios |
| Audio Transcription | Limitations of /v1/audio/transcriptions and handling large payloads |
| MCP Endpoints | Expose Web Search/Reader/Vision as callable tools |
| Cloudflared Tunnel | One-click secure exposure of local API to public internet (not secure by default) |
Recommended Learning Path
Recommended Order
- Learn the protocol you use first: If you use Claude Code, start with Anthropic Compatible API; if you use OpenAI SDK, start with OpenAI Compatible API
- Then learn Gemini Native: Understand direct Google SDK integration
- Learn extended features as needed: Image generation, audio transcription, MCP tools
- Finally learn tunneling: Only look at Cloudflared Tunnel when you need public exposure
Quick Selection:
| Your Scenario | Start With |
|---|---|
| Using Claude Code CLI | Anthropic Compatible API |
| Using OpenAI Python SDK | OpenAI Compatible API |
| Using Google Official SDK | Gemini Native API |
| Need AI Image Generation | Imagen 3 Image Generation |
| Need Speech-to-Text | Audio Transcription |
| Need Web Search/Reading | MCP Endpoints |
| Need Remote Access | Cloudflared Tunnel |
Prerequisites
Before Starting
- Completed Installation & Upgrades
- Completed Add Accounts
- Completed Start Local Reverse Proxy (at least able to access
/healthz)
Next Steps
After completing this chapter, you can continue learning:
- Advanced Configuration: Model routing, quota management, high-availability scheduling, and other advanced features
- FAQ: Troubleshooting guide for 401/404/429 and other errors