straitly
Straitly 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.
pip install straitly
export STRAITLY_API_KEY=sk-...
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):
catalog = straitly.models()
Already using the OpenAI SDK? You do not need this package. Set the base URL yourself:
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
Metadata
Release files for straitly 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| straitly-0.1.0.tar.gz | 3.0 kB | Without provenance | Details for straitly-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| straitly-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for straitly-0.1.0-py3-none-any.whl |
Total release size: 6.3 kB
Release files / straitly-0.1.0.tar.gz
| Download URL | straitly-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
655997a25487280321dd25fb66518432687b5ca07e59fd116a4d82d451f578ef
|
|
BLAKE2b-256 checksum How to use checksums |
79634db51c2930b3f74b517792905eb7e406903f26a2c149d6429616d0cb1202
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / straitly-0.1.0-py3-none-any.whl
| Download URL | straitly-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acc64a1a4ed8ebf1cf86545877dc6a095da8c07bb75cc62f0a66627fb74af85c
|
|
BLAKE2b-256 checksum How to use checksums |
c21382e2dbe2c2ec921945c1b4ff4c73a7a861b61c96dcd88f41cb3cb5daf5d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for straitly 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.