Analyze an image

Fetch an image from a URL or base64 and return its metadata: size in bytes, pixel dimensions, source format, and what it costs every supported vision model in tokens. Always free. Dimensions are omitted if the image header cannot be read. Also reports whether the input carries a C2PA (Content Credentials) manifest and in which container; the manifest is not validated.

post/v1/analyze

Request

  • Base URL: https://api.pictomancer.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.pictomancer.ai/v1/analyze
  • Auth: none declared

Request body

sourcestring required

Image source: a public URL (https://...) or a base64-encoded string (optionally as a data URI like data:image/png;base64,...).

Response

Successful Response

size_bytesinteger required

File size of the fetched image in bytes.

widthinteger nullable

Image width in pixels, if it could be read.

heightinteger nullable

Image height in pixels, if it could be read.

formatstring nullable

Detected source format, e.g. jpeg, png, webp, avif.

vision_tokensobject nullable

What this image costs each supported vision model, in tokens. Providers downscale oversized input before counting, so these are the prices actually charged, not a naive pixel estimate.

c2pa_manifestboolean

True when the input embeds a C2PA (Content Credentials) manifest. Presence only; the signature is not validated.

Changes

No recorded changes to this operation across all 1 revision of this API.