Skip to main content
Send an image with a natural-language instruction to describe a scene, answer a question, or read visible text. Be specific about the region and the output you need. For OCR, ask the model to preserve reading order and mark unreadable text instead of guessing. The quickstart shows a complete image question. You can use the same request with prompts such as: For comparisons and demonstrations with reference images, see multiple assets. For machine-readable extracted fields, use structured outputs.

Explore image tasks

The shared Detect API provides a separate detection endpoint with pixel-coordinate results. The task guides above use Mk1.5 chat completions.

Locate objects

Install perceptron>=0.4.0 and set PERCEPTRON_API_KEY. Choose vision_config.annotation_format to request points, boxes, or polygons. This example requests boxes around people:
The answer is markup in message.content, not a separate JSON array of detections. A box uses <point_box> with top-left and bottom-right coordinates on a normalized 0–1000 grid. See the annotation reference before rendering the response.

Inspect details with tools

If a task needs another image, a crop, or information from an external system, your application can provide a function for that operation. The model requests the function; your code validates and executes it, then returns the result. See building tool agents for returning image results and mapping crop coordinates back to the original image.