FastAPI async wrapper for Freepik cloud AI API supporting image generation (Mystic, Flux Dev/Pro, SeedReam), video generation (Kling, MiniMax, Seedance), image editing (upscale, relight, style transfer, expand, inpaint), and utilities (background removal, classifier, audio isolation). Includes async task tracking with polling, Docker containerization, and Gitea CI/CD workflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
241 B
Python
14 lines
241 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class HealthResponse(BaseModel):
|
|
status: str = 'ok'
|
|
|
|
|
|
class SystemInfoResponse(BaseModel):
|
|
api_key_valid: bool
|
|
active_tasks: int
|
|
cpu_count: int
|
|
memory_total: int
|
|
memory_available: int
|