contentforge-api / readme.md
Bashaarat1's picture
Create readme.md
a4e278a verified

A newer version of the Gradio SDK is available: 6.1.0

Upgrade

ContentForge AI API

REST API for multi-modal AI content generation.

Endpoints

1. POST /summarize

Summarize text using fine-tuned T5.

Request:

{
  "text": "Your long text here...",
  "max_length": 128
}

Headers:

x-api-key: demo_key_123

2. POST /qa

Answer questions with optional image.

Request:

{
  "question": "What is machine learning?",
  "image_base64": "optional_base64_image"
}

3. POST /generate-image

Generate images from text.

Request:

{
  "prompt": "A beautiful sunset",
  "negative_prompt": "blur, low quality",
  "num_steps": 25
}

4. POST /generate-music

Generate music from text.

Request:

{
  "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