Analyze an image using a vision model. Supports single or multi-model requests.
curl -X POST https://vision.kim8.s4s.host/api/analyze \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-3-27b-it",
"prompt": "Describe what you see in this image",
"image": "https://example.com/photo.png",
"image_type": "url",
"temperature": 0.3,
"max_tokens": 500
}'
curl -X POST https://vision.kim8.s4s.host/api/analyze \
-H "Content-Type: application/json" \
-d '{
"models": [
"google/gemma-3-27b-it",
"google/gemma-3-12b-it",
"mistralai/Mistral-Small-3.2-24B-Instruct-2506"
],
"prompt": "Analyze this screenshot for visual issues",
"image": "https://example.com/screenshot.png",
"temperature": 0.3,
"max_tokens": 500
}'
model | Single model ID (required if models not set) |
models | Array of model IDs for multi-model (max = htmlspecialchars('3') ?>) |
prompt | Text prompt describing what to analyze (required, max 2000 chars) |
image | Image URL or base64 data URI (required) |
image_type | url (default) or base64 |
temperature | 0-2, default 0.3 |
max_tokens | 1-4096, default 500 |
{
"success": true,
"message": "Analysis complete",
"data": {
"content": "The image shows...",
"model": "google/gemma-3-27b-it",
"usage_prompt": 128,
"usage_completion": 85,
"time_ms": 3421.5
}
}
{
"success": true,
"message": "Multi-model analysis complete",
"data": {
"results": [
{
"model": "google/gemma-3-27b-it",
"content": "The image shows...",
"usage_prompt": 128,
"usage_completion": 85,
"time_ms": 3421.5
},
{
"model": "google/gemma-3-12b-it",
"content": "This image displays...",
"usage_prompt": 128,
"usage_completion": 72,
"time_ms": 2105.3
}
],
"total_time_ms": 5532.8,
"models_requested": 2
}
}
List all available vision models.
curl https://vision.kim8.s4s.host/api/models
{
"success": true,
"data": {
"models": {
"google/gemma-3-27b-it": "Gemma 3 27B (Best quality)",
"google/gemma-3-12b-it": "Gemma 3 12B (Balanced)",
"google/gemma-3-4b-it": "Gemma 3 4B (Fast)",
"mistralai/Mistral-Small-3.1-24B-Instruct-2503": "Mistral Small 3.1 24B",
"mistralai/Mistral-Small-3.2-24B-Instruct-2506": "Mistral Small 3.2 24B (Latest)",
"mistralai/Magistral-Small-2506": "Magistral Small 2506",
"mistralai/Magistral-Small-2507": "Magistral Small 2507",
"mistralai/Magistral-Small-2509": "Magistral Small 2509 (Newest)"
}
}
}
Basic health check endpoint.
curl https://vision.kim8.s4s.host/api/health
Detailed status including API connectivity, config, and uptime.
curl https://vision.kim8.s4s.host/api/status
List all available API routes.
curl https://vision.kim8.s4s.host/api/routes