Bashaarat1 commited on
Commit
a4e278a
·
verified ·
1 Parent(s): b32f8d7

Create readme.md

Browse files
Files changed (1) hide show
  1. readme.md +66 -0
readme.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ContentForge AI API
2
+
3
+ REST API for multi-modal AI content generation.
4
+
5
+ ## Endpoints
6
+
7
+ ### 1. POST /summarize
8
+ Summarize text using fine-tuned T5.
9
+
10
+ **Request:**
11
+ ```json
12
+ {
13
+ "text": "Your long text here...",
14
+ "max_length": 128
15
+ }
16
+ ```
17
+
18
+ **Headers:**
19
+ ```
20
+ x-api-key: demo_key_123
21
+ ```
22
+
23
+ ### 2. POST /qa
24
+ Answer questions with optional image.
25
+
26
+ **Request:**
27
+ ```json
28
+ {
29
+ "question": "What is machine learning?",
30
+ "image_base64": "optional_base64_image"
31
+ }
32
+ ```
33
+
34
+ ### 3. POST /generate-image
35
+ Generate images from text.
36
+
37
+ **Request:**
38
+ ```json
39
+ {
40
+ "prompt": "A beautiful sunset",
41
+ "negative_prompt": "blur, low quality",
42
+ "num_steps": 25
43
+ }
44
+ ```
45
+
46
+ ### 4. POST /generate-music
47
+ Generate music from text.
48
+
49
+ **Request:**
50
+ ```json
51
+ {
52
+ "prompt": "upbeat electronic music",
53
+ "duration": 10
54
+ }
55
+ ```
56
+
57
+ ## Authentication
58
+
59
+ Include API key in header:
60
+ ```
61
+ x-api-key: your_api_key_here
62
+ ```
63
+
64
+ ## Base URL
65
+
66
+ https://your-space-name.hf.space