---
title: "Sync Models From Api"
method: POST
path: "/admin/models/sync"
tags: ["admin"]
---

# Sync Models From Api

`POST /admin/models/sync`

Sync models from MegaNova API to database.

- If modality is provided, only syncs that modality
- If not provided, syncs all modalities (text_generation, text_to_image, text_to_video)
- Preserves existing is_active status for existing models
- New models are active by default

Requires EDIT_SETTINGS permission.

## Query parameters

- `modality` string, nullable — Sync specific modality or all if not provided

## Response `200`

Successful Response

- AIModelSyncResponse
  - `synced_count` integer, required
  - `new_models` string[], required
  - `updated_models` string[], required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
