Celedog AI gateway client — OpenAI-compatible, one API for 400+ models
Project description
celedog (Python)
OpenAI-compatible Python client for Celedog.io — one API, 400+ AI models, pay as you go.
pip install celedog
Quick start
import celedog
# Reads CELEDOG_API_KEY from the env; or pass it directly:
# celedog.Client(api_key="sk-celedog-...")
client = celedog.Client()
resp = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello, Celedog!"}],
)
print(resp.choices[0].message.content)
Async + streaming
import asyncio
import celedog
async def main():
client = celedog.AsyncClient()
stream = await client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Stream me a sentence."}],
stream=True,
)
async for chunk in stream:
print(chunk.choices[0].delta.content or "", end="", flush=True)
asyncio.run(main())
celedog.Client is a thin subclass of openai.OpenAI — every feature OpenAI ships (multimodal input, structured outputs, tool calling, vision, batch) works unchanged. Just point the SDK at Celedog with your sk-celedog-... key.
Configuration
| Source | Variable | Default |
|---|---|---|
| Constructor | api_key= |
— |
| Env | CELEDOG_API_KEY |
— |
| Env (fallback) | OPENAI_API_KEY |
— |
| Constructor | base_url= |
https://celedog.io/v1 |
| Env | CELEDOG_BASE_URL |
https://celedog.io/v1 |
Other languages
| Language | Install |
|---|---|
| Python | this package |
| Node.js / TypeScript | npm install celedog |
| Go | go get github.com/AIRES-Technology/celedog-go |
| Java | Maven coordinate io.celedog:celedog:0.1.0 (GitHub Packages — see celedog-java) |
License
MIT — free to use and integrate. The Celedog gateway server itself is AGPL-3.0 (see celedog.io); SDK code is permissive so you can ship it inside your closed-source app.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file celedog-0.1.0.tar.gz.
File metadata
- Download URL: celedog-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49c18efc40df368cee521d0586d41b7bb18ad989eff22b5cb735e9e4e474272b
|
|
| MD5 |
86dba368f2372accccd9a3853b3721fd
|
|
| BLAKE2b-256 |
b1c3e3413567b36922676b4aea063fd2b9be47894741c1fb9346d5d0f94941e5
|
File details
Details for the file celedog-0.1.0-py3-none-any.whl.
File metadata
- Download URL: celedog-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f67cf8842f0f3a4720c37063c08dd17bbc3ae74ecd71cc4284a131f02474ae68
|
|
| MD5 |
044a739fa0a2be995f591e3f37c44da4
|
|
| BLAKE2b-256 |
16db428bd3aa2167d875865632a4de12364a0dba1b1e8c69f2c3a0cb8e2b9bc5
|