Skip to content

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

TutorialDescription
OpenAI Compatible APIImplementation strategy for /v1/chat/completions and /v1/responses, enabling seamless OpenAI SDK integration
Anthropic Compatible APIKey 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 GenerationAutomatic mapping of OpenAI Images parameters size/quality, supporting arbitrary aspect ratios
Audio TranscriptionLimitations of /v1/audio/transcriptions and handling large payloads
MCP EndpointsExpose Web Search/Reader/Vision as callable tools
Cloudflared TunnelOne-click secure exposure of local API to public internet (not secure by default)

Recommended Order

  1. 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
  2. Then learn Gemini Native: Understand direct Google SDK integration
  3. Learn extended features as needed: Image generation, audio transcription, MCP tools
  4. Finally learn tunneling: Only look at Cloudflared Tunnel when you need public exposure

Quick Selection:

Your ScenarioStart With
Using Claude Code CLIAnthropic Compatible API
Using OpenAI Python SDKOpenAI Compatible API
Using Google Official SDKGemini Native API
Need AI Image GenerationImagen 3 Image Generation
Need Speech-to-TextAudio Transcription
Need Web Search/ReadingMCP Endpoints
Need Remote AccessCloudflared Tunnel

Prerequisites

Before Starting

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