Back to API Reference
POST/api/v1/images/score

Score Image

Analyze a portrait photo and receive a quality score, brightness and sharpness measurements, and actionable tips for improvement.

Prompt for Vibe Coder

Skip the docs — paste this prompt into your AI agent and let it handle the integration.

Base URL

https://api.runflow.io

Authentication

Include your API key in the request header:

HeaderTypeRequiredDescription
x-api-keystringYesYour Runflow API key

Request Body

You can send the image in one of two ways:

Option 1File Uploadmultipart/form-data
FieldTypeDescription
imageFileThe image file to analyze (JPEG, PNG, WebP)
Option 2JSON Bodyapplication/json
FieldTypeDescription
image_urlstringPublic URL of the image to analyze

Examples

bash
curl -X POST https://api.runflow.io/api/v1/images/score \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image=@/path/to/photo.jpg"

Response

Returns a JSON object with the image analysis results:

json
{
  "quality_score": 0.8,
  "tips": [
    "Try to look straight at the camera."
  ],
  "brightness": 83.07600402832031,
  "sharpness": 96.61495208740234
}
FieldTypeDescription
quality_scorenumberOverall quality score from 0.0 to 1.0
tipsstring[]Actionable suggestions to improve the photo
brightnessnumberBrightness measurement (0–100 scale)
sharpnessnumberSharpness measurement (0–100 scale)