--- title: osmAPI – One Awesome API for Everything AI emoji: 🚀 colorFrom: indigo colorTo: purple sdk: gradio pinned: true tags: - llm - api-gateway - openai - anthropic - google - multi-provider - routing - cost-tracking license: apache-2.0 sdk_version: 6.10.0 --- # 🚀 osmAPI — One Awesome API for Everything AI > **Route to OpenAI, Anthropic, Google & 14+ LLM providers through a single, unified API.** > Track costs, optimize performance, and scale with confidence. Free to start. --- ## What is osmAPI? **osmAPI** (One Awesome API) is a unified LLM gateway that lets you connect to 14+ AI providers — including OpenAI, Anthropic Claude, Google Gemini, and more — through a single, consistent API endpoint. Instead of juggling multiple SDKs, keys, and formats, osmAPI gives you one interface to rule them all. Whether you're a solo developer prototyping or an enterprise scaling AI workloads, osmAPI handles the complexity so you don't have to. --- ## ✨ Key Features | Feature | Description | |---|---| | **Unified API** | One endpoint, one format — works with OpenAI-compatible SDKs | | **14+ Providers** | OpenAI, Anthropic, Google, and many more | | **Cost Tracking** | Real-time visibility into token usage and spend | | **Performance Optimization** | Smart routing to the fastest/cheapest model for your task | | **Scalability** | Built to handle production workloads from day one | | **Free Tier** | Get started without a credit card | --- ## 🔌 Supported Providers - OpenAI (GPT-4o, GPT-4, GPT-3.5, etc.) - Anthropic (Claude 3.5, Claude 3 Opus, Sonnet, Haiku) - Google (Gemini 1.5 Pro, Flash, etc.) - 14+ additional providers --- ## ⚡ Quick Start ### 1. Get your API key Sign up at [osmapi.com](https://www.osmapi.com) — free to start, no credit card required. ### 2. Drop it into your existing code ```python from openai import OpenAI client = OpenAI( api_key="your-osmapi-key", base_url="https://api.osmapi.com/v1" ) response = client.chat.completions.create( model="gpt-4o", # or "claude-3-5-sonnet", "gemini-1.5-pro", etc. messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content) ``` > ✅ **No code rewrites needed.** Just change your `base_url` and `api_key`. --- ## 💡 Why osmAPI? Building AI apps means dealing with: - Different API formats per provider - Multiple API keys to manage - No unified cost visibility - Manual failover logic osmAPI solves all of this with a single integration point. --- ## 📊 Cost & Usage Tracking osmAPI automatically tracks: - Tokens consumed per request - Cost per provider and model - Usage trends over time Get the data you need to optimize spend without any extra instrumentation. --- ## 🔗 Links - 🌐 Website: [osmapi.com](https://www.osmapi.com) - 📖 Docs: [osmapi.com/docs](https://www.osmapi.com/docs) - 🐦 Twitter/X: [@osmapi](https://twitter.com/osmapi) --- *osmAPI — One Awesome API for Everything AI.*