API Documentation

Integrate NovelForge AI into your workflow with our REST API.

Base URL

https://api.novelforge.ai/v1

Authentication

All API requests require a JWT token in the Authorization header:

Authorization: Bearer <your_access_token>

Obtain your access token via POST /api/v1/auth/login or POST /api/v1/auth/register

POST /ai/generate

Generate AI-powered content for your novel.

Request Body

{
  "feature": "single_continue",
  "text": "Your story text here...",
  "style": "爽文"
}

Features

  • single_continue - Single continuation
  • outline_continue - Outline continuation
  • command_continue - Command continuation
  • smart_expand - Smart expand
  • style_rewrite - Style rewrite
  • polish - Polish text
GET /api/v1/subscriptions/plans

List all available subscription plans.

POST /api/v1/subscriptions/create-checkout

Create a checkout session for a subscription plan.

GET /api/v1/usage/summary

Get your current usage statistics and remaining quota.

GET /api/v1/projects

List all your projects.

POST /api/v1/projects

Create a new project.

POST /api/v1/api-keys

Create a new API key for programmatic access.

Rate Limits

API requests are rate-limited to ensure fair usage:

  • Free plan: 10 requests/minute
  • Pro plan: 100 requests/minute
  • Enterprise: Custom limits

Rate limit headers: X-RateLimit-Limit, X-RateLimit-Remaining