基于文本查询的图片搜索工具 — 测试接口面板
Base URL: http://localhost:5000
Send a POST request with JSON body:
POST /api/search
Content-Type: application/json
{
"query": "mountain sunset", // required
"max_results": 20, // optional, default 20
"provider": "baidu", // optional: baidu | bing
"filters": { "orientation": "landscape" } // optional
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Search query text (1-500 chars) |
| max_results | integer | No | Max results (1-100, default 20) |
| provider | string | No | Search provider: baidu (default) or bing |
| filters | object | No | {orientation, color} |
cURL: curl -X POST http://localhost:5000/api/search -H "Content-Type: application/json" -d '{"query":"cat"}'