v34

latestOpenAPI 3.1.0Apache-2.0raw.githubusercontent.com2026-08-0332109227.7 KB
inference

Cohere v1-compatible text-only subset over SIE's native score primitive. Supported request fields are model, query, string documents, top_n, return_documents, and the documented SIE options extension. Unknown or unsupported fields reject with 400. The adapter rejects partial native results and forwards only authoritative worker-emitted usage.

post/v1/rerank

Headers

X-SIE-MACHINE-PROFILEstring nullable

Preferred GPU or machine profile

X-SIE-Poolstring nullable

Explicit pool routing override

X-SIE-SDK-Versionstring nullable

Client SDK version for skew warnings

Request body

documentsstring[] required

One to 1,000 nonblank text candidates. Execution is internally batched within the selected model profile's max_batch_tokens limit.

modelstring required

SIE model id. Blank or whitespace-only values are rejected.

querystring required

Text query. Blank or whitespace-only values are rejected.

return_documentsboolean nullable
top_ninteger nullable

Response

Cohere v1-compatible subset response

modelstring required