Metadata-Version: 2.4
Name: orbigpu
Version: 0.1.0
Summary: Official Python SDK for OrbiGPU — unified API gateway for 100+ LLM models
Author: OrbiGPU
License: MIT
Project-URL: Homepage, https://orbigpu.com
Project-URL: Documentation, https://orbigpu.com/docs
Project-URL: Repository, https://github.com/OrbiGPU/OrbiGPU
Project-URL: Issues, https://github.com/OrbiGPU/OrbiGPU/issues
Keywords: llm,ai,openai,anthropic,gpt,claude,deepseek,api,orbigpu
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: openai>=1.40.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
Requires-Dist: ruff>=0.1; extra == "dev"

# OrbiGPU

Official Python SDK for [OrbiGPU](https://orbigpu.com) — a unified API gateway for 100+ LLM models from 15+ providers (OpenAI, Anthropic, DeepSeek, Gemini, Groq, GLM, ...) with automatic failover and smart routing.

## Install

```bash
pip install orbigpu
```

## Quickstart

```python
from orbigpu import OrbiGPU

client = OrbiGPU(api_key="sk-your-api-key-from-orbigpu-dot-com")

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello in 3 words"}],
)
print(response.choices[0].message.content)
```

## Drop-in for OpenAI SDK

If you already have OpenAI SDK code, you only need to change the base URL:

```python
from openai import OpenAI

client = OpenAI(
    api_key="sk-your-orbigpu-api-key",
    base_url="https://api.orbigpu.com/v1",  # only this line
)
```

## Streaming

```python
stream = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Write a haiku about APIs"}],
    stream=True,
)
for chunk in stream:
    delta = chunk.choices[0].delta.content
    if delta:
        print(delta, end="", flush=True)
```

## Get Your API Key

1. Sign up at [orbigpu.com](https://orbigpu.com) (no credit card)
2. Dashboard → API Keys → create
3. $10 free credits on signup — enough for ~100,000 tokens on free-tier models

## Documentation

Full docs + examples: [github.com/OrbiGPU/OrbiGPU](https://github.com/OrbiGPU/OrbiGPU)

## License

MIT © OrbiGPU
