🤖 Model Selection
💬 Prompt
Quick Prompts
🌸 Cherry blossom garden
🌆 Cyberpunk cityscape at night
🐉 Majestic dragon in clouds
🌊 Ocean waves at golden hour
🚀 Space station orbiting Earth
🏯 Ancient Japanese castle in snow
Auto-Enhance Prompt
AI optimizes your prompt for better results
⚙️ Parameters
1:1 Square
16:9 Wide
9:16 Tall
4:3 Standard
3:4 Portrait
Custom
Submitting task...
Recent Generations
🎨
No generations yet.
Create your first image!
📡 REST API Reference
Base URL: http://localhost:3000
GET
/api/models
Returns all supported AI models, their versions, and parameters.
Loading...
POST
/api/generate
Submit an image generation task. Returns a taskId.
{
"modelName": "GG",
"modelVersion": "2.5",
"prompt": "A beautiful sunset over ocean",
"negativePrompt": "blurry, noise",
"enhancePrompt": true,
"aspectRatio": "16:9",
"storageMode": "Temporary",
"seed": 42
}
Response:
{
"taskId": "1436636252-AigcImage-xxxxx",
"requestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
GET
/api/task/:taskId
Poll the status and result of a generation task.
{
"Status": "FINISH",
"AigcImageTask": {
"Output": {
"FileUrl": "https://...cdn.../image.png"
}
}
}
GET
/api/tasks
List recent image generation tasks (up to 20).
🛠️ Example: cURL
curl -X POST http://localhost:3000/api/generate \
-H "Content-Type: application/json" \
-d '{
"modelName": "GG",
"modelVersion": "3.0",
"prompt": "A majestic dragon flying over mountains",
"aspectRatio": "16:9",
"enhancePrompt": true
}'
📦 Supported Models