Developer API
Ranking API for Agents
Score and rank ad creatives programmatically. Send image URLs, get back a ranked list with scores, rationales, and confidence levels. Built for computer-use agents, CLI tools, and automation pipelines.
Overview
The Ranking API evaluates ad creatives using Kettio's SSR (Semantic Similarity Rating) pipeline — the same scoring engine behind the Kettio dashboard. Each asset is scored 1–5 against a target audience persona, with a written rationale explaining the score.
Batch ranking
Up to 20 assets per request
Audience-aware
Inline personas or saved audiences
1 credit / asset
Only charged for successful evals
API Key
Generate an API key below. Keys start with agk_live_ and are sent via the Authorization header.
Quickstart
Rank three ad creatives with a single curl command:
For Computer-Use Agents
The API returns structured JSON — no browser interaction needed. Agents can parse the ranked[] array directly, read rationale strings for reasoning, and use score values to make decisions.
API Reference
Endpoint
/api/v1/rankScore and rank up to 20 image assets against a target audience persona. Assets are evaluated concurrently and returned sorted by score (highest first).
Request Body
assets{ url, id? }[]requiredurl is required (https or data:image URI). id is optional for correlation.audienceobjectname (required), description, demographics. Mutually exclusive with audience_id.audience_idstringaudience.goalstringDefault: purchase-intentasset_typestringDefault: Social Media PostResponse
ranked[]arrayerrors[]arraysummaryobjectError Codes
Reference
Configuration
Evaluation Goals
The goal parameter determines what dimension your assets are scored on. purchase-intent is the default and highest accuracy.
Asset Types
The asset_type sets the context framing — it changes the system prompt so the simulated persona evaluates the asset in the right mental context.
Demographics Fields
Optional fields on audience.demographics. These shape the simulated persona's attitude and behavior. All fields are optional — sensible defaults are applied automatically.