For the complete documentation index, see llms.txt. This page is also available as Markdown.

モデル ID

モデル ID の構成と、従来の project/version ID がモデルに解決される仕組み。

トレーニング済みの各モデルには、デプロイ、推論の実行、またはワークフローのモデルブロックでの選択時に識別するためのモデルIDがあります。このページでは、モデルIDの現在の構造と、以前の(レガシー)ID形式が一部の状況で引き続きサポートされる仕組みについて説明します。

モデルIDの構造

モデルIDは次の形式です {workspace}/{model-slug}。最初の部分はワークスペースのURLスラッグです。2番目の部分であるモデルスラッグは、ワークスペース内のモデルを識別し、ハイフンで結合された4つの部分から構成されます:

{project}-{version}-{architecture}-t{n}
  • project: モデルが属するプロジェクトのURLスラッグ。例: construction-safety-xpv3w.

  • version: モデルのトレーニングに使用されたデータセットバージョンの番号。例: 12.

  • architecture: トレーニングに使用したモデルアーキテクチャ。例: rfdetr-small.

  • t{n}: バージョンのトレーニングカウンター。そのバージョンで最初に開始されたトレーニングはt1、2回目はt2、以降も同様です。

たとえば、URLスラッグが次のプロジェクトのバージョン3で実行された2回目のRF-DETR Smallトレーニングは、 construction-safety-xpv3w 次のワークスペース内で my-workspace 次のモデルIDを生成します my-workspace/construction-safety-xpv3w-3-rfdetr-small-t2.

モデルスラッグはトレーニングの開始時に割り当てられるため、モデルのトレーニング中でも、そのモデルに付与されるIDを確認できます。トレーニングカウンターのサフィックスが再利用されることはありません。トレーニングが失敗またはキャンセルされた場合、その番号はスキップされ、同じバージョンで次に行うトレーニングには次の番号が付与されます。

A ニューラルアーキテクチャ探索 トレーニングでは、多数の候補モデルが生成されます。NAS候補モデルのIDは他のモデルIDと同様ですが、二重ハイフンと6文字のハッシュが末尾に追加されます(例: my-workspace/construction-safety-xpv3w-3-rfdetr-nas-t1--9589f2)。v2トレーニングエンドポイントでは、NASトレーニングの modelType は rfdetr-nas-parentとして報告され、各候補モデルは rfdetr-nas.

モデルIDを見つける

トレーニング済みモデルのIDは、Webアプリ、HTTP API、またはRoboflow MCP Serverで確認できます。

Webアプリ

プロジェクトのサイドバーで「Models」をクリックして、 Modelsページを開きます。各モデルには、「ID:」ラベルの横にそのIDが表示され、その隣に「Copy Model ID」ボタンがあります。同じIDとコピーボタンは、モデルの詳細ビューおよび各バージョンページのモデルテーブルにも表示されます。

HTTP API

プロジェクトのモデル一覧

プロジェクトでトレーニングされたすべてのモデルを返します。各エントリの url フィールドがモデルIDです。

List models for a project

get

Returns every trained model in a project: models trained on a dataset version and models that are not tied to one, such as Neural Architecture Search results. Requires model:infer.

認可
Authorizationstring必須

Roboflow API key or OAuth access token.

パスパラメータ
workspacestring必須

Workspace URL slug.

projectstring必須

Project URL slug.

クエリパラメータ
groupstringオプション

Neural Architecture Search run ID. Returns only the models from that run, or an empty array when none match.

Example: pVYKOWUB6AUIVJMgPc7u-410-rfdetrNasGroup
レスポンス
200

Successful response.

application/json
urlstringオプション

Model ID to use for inference.

versionstringオプション

Dataset version the model was trained on. Not set for models that are not tied to a version.

taskTypestringオプション

Task the model performs (ex: object-detection).

modelTypestringオプション

Model architecture and size (ex: rfdetr-base).

namestringオプション

Model display name.

createdstring · date-timeオプション

Creation time.

nasFamilystring · ヌル許容オプション

child for models found by Neural Architecture Search, null for the baseline. Neural Architecture Search models only.

groupstringオプション

Neural Architecture Search run ID, shared by every model from the run.

favoritedbooleanオプション

True when anyone in the workspace starred the model. Neural Architecture Search models only.

recommendedbooleanオプション

Present and true when the model is the recommended pick for at least one metric and hardware target.

get/{workspace}/{project}/models
GET /{workspace}/{project}/models HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "url": "my-project/3",
    "version": "3",
    "train": {
      "status": "finished"
    },
    "taskType": "object-detection",
    "modelType": "rfdetr-base",
    "name": "My Model",
    "created": "2026-04-01T00:00:00.000Z",
    "metrics": {
      "map50": 91,
      "precision": 88,
      "recall": 85
    }
  }
]

トレーニング一覧

1つのバージョンのトレーニングを返します。各トレーニングでは、生成されたモデルのIDが modelIdsに一覧表示されます。レガシーの単一モデルバージョンでは、トレーニングの id は次の形式です {projectId}/{version}/training/0、また modelIds には、そのバージョンの レガシーID.

List training runs

get

Lists the trainings on a dataset version, each with the IDs of the models it produced. Requires version:read.

認可
Authorizationstring必須

Roboflow API key or OAuth access token.

パスパラメータ
workspacestring必須

Workspace URL slug.

projectstring必須

Project URL slug.

versioninteger · 最小: 1必須

Dataset version number.

レスポンス
200

Successful response.

application/json
get/{workspace}/{project}/{version}/v2/trainings
GET /{workspace}/{project}/{version}/v2/trainings HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "trainings": [
    {
      "id": "0a1b2c3d4e5f67890abc",
      "versionId": "3",
      "status": "finished",
      "start": 1775001600000,
      "end": 1775005200000,
      "jobType": "fine-tune",
      "modelType": "rfdetr-small",
      "modelGroup": null,
      "modelIds": [
        "my-workspace/construction-safety-xpv3w-3-rfdetr-small-t2"
      ]
    }
  ]
}

トレーニングを取得

ステータス、メトリクス、および各モデルのIDを models[].modelIdで含む1件のトレーニングを返します。 trainingId は、そのバージョンにトレーニングが1件しかない場合は省略できます。複数ある場合、リクエストは 409.

Get a training run

get

Returns one training's status, models, and metrics. Requires version:read.

認可
Authorizationstring必須

Roboflow API key or OAuth access token.

パスパラメータ
workspacestring必須

Workspace URL slug.

projectstring必須

Project URL slug.

versioninteger · 最小: 1必須

Dataset version number.

クエリパラメータ
trainingIdstringオプション

Training to return. Leave it out when the version has only one training.

Example: 0a1b2c3d4e5f67890abc
includeEpochsbooleanオプション

Send true to add the metrics for each epoch. Not supported on legacy single-model versions.

Default: false
レスポンス
200

Successful response.

application/json
trainingIdstring · ヌル許容オプション

Training ID. A 20-character hex ID for a training on a version that can hold several. For a legacy single-model version, a path of the form {projectId}/{version}/training/0, where projectId is the project's internal ID. null when the version has no training.

versionIdstringオプション

Dataset version number.

statusstringオプション

Training status: initializing, queued, generating, training, running, mining (Neural Architecture Search is searching architectures), finished, failed, cancelled, or stopped. not_started when the version has no training.

Example: finished
exceptionstringオプション

Failure reason, up to 500 characters. Present only when the training failed.

startinteger · ヌル許容オプション

Start time in milliseconds since the Unix epoch.

endinteger · ヌル許容オプション

End time in milliseconds since the Unix epoch.

jobTypestringオプション

Kind of training: fine-tune, nas (Neural Architecture Search), fine-tune-multi-stage, external-upload, or unknown.

modelTypestringオプション

Architecture the training ran. A Neural Architecture Search training reports rfdetr-nas-parent.

externalUploadbooleanオプション

True when the model weights were uploaded instead of trained on Roboflow.

modelGroupstring · ヌル許容オプション

Neural Architecture Search run ID, shared by every model from the run. null for other trainings.

modelCountintegerオプション

Models the training produced.

get/{workspace}/{project}/{version}/v2/trainings/get
GET /{workspace}/{project}/{version}/v2/trainings/get HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "trainingId": "0a1b2c3d4e5f67890abc",
  "versionId": "3",
  "status": "finished",
  "start": 1775001600000,
  "end": 1775005200000,
  "jobType": "fine-tune",
  "modelType": "rfdetr-small",
  "modelGroup": null,
  "modelCount": 1,
  "models": [
    {
      "modelId": "my-workspace/construction-safety-xpv3w-3-rfdetr-small-t2",
      "modelType": "rfdetr-small",
      "status": "finished",
      "metrics": {
        "map50": 91.2,
        "map5095": 64.1,
        "precision": 88.4,
        "recall": 85,
        "f1": 86.7,
        "f1ConfThresh": 0.42
      }
    }
  ]
}

MCP Server

この Roboflow MCP Server は、モデルIDを返すツールを提供します。 models_list は、1つのプロジェクトのトレーニング済みモデルを一覧表示します(ワークスペースは接続の認証情報から取得され、プロジェクトは次の値として渡されます: project_id)。各モデルのIDをその url フィールドで返し、バージョンまたはNAS実行による任意のフィルタリングも可能です。 trainings_get および trainings_list は、各トレーニングで生成されたモデルのIDを返します。エージェントは、これらのIDを次のような他のツールに渡すことができます: models_infer.

レガシーモデルID

以前は、Roboflowのデータセットバージョンでは実行できるトレーニングが1件だけだったため、モデルは次の形式のIDによって一意に決定されていました {project}/{version}.

たとえば、 construction-site-safety/3 は以前、 その プロジェクトのバージョン3でトレーニングされたモデルを指していました。最初の部分はワークスペースではなくプロジェクトのURLスラッグで、2番目の部分はバージョン番号です。これは、古いSDK、コードスニペット、Inferenceインストールで使用される形式です(例: model_id="construction-site-safety/3").

現在は、 複数のトレーニング をデータセットバージョンで実行できるため、これらのレガシー形式のIDは推奨されなくなりました。2026年6月30日以降に開始された新しいトレーニングにこのようなIDを使用しようとすると、内部的に新形式のIDへ解決されます。

レガシーIDの解決方法

レガシー形式のIDはエイリアスを通じて引き続き機能します。あるバージョンで最初に開始されたトレーニングが正常に完了すると、Roboflowはそのバージョンのレガシー {project}/{version} IDを新しいモデルIDにリンクします。古いInferenceインストールからの重みダウンロードを含め、レガシーIDを使用するリクエストは自動的にそのモデルへ解決されます。

エイリアスは、バージョンで 最初の トレーニングによってのみ作成され、その後は変更されません:

  • 最初のトレーニングが正常に完了した場合、同じバージョンでさらにモデルをトレーニングした後も、レガシーIDは永続的にそのモデルを指します。後続のモデルは、それぞれ固有のモデルIDで参照してください。

  • 最初のトレーニングが失敗またはキャンセルされた場合、エイリアスは作成されず、そのバージョンで後から行われるトレーニングでも作成されません。

エイリアスのないバージョンでも、モデルをちょうど1つだけ保持している限り、そのレガシーIDで参照できます。複数のモデルを保持していてエイリアスがない場合、参照が曖昧になるためレガシーIDを使用したリクエストは失敗し、モデル固有のIDを使用する必要があります。

レガシーIDは後方互換性のために存在します。新しい統合では完全なモデルIDを優先してください。完全なモデルIDは曖昧さがなく、バージョン上のすべてのモデルで機能します。

最終更新

役に立ちましたか?