Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ali-wanx-style-repaint

Use Alibaba Wanx API to convert image to a different style, say Ghibli.

Notice: this API may be restricted to Mainland China only.

Use fastapi for API endpoints, and showapi for API rate limitaion.

Usage

  1. Accquire an api-key from aliyun bailian console, and set the api-key in .env

  2. Setup python environment by running: python -m venv .venv && source .venv/bin/activate

  3. Install the requirments by: pip install -r requirements.txt

  4. Start the fastapi web server: fastapi dev main.py

  5. Go to e.g: http://127.0.0.1:8000/style/1?origin_image_url=https://public-vigen-video.oss-cn-shanghai.aliyuncs.com/public/dashscope/test.png,

    you should see results like:

{
"result": "success",
"result_image_url": "https://dashscope-result-wlcb.oss-cn-wulanchabu.aliyuncs.com/1d/5a/20250402/81750fc9/20250402135400426812_refstyle_o7penmv13r.jpg?Expires=1743659644&OSSAccessKeyId=LTAI5tQZd8AEcZX6KZV4G8qL&Signature=eKgJ2Ws6RY4TD51NF5pxxbIuQV0%3D"
}

About

Use Alibaba Wanx API to convert image to a different style, say Ghibli.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages