From 1f30f5bb499726c606da0a24cc2a4a6c4d6ad775 Mon Sep 17 00:00:00 2001 From: HsiaWinter <94424076+HsiaWinter@users.noreply.github.com> Date: Fri, 17 Apr 2026 10:32:43 +0800 Subject: [PATCH] Change API endpoint for image generation requests Updated API endpoint in README for image generation. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 551c2e5..bf9bbdf 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ sglang serve --model-path baidu/ERNIE-Image Send a generation request: ```bash -curl -X POST http://localhost:30000/generate \ +curl -X POST http://localhost:30000/v1/images/generations \ -H "Content-Type: application/json" \ -d '{ "prompt": "一只黑白相间的中华田园犬", @@ -228,7 +228,7 @@ curl -X POST http://localhost:8888/v1/chat/completions \ Stage2: Request the DiT model based on the revised prompt: ```bash -curl -X POST http://localhost:30000/generate \ +curl -X POST http://localhost:30000/v1/images/generations \ -H "Content-Type: application/json" \ -d '{ "prompt": {revised_propmt},