File size: 1,087 Bytes
3fd280a 958a05c 3fd280a 958a05c 3fd280a 958a05c | 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 | ---
title: DevsDo API
emoji: ⚡
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
---
# ⚡ DevsDo API Server
OpenAI-compatible API · 52 Models · Streaming · Reasoning · Zero Keys
## Endpoints
| Method | Path | Description |
|--------|----------------------------|--------------------------------|
| GET | `/` | Server info |
| GET | `/health` | Health check |
| GET | `/v1/models` | Models (OpenAI format) |
| GET | `/api/internal/v1/models` | Detailed registry by family |
| POST | `/v1/chat/completions` | Chat (stream + non-stream) |
## Quick Start
```python
from openai import OpenAI
client = OpenAI(
base_url="https://YOUR-SPACE.hf.space/v1",
api_key="none"
)
# Streaming
for chunk in client.chat.completions.create(
model="deepseek-r1",
messages=[{"role": "user", "content": "Hello!"}],
stream=True,
):
print(chunk.choices[0].delta.content or "", end="") |