Annotate
by Supervision Draw in Developer tools
Annotate an image with detections using supervision's annotators (box, round_box, box_corner, circle, dot, ellipse, triangle, label, color, mask, polygon, halo, background_overlay, blur, pixelate, percentage_bar), applied in order. Input: base64 image up to 4 megapixels, up to 500 detections with xyxy pixel boxes and optional class_id, confidence, ASCII label, polygon. Returns the annotated image (base64 PNG or JPEG), size and counts per class.
https://supervision-draw.saastemly.com/v1/annotate- Price
- $0.003
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 369 ms
- 594 ms slowest 5%
- Last check
- Passed
- 14 min ago, next in 15 min
Reliability
How to call it
POST https://supervision-draw.saastemly.com/v1/annotate
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing. Shortened to fit. The code below sends this shortened example too: put in your own values.
POST https://supervision-draw.saastemly.com/v1/annotate
content-type: application/json
{
"annotators": [
{
"thickness": 2,
"type": "box"
},
{
"text_padding": 4,
"text_scale": 0.4,
"type": "label"
}
],
"class_names": [
"car",
"person",
"ball"
],
"detections": [
{
"class_id": 0,
"confidence": 0.94,
"xyxy": [
30,
60,
90,
120
]
},
{
"class_id": 1,
"confidence": 0.88,
"xyxy": [
140,
40,
180,
115
]
},
{
"class_id": 2,
"confidence": 0.71,
"xyxy": [
190,
90,
225,
125
]
}
],
"format": "jpeg",
"image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCACgAPADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uH…",
"quality": 85
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
annotators | array of object | No | Annotators applied in order, each a type name or an object {"type": ..., options}. Default [box, label]. Put blur, pixelate, color, mask or background_overlay before box and label. Types: box, round_box, box_corner, circle, dot, ellipse, triangle, label, color, mask, polygon, halo, background_overl… |
class_names | array of string | No | Names indexed by class_id, used in generated labels and in counts.byClass (printable ASCII) |
detections | array of object | Yes | Up to 500 detections, drawn in this order |
format | string | No | Output format (default png) One of: png, jpeg. |
image | string | Yes | Base64 of a PNG, JPEG, BMP or WebP file (a data: URI also works), up to 4 million pixels and about 2 MB |
quality | integer | No | JPEG quality 1-100 (default 90) |
Example response
The provider's example. We can't check it without paying. Shortened for display.
{
"annotators": [
"box",
"label"
],
"counts": {
"byClass": {
"ball": 1,
"car": 1,
"person": 1
},
"total": 3
},
"detections": 3,
"height": 160,
"image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCACgAPADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2iiiivqz5oKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAorj/AO2tS/5+f/HE/wAKP7a1L/n5/wDHE/woA7CiuP8A7a1L/n5/8cT/AAo/trUv+fn/AMcT/CgDsKK4/wD…",
"mimeType": "image/jpeg",
"width": 240
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://supervision-draw.saastemly.com/v1/annotate' \
-H 'content-type: application/json' \
--data-raw '{"annotators":[{"thickness":2,"type":"box"},{"text_padding":4,"text_scale":0.4,"type":"label"}],"class_names":["car","person","ball"],"detections":[{"class_id":0,"confidence":0.94,"xyxy":[30,60,90,120]},{"class_id":1,"confidence":0.88,"xyxy":[140,40,180,115]},{"class_id":2,"confidence":0.71,"xyxy":[190,90,225,125]}],"format":"jpeg","image":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCACgAPADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uH\u2026","quality":85}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://supervision-draw.saastemly.com/v1/annotate' \
-H 'content-type: application/json' \
--data-raw '{"annotators":[{"thickness":2,"type":"box"},{"text_padding":4,"text_scale":0.4,"type":"label"}],"class_names":["car","person","ball"],"detections":[{"class_id":0,"confidence":0.94,"xyxy":[30,60,90,120]},{"class_id":1,"confidence":0.88,"xyxy":[140,40,180,115]},{"class_id":2,"confidence":0.71,"xyxy":[190,90,225,125]}],"format":"jpeg","image":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCACgAPADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uH\u2026","quality":85}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fsupervision-draw.saastemly.com%2Fv1%2Fannotate&method=POST
const res = await pay("https://supervision-draw.saastemly.com/v1/annotate", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"annotators": [
{
"thickness": 2,
"type": "box"
},
{
"text_padding": 4,
"text_scale": 0.4,
"type": "label"
}
],
"class_names": [
"car",
"person",
"ball"
],
"detections": [
{
"class_id": 0,
"confidence": 0.94,
"xyxy": [
30,
60,
90,
120
]
},
{
"class_id": 1,
"confidence": 0.88,
"xyxy": [
140,
40,
180,
115
]
},
{
"class_id": 2,
"confidence": 0.71,
"xyxy": [
190,
90,
225,
125
]
}
],
"format": "jpeg",
"image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCACgAPADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uH\u2026",
"quality": 85
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://supervision-draw.saastemly.com/v1/annotate",
json={
"annotators": [
{
"thickness": 2,
"type": "box",
},
{
"text_padding": 4,
"text_scale": 0.4,
"type": "label",
},
],
"class_names": [
"car",
"person",
"ball",
],
"detections": [
{
"class_id": 0,
"confidence": 0.94,
"xyxy": [
30,
60,
90,
120,
],
},
{
"class_id": 1,
"confidence": 0.88,
"xyxy": [
140,
40,
180,
115,
],
},
{
"class_id": 2,
"confidence": 0.71,
"xyxy": [
190,
90,
225,
125,
],
},
],
"format": "jpeg",
"image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCACgAPADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uH\u2026",
"quality": 85,
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 14 min ago | Passed | 402 | 218 ms | $0.003 |
| 5 h ago | Passed | 402 | 371 ms | $0.003 |
| 9 h ago | Passed | 402 | 344 ms | $0.003 |
| 13 h ago | Passed | 402 | 2.1 s | $0.003 |
| 17 h ago | Passed | 402 | 264 ms | $0.003 |
Show 10 older checks
| 21 h ago | Passed | 402 | 324 ms | $0.003 |
| 24 h ago | Passed | 402 | 261 ms | $0.003 |
| 28 h ago | Passed | 402 | 499 ms | $0.003 |
| 32 h ago | Passed | 402 | 357 ms | $0.003 |
| 36 h ago | Passed | 402 | 451 ms | $0.003 |
| 39 h ago | Passed | 402 | 379 ms | $0.003 |
| 43 h ago | Passed | 402 | 277 ms | $0.003 |
| 47 h ago | Passed | 402 | 273 ms | $0.003 |
| 2 days ago | Passed | 402 | 378 ms | $0.003 |
| 2 days ago | Passed | 402 | 414 ms | $0.003 |