File size: 2,997 Bytes
d691cf4
e82f6db
 
 
 
 
 
 
d429306
 
 
 
 
 
 
 
e82f6db
d429306
d691cf4
 
e82f6db
d79d41d
e82f6db
 
d79d41d
e82f6db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d79d41d
e82f6db
 
 
 
d79d41d
e82f6db
 
 
 
d79d41d
e82f6db
 
d79d41d
e82f6db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d79d41d
e82f6db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
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.*