A picture, a question, a verdict: the Camly API in one call
Send a picture and a question in plain words, get a yes or no with a confidence and a sentence that explains it. What the call looks like, what comes back, and what it costs.
Most software that needs to know something about a place ends up asking a person. Is the fire exit clear? Has the delivery arrived? Is the fridge door closed? A camera already sees the answer. What is missing is a way for a program to ask.
The Camly API is that way. One call takes a picture and a question written as you would say it to a colleague, and returns a structured answer your code can act on. This post shows the call, the answer, and the three things worth knowing before you write the second line of code.
The call
curl https://api.camly.ai/v1/runs \
-H "Authorization: Bearer $CAMLY_API_KEY" \
-F 'config={"type":"event","question":"Is the marked fire exit blocked?"}' \
-F [email protected]
There is no model to train, no list of classes to choose from and no rule to configure per camera. The question is the configuration.1
The answer
{
"id": "run_...",
"object": "run",
"type": "event",
"mode": "live",
"result": {
"flagged": true,
"confidence": 0.86,
"description": "Two pallets stand inside the marked exit.",
"regions": [
{ "label": "pallet", "point": [0.52, 0.7] }
]
},
"usage": { "checks": 1, "cost_eur": "0.005" },
"created": "2026-11-01T09:30:12.482913Z"
}
Four fields carry the answer.
| Field | What it is | What to do with it |
|---|---|---|
result.flagged | The yes or no | Branch on it |
result.confidence | From 0 to 1 | Send low values to a person |
result.description | One sentence saying why | Show it to whoever receives the alert |
result.regions | Where, as points from 0 to 1 from the top-left corner | Draw them on the picture |
The sentence matters more than it looks. An alert that says “exit blocked, 0.86” asks to be trusted. An alert that says “two pallets stand inside the marked exit” can be checked in a second by the person who receives it, and corrected when it is wrong. We wrote about that review loop in when the model is wrong.
Three things to know first
A test key is free and repeatable. Keys that start with cmly_sk_test_ cost nothing and always give the same answer for the same picture, so your automated tests do not flicker. Keys that start with cmly_sk_live_ are charged to a prepaid balance. Build the whole integration on a test key, then switch.1
The picture is not kept. It is checked and dropped once the answer is sent. Larger pictures are scaled to 1280 pixels on their longest side, so there is no gain in sending more, and a real loss in sending a small thumbnail when the thing to see is small.1
The price is per check. One picture with one question is one check, €0.005 at the time of writing. A camera asked one question every five minutes, around the clock, is 288 checks a day: €1.44.1 The useful question is therefore not “how many frames per second” but “how fast can the thing I watch change”.
What it is not
It is not a video stream analyser. The API looks at pictures, one at a time, at the moments you choose. That is a deliberate limit: most questions about a place are about a state that lasts (a blocked exit, a full bin, a parked van), and a state does not need twenty-five pictures a second. We made that argument at length in object detection is not state verification.
It does not identify people. Camly looks at places, objects and vehicles. Counting people, checking that a zone is empty or seeing that someone is on the floor is fine; recognising who they are is refused by the API, as explained in why we do not do facial recognition.1
Where to go from one call
A single call answers a single question. A product usually needs more: the same question asked on a schedule, an alert when something lasts rather than at every flicker, and a message to your own back end when it starts and when it ends. The API has those too, under the names monitor, incident and webhook, and the next posts in this series take them one at a time.
The API is open by invitation for now. The contract is public and complete, and so are the guides, so you can read everything before you ask for a key.2
Sources
- Camly API, all guides as plain text: Quick start, Keys, Pictures, Limits and prices, Acceptable use. platform.camly.ai
- Camly API contract (OpenAPI). api.camly.ai. To ask for access: camly.ai/contact