Spaces:
Sleeping
Sleeping
Delete README.md
Browse files
README.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Chilo API
|
| 3 |
-
emoji: 💬
|
| 4 |
-
colorFrom: blue
|
| 5 |
-
colorTo: indigo
|
| 6 |
-
sdk: docker
|
| 7 |
-
---
|
| 8 |
-
|
| 9 |
-
# Chilo API – Usage Guide
|
| 10 |
-
|
| 11 |
-
**Chilo** is a RESTful API that delivers structured conversational instructions (a JSON *prompt*) for conversational agents. Built with a focus on security and simplicity, the API allows you to access detailed instructions effortlessly—no named registration, no payment, and no personal data collected.
|
| 12 |
-
|
| 13 |
-
## Quick Overview
|
| 14 |
-
|
| 15 |
-
- **Anonymous API Key**: Obtain a unique key by calling the `/signup` endpoint. No personal information is required—you simply receive a randomly generated key.
|
| 16 |
-
- **Unlimited and Free Access**: Use this key to call the `/instructions` endpoint as many times as needed. There are no quotas or fees—usage is completely free.
|
| 17 |
-
- **Structured Instructions**: The `/instructions` endpoint returns a JSON object with multiple fields (e.g., "bio", "lore", "knowledge", etc.) that form the conversational prompt. These instructions can be integrated into your conversational agent to shape its behavior and responses.
|
| 18 |
-
|
| 19 |
-
## Available Endpoints
|
| 20 |
-
|
| 21 |
-
| Endpoint | Method | Description |
|
| 22 |
-
|-----------------|--------|--------------------------------------------------------------------|
|
| 23 |
-
| `/signup` | POST | Generates a new anonymous API key. *(No parameters required.)* |
|
| 24 |
-
| `/instructions` | GET | Returns the structured instructions JSON. *(Requires the API key.)*|
|
| 25 |
-
|
| 26 |
-
## Authentication
|
| 27 |
-
|
| 28 |
-
The API uses a straightforward **API key system**. After retrieving your key from the `/signup` endpoint, include it in all subsequent requests via the HTTP `Authorization` header.
|
| 29 |
-
|
| 30 |
-
- **How to Include the API Key**: Add the key directly as the value of the `Authorization` header (do not use a "Bearer" prefix).
|
| 31 |
-
|
| 32 |
-
**Example Header**: Authorization: 123e4567-e89b-12d3-a456-426614174000
|
| 33 |
-
|
| 34 |
-
If the API key is missing or invalid, the API will return a **403 Forbidden** error.
|
| 35 |
-
|
| 36 |
-
## Usage Guide – Key Steps
|
| 37 |
-
|
| 38 |
-
### 1. Generate an API Key
|
| 39 |
-
Send a POST request to the `/signup` endpoint to obtain your API key.
|
| 40 |
-
|
| 41 |
-
**Example Command**:
|
| 42 |
-
```bash
|
| 43 |
-
curl -X POST https://chiloai-chilo-ai-api.hf.space/signup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|