Image API
Drawing preset management, remote preset caching, and image generation configuration.
Get All Presets
http
GET /api/image/presetsResponse
json
{
"success": true,
"data": {
"builtin": [
{
"uid": "preset_xxx",
"keywords": ["figure", "figurization"],
"needImage": true,
"prompt": "Please convert this image into a figurine style..."
}
],
"custom": [],
"remote": {}
}
}Refresh Remote Presets
http
POST /api/image/presets/refreshRe-fetches presets from the configured remote preset source and caches them.
Add a Custom Preset
http
POST /api/image/presets/customRequest Body
json
{
"keywords": ["pixel-art", "pixelated"],
"needImage": true,
"prompt": "Convert this image into a pixel-art style..."
}Delete a Custom Preset
http
DELETE /api/image/presets/custom/:uidGet Image Config
http
GET /api/image/configResponse
json
{
"success": true,
"data": {
"enabled": true,
"model": "gemini-3-flash-image",
"videoModel": "gemini-3-pro-preview-video",
"timeout": 60000,
"maxImages": 30,
"sendMode": "direct"
}
}Update Image Config
http
PUT /api/image/configGet Image API List
http
GET /api/image/apisAdd / Update / Delete Image APIs
http
POST /api/image/apis
PUT /api/image/apis/:index
DELETE /api/image/apis/:index