Files
2026-08-14 18:27:45 +08:00

14 lines
505 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"])
@router.post("/edit", response_model=ImageEditResponse, summary="AI 图生图(wanx2.1-imageedit")
async def create_image_edit(body: ImageEditRequest) -> ImageEditResponse:
return await edit_image(body)
# 后续扩展点:白底 / 水印等服务端处理可继续在此文件下新增路由。