| --- |
| 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="") |