---
title: "Create a model profile"
method: POST
path: "/api/model-profiles"
tags: ["Models"]
---

# Create a model profile

`POST /api/model-profiles`

## Request

- Base URL: `http://localhost:3013`
- URL: `http://localhost:3013/api/model-profiles`
- Auth: HTTP bearer

A profile runs on one harness. `model` must run on that harness and be in the model catalog unless `allowCustomModel` is true (a gateway id, a fresh launch); a `latest:` alias is accepted and resolves at claim. `effort` must be a level the harness and model support. Operator only (the shared API key).

## Request body

- object
  - `name` string, required
  - `harness` 'claude' | 'codex' | 'pi' | 'devin' | 'claude-managed' | 'opencode' | 'acp' | 'dsh' | 'amp' | 'cursor' | 'grok' | 'fx', required
  - `model` string, required
  - `effort` 'off' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'null', nullable
  - `allowCustomModel` boolean
  - `description` string, nullable

## Response `201`

Profile created

- object
  - `id` string, required
  - `name` string, required
  - `harness` 'claude' | 'codex' | 'pi' | 'devin' | 'claude-managed' | 'opencode' | 'acp' | 'dsh' | 'amp' | 'cursor' | 'grok' | 'fx', required
  - `model` string, required
  - `effort` 'off' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'null', nullable, required
  - `allowCustomModel` boolean, required
  - `description` string, nullable, required
  - `seededFrom` string, nullable, required
  - `createdAt` string, required
  - `lastUpdatedAt` string, required

## Other responses

- `400`: Validation error
- `403`: Forbidden
- `409`: A profile with that name exists

## Changes

- **2026-10-29** `305e33634408`: 1 warning, 1 info
  - added the new `fx` enum value to the `harness` response property for the response status `201`
  - added the new `fx` enum value to the request property `harness`
- **2026-10-16** `cccec5621359`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/model-profiles/post.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) - [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/7e4c7198192a?raw)
