Rensei docs
API ReferenceMarketplace

Install a provider's featured models, or up to 50 chosen ones, as org model library entries.

Install a provider's featured models, or up to 50 chosen ones, as org model library entries. - Rensei REST API operation reference.

POST
/api/marketplace/models/install-batch

Authorization

headerAuthorizationBearer <WorkOS user access token>

WorkOS user access token created by the Rensei CLI. The authenticated organization is resolved from membership and may be narrowed with X-Rensei-Org.

Request Body

application/json
  1. body
provider*string

The catalog provider whose models are installed, such as vercel-gateway. Every chosen id must be a model of this provider.

Length1 <= length <= 100
selection*|

Which models to install. There is no unbounded selection.

projectId?string

Project install: new entries select exactly this project; an existing entry gains only this project.

Length1 <= length <= 200

Response Body

A result for every entry. Entries are independent: one that is unavailable or failed does not affect the others.

application/json
  1. response
bulkOperationId*string

Shared by the audit events this request wrote, one per entry it created.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
provider*string
items*array<>
counts*
Example Request
curl -X POST 'https://app.rensei.ai/api/marketplace/models/install-batch' \  -H 'Content-Type: application/json' \  -d '{  "provider": "string",  "selection": {    "kind": "featured"  }}'
Example Response
{  "bulkOperationId": "6b3f29e8-b5ae-457b-aedb-2b0e4d8fe306",  "provider": "string",  "items": [    {      "catalogId": "string",      "modelIdentityId": "string",      "displayName": "string",      "status": "installed",      "entryId": "string",      "code": "string",      "message": "string"    }  ],  "counts": {    "installed": -9007199254740991,    "already_installed": -9007199254740991,    "unavailable": -9007199254740991,    "failed": -9007199254740991  }}