---
title: "Model"
method: POST
path: "/lens/worker/{lens_id}/{job_id}/model"
tags: ["Lens"]
---

# Model

`POST /lens/worker/{lens_id}/{job_id}/model`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/lens/worker/{lens_id}/{job_id}/model`
- Auth: HTTP bearer

## Path parameters

- `lens_id` string, required
- `job_id` string, required

## Headers

- `X-LiteLLM-Lens-Attempt` integer

## Request body

- ModelRequest
  - `prompt` string, required
  - `purpose` 'extract' | 'cluster' | 'investigate', required
  - `messages` ModelMessage[]
    - `role` 'system' | 'user' | 'assistant', required
    - `content` string, required

## Response `200`

Successful Response

- ModelResult
  - `content` string, required
  - `cost` number, required
  - `context_exceeded` boolean

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/lens/worker/:lens_id/:job_id/model/post.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/1ba9123c189a?raw)
