OpenAPI Integration Guide

I. System Architecture and Overall Process

The following diagram illustrates the ListenHub process:

sequenceDiagram
    participant C as User
    participant G as API Gateway
    participant F as Generation Engine
	  participant S as Cloud Storage
    
    Note over C, G: Episode Creation
    C->>G: Create Episode API Call
    G->>G: Validate Token/Quota/Rights
    G->>F: Create Voice Task
    F-->>G: Task Completed (episodeID)
    G-->>C: Return Result (200 OK, episodeID)

    F->>F: Process Text (<1min)
    F->>F: Generate Voice (1-2min)
    F->>S: Upload Audio File
    S-->>F: Upload Confirmation
    F->>C: Webhook Confirmation of Completion
 
    Note over C, G: Episode Query - All Episode Information
    C->>G: Query Episode Details API Call
    G-->>C: Episode Related Information (audioStreamUrl + Episode Info)
    C->>S: GET Audio URL (Play)
    S-->>C: Return Audio Stream
    
    Note over C, G: Episode Query - Text Streaming
    C->>G: Query Episode Text Stream API Call
    G-->>C: Return Episode Script/Outline Streaming Data

II. OpenAPI Service Plans and Pricing

Feature Support:

ListenHub OpenAPI v1.0 provides comprehensive audio content generation capabilities with the following core features:

Future versions will gradually support:

Pricing:

OpenAPI services are available only to Business and Enterprise plan users.