contentforge-api / readme.md
Bashaarat1's picture
Create readme.md
a4e278a verified
# ContentForge AI API
REST API for multi-modal AI content generation.
## Endpoints
### 1. POST /summarize
Summarize text using fine-tuned T5.
**Request:**
```json
{
"text": "Your long text here...",
"max_length": 128
}
```
**Headers:**
```
x-api-key: demo_key_123
```
### 2. POST /qa
Answer questions with optional image.
**Request:**
```json
{
"question": "What is machine learning?",
"image_base64": "optional_base64_image"
}
```
### 3. POST /generate-image
Generate images from text.
**Request:**
```json
{
"prompt": "A beautiful sunset",
"negative_prompt": "blur, low quality",
"num_steps": 25
}
```
### 4. POST /generate-music
Generate music from text.
**Request:**
```json
{
"prompt": "upbeat electronic music",
"duration": 10
}
```
## Authentication
Include API key in header:
```
x-api-key: your_api_key_here
```
## Base URL
https://your-space-name.hf.space