Repository navigation
1.3.0
Images and Box questions, for Jev 1.14.
Image(data, format)is a PNG or JPEG. Pass images toask(..., assets={ref: Image(...)})and writerefwhere the image belongs: in the state, an instruction or a criterion.askraisesValueErrorbefore the request when an asset is not referenced anywhere, because the API answers that with a 400.Box(instructions)asks where something is. The answer is aBoxAnswerwithtop,bottom,left,rightas fractions of the image, andconfidence. Box needsjev-1.14.0orjev-preview.- The client sends the
TypeSafe-Danger-Zone-Images: trueheader on a request with an image or a Box, and on no other. JevError.statuscarries the HTTP status. 400, 413 and 422 raiseJevValidationError, sojev-nopenow raisesJevValidationError("Unknown model: jev-nope")instead of a generic error.MIN_IMAGE_SIDE(280),MAX_IMAGE_SIDE(1568) andMAX_IMAGE_BYTES(16 MiB) are the API's limits. The API refuses an image outside them and does not resize it.
Measured on 2026-10-16: an image is billed 2 input tokens for each 28 x 28 pixel square, so 200 at 280 x 280 and 6,272 at 1568 x 1568. A Box on a red square at 0.6/0.2/0.8/0.5 answered 0.59/0.19/0.79/0.50 at confidence 0.96.