Skip to main content
Kaer APIv1

ImagesEndpoints


POST /v1/images
Scope
search
Tier
Starter and up
Price
$0.002 per call
Free credit
Yes, once Starter opens it

Find real photos, diagrams and illustrations for a subject, from Kaer's picture index with live Wikimedia Commons and Pexels results when the index is thin. Every picture is checked and comes with its licence, a ready-made credit line and whether a business website may reuse it.

Request body

ParameterTypeDefaultDescription
queryRequiredstring·What to picture, 1 to 300 characters ("sourdough bread", "water cycle diagram").
countinteger121 to 30 pictures. Anything else, a numeric string included, is a 400.
reusablebooleanfalseOnly pictures a business website may use with the returned credit.

Other fields come back in kaer.ignored_params. The body is limited to 8 KB; a call times out after 15 seconds.

Price

One call costs $0.002 whatever count is, even when it finds no pictures. A call that fails is not charged.

Response

FieldTypeDescription
objectstringimages.result
querystringThe query, trimmed.
subjectstringThe subject the index searched for.
countintegerPictures returned.
reusable_onlybooleanEchoes reusable.
withheldobjectPresent when some pictures were held back.
results[].idstringStable picture id.
results[].kindstringphoto, diagram or illustration.
results[].titlestringPicture title.
results[].image_urlstringFull-size image (https).
results[].thumb_urlstringThumbnail (https).
results[].page_urlstringThe page the picture comes from.
results[].hoststringThat page's host.
results[].width, heightintegerPixel size, when known.
results[].sourcestringwikimedia_commons, pexels or web.
results[].licenseobjectname, code, label and url.
results[].creditstringAuthor or owner.
results[].attributionstringAttribution text from the source.
results[].credit_linestringA ready-made credit to publish with the picture.
results[].attribution_requiredbooleanPublish credit_line next to the picture when true.
results[].share_alikebooleanDerivatives must keep the same licence.
results[].commercial_okbooleanA business website may use it.
{
  "object": "images.result",
  "query": "sourdough bread",
  "subject": "sourdough bread",
  "count": 12,
  "reusable_only": true,
  "results": [
    {
      "id": "commons:sourdough.jpg",
      "kind": "photo",
      "title": "Sourdough loaf",
      "image_url": "https://upload.wikimedia.org/…",
      "thumb_url": "https://upload.wikimedia.org/…/500px-…",
      "page_url": "https://commons.wikimedia.org/wiki/File:…",
      "host": "commons.wikimedia.org",
      "width": 4000,
      "height": 3000,
      "source": "wikimedia_commons",
      "license": { "name": "…", "code": "cc-by-sa", "label": "CC BY-SA 4.0", "url": "https://creativecommons.org/licenses/by-sa/4.0/" },
      "credit": "Ann K",
      "attribution": "…",
      "credit_line": "…",
      "attribution_required": true,
      "share_alike": true,
      "commercial_ok": true
    }
  ],
  "kaer": { "request_id": "req_…", "cost_usd": 0.002 }
}

Headers: x-request-id and the x-ratelimit-* headers. The cost is kaer.cost_usd in the body; there is no x-kaer-cost-usd header.

Errors

StatusCodeWhen
400invalid_jsonThe body is not valid JSON. Images also needs a JSON object.
400query_requiredquery is missing or blank.
400query_too_longquery is over 512 characters (search) or 300 (images).
400invalid_countcount is not an integer from 1 to 30.
400invalid_reusablereusable is not true or false.
403tier_requiredYour tier does not include this service yet.
413body_too_largeThe body is over the endpoint's limit: chat 1 MB, search 16 KB, batch 64 KB, images 8 KB, mail 512 KB.
502images_failedThe picture search failed. Nothing was charged.
503images_busyImages are at capacity. Nothing was charged.
502 or 503images_unavailableImages are unreachable, timed out or paused. Nothing was charged.
curl https://api.kaer.ai/v1/images \
  -H "Authorization: Bearer $KAER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "sourdough bread", "count": 20, "reusable": true}'

© 2026 Kaer Labs Ltd. All rights reserved.