feat: 开发编辑工作台
This commit is contained in:
+9
-1
@@ -1,5 +1,13 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
from schemas.image_edit import ImageEditRequest, ImageEditResponse
|
||||
from services.image_edit import edit_image
|
||||
|
||||
router = APIRouter(prefix="/api/image", tags=["image"])
|
||||
|
||||
# Phase 2: watermark / white background / img2img proxy
|
||||
|
||||
@router.post("/edit", response_model=ImageEditResponse, summary="AI 图生图(wanx2.1-imageedit)")
|
||||
async def create_image_edit(body: ImageEditRequest) -> ImageEditResponse:
|
||||
return await edit_image(body)
|
||||
|
||||
# 后续扩展点:白底 / 水印等服务端处理可继续在此文件下新增路由。
|
||||
|
||||
Reference in New Issue
Block a user