Skip to main content
POST
Create multilook chat completions (Mk1)

Overview

A multilook request carries a shared context and up to 16 prompts. The context uses the same message format as /v1/chat/completions, including media parts (image_url, video_url, video_frames, image_file_id, video_file_id). The context is prefilled once per call and reused across all prompts; each prompt extends it independently and produces n completions. Prompts are isolated from one another: no prompt observes another prompt’s text or completions. This page shows the fields Perceptron Mk1 uses. The full gateway request schema is in the Perceptron Mk1.5 reference. Reused prefill is reported in usage.prompt_tokens_details.cached_tokens and billed at the cache-read rate. The Multilook guide covers when to use it, how billing works, and Python client code.

Request

temperature defaults to 0.0, so set it explicitly whenever n > 1. stream, response_format, and stop are not supported on this endpoint.

Structured prompts

A prompt can be a bare string or an object carrying content parts, so individual prompts can bring their own media alongside the shared context:
Media parts inside a prompts entry sit outside the shared prefix: they are fetched, preprocessed, and prefilled per prompt, and are not reported in cached_tokens. Media intended for reuse across prompts belongs in context. See Per-prompt media in the guide for a full example.

Response

One entry per prompt, in request order:
A prompt that fails returns an error object in place of its completions; other prompts are unaffected. The call returns 200 if at least one prompt succeeded; if all prompts fail, the whole request returns the first error’s status. See Handling partial failures for an example and client code. cached_tokens is the subset of prompt_tokens served from the in-request prefill. Reuse is scoped to the call: a subsequent identical call reports cached_tokens: 0. Billing rates and a worked example are in the guide’s Billing section.

Limits

Need higher limits? Contact support@perceptron.inc.