Skip to content

Probe images and box against the live API #3

Open

Description

@VianneyMI

Context

Assets and box questions need the request header TypeSafe-Danger-Zone-Images: true, and box questions need Jev 1.14 or later. Known facts come from two sources that differ:

  • The OpenAPI spec (v0.2.0) describes an asset as {type: "image", format: png | jpg | jpeg, data_base64}, or a part of a multipart request.
  • The README of a community client (jevclient) states PNG or JPEG up to 16 MiB, each side between 280 and 1568 px with larger images rejected instead of scaled, and a cost of about 2 x ceil(w/28) x ceil(h/28) input tokens per reference to an image.

Both are unverified against the live API. Images in evaluate() (#4) and the box primitive (#5) build on this probe.

Goal

Pin down how the live API handles images and box questions before the client builds checks on it.

Scope

  • Send small images, oversized images, an unsupported format, a request without the header, and several references to one asset. Record the responses.
  • Record the box answer shape, including a null confidence, and whether usage reports image tokens.
  • Record redacted fixtures with scripts/record_fixtures.py, and refresh the vendored OpenAPI snapshot if the spec changed.

Completion criteria

  • The fixtures are committed and the limits that matter for client-side checks are written down in the issues that use them.

Activity

  1. added this to the v0.3: Images and box milestone on Nov 8, 2026
  2. added
    investigation
    preview-api
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigationpreview-api

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions