Metadata-Version: 2.4
Name: straitly
Version: 0.1.0
Summary: Straitly: one OpenAI-compatible API key for many models. Returns the OpenAI client pointed at Straitly.
License: MIT
Project-URL: Homepage, https://straitly.ai
Project-URL: Documentation, https://straitly.ai/docs/quickstart
Project-URL: Models, https://straitly.ai/models
Project-URL: Pricing, https://straitly.ai/pricing
Keywords: llm,openai,ai gateway,llm api,inference
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai>=1.0
Dynamic: license-file

# straitly

[Straitly](https://straitly.ai) is one OpenAI-compatible API for many models: Claude, GPT, Gemini, Grok,
DeepSeek, Kimi, Qwen and more, behind one key and one bill. This package returns the official OpenAI client
pointed at Straitly, so code written for OpenAI works after one line.

```bash
pip install straitly
export STRAITLY_API_KEY=sk-...
```

```python
import straitly

client = straitly.client()
reply = client.chat.completions.create(
    model="MODEL_ID",  # pick one from straitly.models() or https://straitly.ai/models
    messages=[{"role": "user", "content": "Say hello."}],
)
print(reply.choices[0].message.content)
```

List the live models (no key needed):

```python
catalog = straitly.models()
```

Already using the OpenAI SDK? You do not need this package. Set the base URL yourself:

```python
from openai import OpenAI
client = OpenAI(api_key="sk-...", base_url="https://api.straitly.ai/v1")
```

- Quickstart: https://straitly.ai/docs/quickstart
- Models: https://straitly.ai/models
- Pricing: https://straitly.ai/pricing
- Claude Code, Cursor and other tools: https://straitly.ai/integrations
