Change API endpoint for image generation requests

Updated API endpoint in README for image generation.
This commit is contained in:
HsiaWinter
2026-04-17 10:32:43 +08:00
committed by GitHub
parent c48497f92d
commit 1f30f5bb49

View File

@@ -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},