@@ -27,15 +27,15 @@ Version 20 enters its maintenance period in October 2024 and end-of-life in Apri
27
27
28
28
## Process Endpoint
29
29
30
- Once the server is running, send a ` POST ` request to ` http://localhost:3000/process ` containing a JSON object:
30
+ Once the server is running, send a ` POST ` request to ` http://localhost:3000/api/ process ` containing a JSON object:
31
31
32
32
### Video Type
33
33
34
34
``` bash
35
35
curl --json ' {
36
36
"type": "video",
37
37
"url": "https://www.youtube.com/watch?v=MORMZXEaONk"
38
- }' http://localhost:3000/process
38
+ }' http://localhost:3000/api/ process
39
39
```
40
40
41
41
Use LLM.
@@ -46,7 +46,7 @@ curl --json '{
46
46
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
47
47
"whisperModel": "tiny",
48
48
"llm": "ollama"
49
- }' http://localhost:3000/process
49
+ }' http://localhost:3000/api/ process
50
50
```
51
51
52
52
``` bash
@@ -56,7 +56,7 @@ curl --json '{
56
56
"whisperModel": "tiny",
57
57
"llm": "ollama",
58
58
"llmModel": "DEEPSEEK_R1_1_5B"
59
- }' http://localhost:3000/process
59
+ }' http://localhost:3000/api/ process
60
60
```
61
61
62
62
### File Type
@@ -65,7 +65,7 @@ curl --json '{
65
65
curl --json ' {
66
66
"type": "file",
67
67
"filePath": "content/audio.mp3"
68
- }' http://localhost:3000/process
68
+ }' http://localhost:3000/api/ process
69
69
```
70
70
71
71
``` bash
@@ -74,7 +74,7 @@ curl --json '{
74
74
"filePath": "content/audio.mp3",
75
75
"whisperModel": "tiny",
76
76
"llm": "ollama"
77
- }' http://localhost:3000/process
77
+ }' http://localhost:3000/api/ process
78
78
```
79
79
80
80
``` bash
@@ -84,7 +84,7 @@ curl --json '{
84
84
"prompts": ["titles"],
85
85
"whisperModel": "tiny",
86
86
"llm": "ollama"
87
- }' http://localhost:3000/process
87
+ }' http://localhost:3000/api/ process
88
88
```
89
89
90
90
## Language Model (LLM) Options
@@ -96,7 +96,7 @@ curl --json '{
96
96
"type": "video",
97
97
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
98
98
"llm": "chatgpt"
99
- }' http://localhost:3000/process
99
+ }' http://localhost:3000/api/ process
100
100
```
101
101
102
102
``` bash
@@ -105,7 +105,7 @@ curl --json '{
105
105
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
106
106
"llm": "chatgpt",
107
107
"llmModel": "GPT_4o_MINI"
108
- }' http://localhost:3000/process
108
+ }' http://localhost:3000/api/ process
109
109
```
110
110
111
111
### Claude
@@ -115,7 +115,7 @@ curl --json '{
115
115
"type": "video",
116
116
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
117
117
"llm": "claude"
118
- }' http://localhost:3000/process
118
+ }' http://localhost:3000/api/ process
119
119
```
120
120
121
121
``` bash
@@ -124,7 +124,7 @@ curl --json '{
124
124
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
125
125
"llm": "claude",
126
126
"llmModel": "CLAUDE_3_SONNET"
127
- }' http://localhost:3000/process
127
+ }' http://localhost:3000/api/ process
128
128
```
129
129
130
130
### Gemini
@@ -134,7 +134,7 @@ curl --json '{
134
134
"type": "video",
135
135
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
136
136
"llm": "gemini"
137
- }' http://localhost:3000/process
137
+ }' http://localhost:3000/api/ process
138
138
```
139
139
140
140
``` bash
@@ -143,7 +143,7 @@ curl --json '{
143
143
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
144
144
"llm": "gemini",
145
145
"llmModel": "GEMINI_1_5_FLASH"
146
- }' http://localhost:3000/process
146
+ }' http://localhost:3000/api/ process
147
147
```
148
148
149
149
### Cohere
@@ -153,7 +153,7 @@ curl --json '{
153
153
"type": "video",
154
154
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
155
155
"llm": "cohere"
156
- }' http://localhost:3000/process
156
+ }' http://localhost:3000/api/ process
157
157
```
158
158
159
159
``` bash
@@ -162,7 +162,7 @@ curl --json '{
162
162
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
163
163
"llm": "cohere",
164
164
"llmModel": "COMMAND_R_PLUS"
165
- }' http://localhost:3000/process
165
+ }' http://localhost:3000/api/ process
166
166
```
167
167
168
168
### Mistral
@@ -172,7 +172,7 @@ curl --json '{
172
172
"type": "video",
173
173
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
174
174
"llm": "mistral"
175
- }' http://localhost:3000/process
175
+ }' http://localhost:3000/api/ process
176
176
```
177
177
178
178
``` bash
@@ -181,7 +181,7 @@ curl --json '{
181
181
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
182
182
"llm": "mistral",
183
183
"llmModel": "MIXTRAL_8x7b"
184
- }' http://localhost:3000/process
184
+ }' http://localhost:3000/api/ process
185
185
```
186
186
187
187
## Transcription Options
@@ -193,7 +193,7 @@ curl --json '{
193
193
"type": "video",
194
194
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
195
195
"whisperModel": "tiny"
196
- }' http://localhost:3000/process
196
+ }' http://localhost:3000/api/ process
197
197
```
198
198
199
199
### Deepgram
@@ -203,7 +203,7 @@ curl --json '{
203
203
"type": "video",
204
204
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
205
205
"transcriptServices": "deepgram"
206
- }' http://localhost:3000/process
206
+ }' http://localhost:3000/api/ process
207
207
```
208
208
209
209
``` bash
@@ -212,7 +212,7 @@ curl --json '{
212
212
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
213
213
"transcriptServices": "deepgram",
214
214
"llm": "ollama"
215
- }' http://localhost:3000/process
215
+ }' http://localhost:3000/api/ process
216
216
```
217
217
218
218
### Assembly
@@ -222,7 +222,7 @@ curl --json '{
222
222
"type": "video",
223
223
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
224
224
"transcriptServices": "assembly"
225
- }' http://localhost:3000/process
225
+ }' http://localhost:3000/api/ process
226
226
```
227
227
228
228
``` bash
@@ -231,7 +231,7 @@ curl --json '{
231
231
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
232
232
"transcriptServices": "assembly",
233
233
"llm": "ollama"
234
- }' http://localhost:3000/process
234
+ }' http://localhost:3000/api/ process
235
235
```
236
236
237
237
``` bash
@@ -240,7 +240,7 @@ curl --json '{
240
240
"url": "https://ajc.pics/audio/fsjam-short.mp3",
241
241
"transcriptServices": "assembly",
242
242
"speakerLabels": true
243
- }' http://localhost:3000/process
243
+ }' http://localhost:3000/api/ process
244
244
```
245
245
246
246
``` bash
@@ -250,7 +250,7 @@ curl --json '{
250
250
"transcriptServices": "assembly",
251
251
"speakerLabels": true,
252
252
"llm": "ollama"
253
- }' http://localhost:3000/process
253
+ }' http://localhost:3000/api/ process
254
254
```
255
255
256
256
## Prompt Options
@@ -260,15 +260,15 @@ curl --json '{
260
260
"type": "video",
261
261
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
262
262
"prompts": ["titles", "mediumChapters"]
263
- }' http://localhost:3000/process
263
+ }' http://localhost:3000/api/ process
264
264
```
265
265
266
266
``` bash
267
267
curl --json ' {
268
268
"type": "video",
269
269
"url": "https://www.youtube.com/watch?v=MORMZXEaONk",
270
270
"prompts": ["titles", "summary", "shortChapters", "takeaways", "questions"]
271
- }' http://localhost:3000/process
271
+ }' http://localhost:3000/api/ process
272
272
```
273
273
274
274
``` bash
@@ -278,7 +278,7 @@ curl --json '{
278
278
"prompts": ["titles", "summary", "shortChapters", "takeaways", "questions"],
279
279
"whisperModel": "tiny",
280
280
"llm": "ollama"
281
- }' http://localhost:3000/process
281
+ }' http://localhost:3000/api/ process
282
282
```
283
283
284
284
## Test Requests
0 commit comments