Loading analysis...
Loading analysis...
API Key
ps-api-k8f2m9x4n7j1w5...Base URL
https://api.pixelsense.ai/v1Include your API key in the Authorization header as Bearer <your-api-key>
/api/v1/analyzeAnalyze a single image with specified pipeline and models.
Request Body
{ "image_url": "string", "pipeline": ["object_detection", "ocr"], "models": { "object_detection": "yolov8" }, "min_confidence": 0.7 }Response
{ "id": "string", "detections": [...], "ocr": {...}, "models": [...], "totalTime": 1.2 }Python Example
response = requests.post(
"https://api.pixelsense.ai/v1/analyze",
headers={"Authorization": "Bearer ps-api-k8f2m9..."},
json={
"image_url": "https://example.com/warehouse-photo.jpg",
"pipeline": ["object_detection", "ocr"],
"models": {
"object_detection": "yolov8-custom-warehouse",
"ocr": "gpt-4-vision"
},
"min_confidence": 0.7,
"output": "json"
}
)
result = response.json()
print(f"Objects detected: {len(result['detections'])}")/api/v1/analyze/batchSubmit a batch of images for parallel analysis.
Request Body
{ "images": ["url1", "url2", ...], "pipeline": [...], "callback_url": "string" }Response
{ "batch_id": "string", "status": "queued", "image_count": 156 }/api/v1/analyze/urlAnalyze an image directly from a public URL.
Request Body
{ "url": "https://example.com/image.jpg", "pipeline": ["object_detection"] }Response
{ "id": "string", "detections": [...], "totalTime": 1.1 }/api/v1/resultsList all analysis results with pagination and filtering.
Response
{ "results": [...], "total": 48247, "page": 1, "limit": 20 }/api/v1/results/:idGet a specific analysis result with full detection data.
Response
{ "id": "string", "detections": [...], "ocr": {...}, "classification": [...] }/api/v1/modelsList all available models including pre-built and custom.
Response
{ "models": [...], "total": 8 }/api/v1/models/trainStart training a custom model on a specified dataset.
Request Body
{ "dataset_id": "string", "base_model": "yolov8", "epochs": 100, "name": "my-custom-model" }Response
{ "training_id": "string", "status": "started", "estimated_time": "2 hours" }/api/v1/datasetsList all datasets with image counts and class distributions.
Response
{ "datasets": [...], "total": 3 }/api/v1/datasetsCreate a new dataset for custom model training.
Request Body
{ "name": "string", "description": "string", "split": { "train": 80, "validation": 10, "test": 10 } }Response
{ "id": "string", "name": "string", "status": "created" }/api/v1/analyticsGet usage analytics including volume, accuracy trends, and model performance.
Response
{ "processingVolume": [...], "analysesByType": [...], "modelAccuracy": [...] }