You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-docs.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,10 @@ Generates a response from an AI model. This is the core endpoint for chat functi
44
44
45
45
**Authentication**: Session or API Key
46
46
47
+
Notes:
48
+
- If you authenticate with a NanoChat API key (`Authorization: Bearer nc_...`) or a session cookie, the server will use your stored NanoGPT key or the server `NANOGPT_API_KEY`.
49
+
- To pass a NanoGPT key directly, send it via `x-api-key` or `Authorization: Bearer <nanogpt_key>` (non-`nc_`).
50
+
47
51
**Request Body**:
48
52
```json
49
53
{
@@ -106,6 +110,10 @@ Proxies requests to NanoGPT TTS API for speech synthesis.
106
110
107
111
**Authentication**: Session or API Key
108
112
113
+
Notes:
114
+
- If you authenticate with a NanoChat API key (`Authorization: Bearer nc_...`) or a session cookie, the server will use your stored NanoGPT key or the server `NANOGPT_API_KEY`.
115
+
- To pass a NanoGPT key directly, send it via `x-api-key` or `Authorization: Bearer <nanogpt_key>` (non-`nc_`).
116
+
109
117
**Request Body**:
110
118
```json
111
119
{
@@ -134,6 +142,10 @@ Polls the status of an asynchronous TTS request.
134
142
135
143
**Authentication**: Session or API Key
136
144
145
+
Notes:
146
+
- If you authenticate with a NanoChat API key (`Authorization: Bearer nc_...`) or a session cookie, the server will use your stored NanoGPT key or the server `NANOGPT_API_KEY`.
147
+
- To pass a NanoGPT key directly, send it via `x-api-key` or `Authorization: Bearer <nanogpt_key>` (non-`nc_`).
148
+
137
149
**Query Parameters**:
138
150
-`runId`: (Required) The run ID returned by `/api/tts`.
139
151
-`model`: (Required) The TTS model ID.
@@ -167,6 +179,10 @@ Proxies audio files to NanoGPT STT API for transcription.
167
179
168
180
**Authentication**: Session or API Key
169
181
182
+
Notes:
183
+
- If you authenticate with a NanoChat API key (`Authorization: Bearer nc_...`) or a session cookie, the server will use your stored NanoGPT key or the server `NANOGPT_API_KEY`.
184
+
- To pass a NanoGPT key directly, send it via `x-api-key` or `Authorization: Bearer <nanogpt_key>` (non-`nc_`).
0 commit comments