Send images with a decision
z3-mini takes up to four photos with a decision request, with any question type, and answers in the normal response shape. You can also train a model on your own labelled photos (Train on images). The service does not generate images, transcribe audio, accept video, draw boxes, or compare reference pairs.
Client flow
- Sign in and choose Images. Upload a still JPEG or PNG, describe the decision, and provide 2–16 answers (the website form's limit). Photos stay private to the account.
- For client training, review every answer and item group, confirm the split and success targets, and submit. Related views of one item belong in one split.
- Review held-out accuracy, recall, false alarms, unknown count and denominators. Training passed and API ready are different states. A rejected result stays saved.
- After API ready, Try your model fetches the owned model's saved question and immutable ID. The existing account/key controls access.
confidence is the concentration of the returned distribution; it is not a calibrated probability that the selected answer is correct. Read probabilities for that.
API contract
Create an image with POST /v1/image-assets, including purpose: "prediction", filename, source_bytes, and a SHA-256 of the original file. Use the returned PUT URL and headers exactly, then POST /v1/image-assets/{id}/complete with {}. Creation and finalization accept a signed-in session or the owner's existing Zils API key. Only opaque asset IDs enter prediction requests; external URLs and encoded image strings are rejected. Never send a source filename as decision context.
With an API key, send a standard decision request to POST /v1/systemone:
{
"model": "MODEL_ID_FROM_YOUR_OWNED_LISTING",
"state": {},
"questions": {
"inspection": {
"type": "choice",
"instructions": "Is the product visibly damaged?",
"criteria": {"normal": null, "damaged": null}
}
},
"images": [{"asset_id": "FINALIZED_ASSET_UUID"}]
}A d3 model listed with capabilities also takes up to four images on POST /v1/systemone, with any question type, and answers with the text response shape.
For a trained model, use its exact task.question and task.outcome_order from the owned listing. JSON object order must follow the declared outcome order for ties. The browser uses session routes GET /v1/image-models and POST /v1/image-decisions. Those routes do not create API keys. Models owned by another account are omitted from listings and return 404 on use. Runtime addresses, tokens, signed image read URLs and raw held-out predictions are never returned.
Billing
Image requests use the existing prepaid account, rate limits and API keys. The usage.billable_input_tokens meter counts the model's processed visual tokens plus one canonical copy of the supplied state and question. It excludes asset IDs, filenames, model routing and internal prompt wrappers. Decisions cost $0.06 per million billable input tokens (pricing); usage.input_tokens remains the full processed context used for resource limits. Credit is reserved before prediction and settled once on success; a failed prediction releases its reservation. Insufficient credit returns 402.
The browser's batch tool submits images sequentially, keeps completed results, and pauses on a credit error. Top up in Billing and resume only the remaining images.
Limits and retention
| Limit | Bound |
|---|---|
| Input | One still JPEG or PNG, 10 MiB source and canonical output |
| Decoded photo | 16 million pixels; 8,192 pixels per edge |
| Model input | RGB PNG; processor budget 65,536–400,000 pixels; at most 8,192 tokens including the photos |
| Decision (API) | Up to 4 images and 8 questions of any type; up to 255 answers per question; realtime only |
| Decision (website) | One choice question with 2–16 answers |
| Prediction/draft assets | 24 hours; active submitted jobs retain required data |
| Training assets | 30 days after the job reaches a terminal state |
| Runtime read grants | At most 10 minutes, bounded by asset and lease expiry |
| Accepted artifacts | Retained until explicit retirement |
EXIF orientation is applied before canonical RGB encoding. Metadata is removed. Truncated, animated, oversized and undecodable files fail before GPU work. Cleanup waits for outstanding upload grants and finalization leases; disabling admissions must not disable cleanup.
401 means sign in or refresh the key; 402 means add credit in Billing; 404 means the image/model is unavailable to this account or expired. Re-upload expired photos. 413 means the actual model context is too large. 422 means invalid image/question or a mismatch with the saved task. 429 means account/upload limits; 503 means unavailable runtime or capacity. No image bulk endpoint is supported.
To train a model on your photos, see Train on images.