Dedicated Deployments
Roboflow で専用サーバー上にビジョンモデルを実行
概要
専用デプロイメントは、Roboflow が管理するプライベートクラウドサーバーで、あなた専用に割り当てられたリソース上でコンピュータービジョンモデルと Workflows を実行します。独自のインフラを用意したり運用したりすることなく推論を提供でき、時間課金で、ワークスペースの API キーを通じて安全にアクセスできます。開発、テスト、または本番トラフィック向けに、一貫した専用のパフォーマンスが必要な場合に使用してください。
Dedicated Deploymentsとは?
専用デプロイメントは、Roboflow が管理するプライベートクラウドサーバーで、コンピュータービジョンモデルを実行するよう特別に設計されています。これらのモデルには次のものが含まれます:
物体検出
画像セグメンテーション
分類
キーポイント検出
Roboflow で学習した場合の CLIP などの基盤モデル
Roboflow Workflows(ローコードのビジョンアプリケーション)
...その他多数!
専用デプロイメントの利点
マシンビジョンのビジネス課題に集中し、インフラは私たちに任せてください: クラウドプロバイダーへの登録、サーバーのインストールと保護、TLS 証明書の管理、サーバー管理やパッチ適用、更新などを気にすることなく、数回のクリックで推論サービング用のインフラを立ち上げられます。
専用リソース: あなた専用に割り当てられたクラウドサーバーを利用し、モデルの一貫したパフォーマンスを確保します。
安全なアクセス: 専用デプロイメントにはワークスペース固有の API キーでアクセスでき、HTTPS による安全な通信を利用します。
簡単な統合: 各デプロイメントには
roboflow.cloud内のサブドメインが割り当てられるため、アプリケーションとの統合が簡単になります。時間課金: 課金されるのはサーバーが存在している期間のみです(1分単位で請求されます)。
自動一時停止と再開: 専用デプロイメントは、設定可能な非アクティブ期間の後に自動的に一時停止します。
dev-cpuまたはdev-gpuのデプロイメントタイプでは、この期間は 1 時間に固定されています。API キーを付けてリクエストを送ると、すばやく再開できます。この機能はコスト削減を支援するためのものです。
API キー
専用デプロイメントは、それを作成したワークスペースの API キー上で実行されます。そのキーをロールすると、Roboflow はデプロイメントを新しいキーへ移し、実行を継続します。移動に失敗した場合は古いキーが有効なままなので、デプロイメントは引き続きトラフィックを処理でき、ロールを再試行できます。
専用デプロイメントを支えているキーが無効になっているか、またはその 請求フォルダ が一時停止中の間は、そのキーをロールできません。キーを有効にするか、フォルダを再開してからロールしてください。
現在の制限事項
すべての専用デプロイメントは現在、米国ベースのデータセンターでホストされています。その他の地域のユーザーは、より高いレイテンシーを感じる場合があります。米国外にいる場合は、カスタマイズしたソリューションについてお問い合わせください。ネットワークレイテンシーを低減するお手伝いができます。
専用デプロイメントは Core および Enterprise プランのワークスペースで利用できます。See Roboflow のプラン.
専用デプロイメントの種類
Roboflow では dev-cpu、dev-gpu、prod-cpu、prod-gpu の 4 種類の専用デプロイメントを提供しています。dev-cpu と dev-gpu は開発およびテスト向けで、数時間後に自動的に削除されます。一方、prod-cpu と prod-gpu は永続的で、大規模な本番トラフィックの処理に最適です。
dev-cpu
一時的: 3 時間後に自動的に削除されます
CPU: モデル推論は CPU 上で実行できます
最適な用途 統合のテスト と 試作 アプリケーション
dev-gpu
一時的: 3 時間後に自動的に削除されます
統合のテストに最適 と 試作 アプリケーション
GPU: モデルには GPU アクセラレーションが必要です(Florence 2 など)
最適な用途 統合のテスト と 試作 アプリケーション
prod-cpu
永続的: 専用サブドメイン <some-name>.roboflow.cloud
CPU: モデル推論は CPU 上で実行できます
最適な用途 本番トラフィックの処理
prod-gpu
永続的: 専用サブドメイン <some-name>.roboflow.cloud
GPU: モデルには GPU アクセラレーションが必要です(Florence 2 など)
最適な用途 本番トラフィックの処理
請求情報
GPU デプロイメント(dev-gpu、prod-gpu)の料金は 1 credit/時間で、CPU デプロイメント(dev-cpu、prod-cpu)の料金は 0.25 credit/時間.
専用デプロイメントサーバーへの送信リクエスト数に基づいて請求したい場合は、 こちらをクリックして営業にお問い合わせください.
すべての専用デプロイメントサーバーは Roboflow Inference上で実行されます。これは当社のオープンソース推論サーバーです。 Roboflow Inference のドキュメント を参照して、利用可能なすべての機能について詳しくご確認ください。
便利なリンク
HTTP API
専用デプロイメントは https://roboflow.cloud にある独自のサービスで管理されており、Platform API の https://api.roboflow.com ではありません。これらのエンドポイントを使ってデプロイメントの作成、確認、一時停止、再開、削除を行い、ログと使用状況を確認できます。デプロイメント上でモデルを実行するには、準備完了後に 専用デプロイメントにリクエストを送る.
GET リクエストではワークスペース API キーを api_key クエリパラメータに含めます。POST リクエストでは JSON 本文の api_key フィールドに含めます。 200 レスポンスには JSON 本文があります。その他のステータスには通常プレーンテキストのエラーメッセージがあるため、本文を解析する前にステータスを確認してください。
マシンタイプ一覧
Lists the machine types you can pass as machine_type when you create a deployment.
Workspace API key. POST requests send it in the api_key body field instead.
The machine types available to the workspace.
The request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
GET /machine_types HTTP/1.1
Host: roboflow.cloud
Accept: */*
{
"machine_types": [
{
"name": "dev-cpu"
},
{
"name": "dev-gpu"
},
{
"name": "prod-cpu"
},
{
"name": "prod-gpu"
}
]
}デプロイメントを作成
デプロイメントはバックグラウンドで開始されるため、レスポンスの ステータス は pending に設定されます。 デプロイメントを取得 30 秒ごとに呼び出して ステータス が readyになるまで待ち、その後その ドメイン.
Creates a Dedicated Deployment. The server starts in the background, so the response has status pending. Poll Get a deployment until status is ready.
Workspace API key. The deployment runs on, and bills to, the key that created it.
YOUR_API_KEYName for the deployment, unique in the workspace. 5 to 15 lowercase letters, numbers, and hyphens, starting with a letter.
my-deploymentPattern: ^[a-z][a-z0-9-]{4,14}$Machine type from List machine types (ex: dev-cpu, dev-gpu, prod-cpu, prod-gpu).
dev-gpuEmail of a member of the workspace. Roboflow records them as the creator.
me@company.comHours until the deployment expires. dev-cpu and dev-gpu deployments expire after 3 hours.
3Example: 3True to delete the deployment when it expires. False to pause it instead.
trueVersion of Roboflow Inference to run.
latestExample: latestFewest replicas to run. Applies to prod-cpu and prod-gpu.
1Most replicas to run. Must be at least min_replicas. Applies to prod-cpu and prod-gpu.
1Average requests per second above which Roboflow adds replicas, up to max_replicas.
4Seconds without requests before the deployment pauses, or -1 to never pause. dev-cpu and dev-gpu deployments always pause after 3600 seconds.
10800Bash script that runs as root on every container start, before inference. At most 64 KiB, with no NUL characters. Send an empty string to remove the script. Startup scripts must be turned on for your workspace.
#!/bin/bash set -e apt-get updateUser IDs of workspace members to email when the startup script fails. Defaults to the creator.
The new deployment.
Unique ID of the deployment.
Name you gave the deployment.
Machine type (ex: dev-cpu, dev-gpu, prod-cpu, prod-gpu).
Current state of the deployment.
Why a paused deployment paused. startup_script_failures means every replica failed its startup script 5 times in a row.
Subdomain of the deployment. Usually the same as deployment_name; Roboflow adds a suffix when the name is taken.
Full domain to send inference requests to.
Email of the member who created the deployment.
User ID of the member who created the deployment.
ID of the workspace that owns the deployment.
URL slug of the workspace that owns the deployment.
Version of Roboflow Inference the deployment runs.
Hours from creation until the deployment expires.
True when the deployment is deleted, not paused, when it expires.
Creation time in seconds since the Unix epoch.
Expiration time in seconds since the Unix epoch.
Fewest replicas to run.
Most replicas to run.
Replicas running now.
Average requests per second above which Roboflow adds replicas.
Seconds without requests before the deployment pauses, or -1 for never.
The saved startup script. Empty when there is none.
True when running containers use older startup settings than the saved ones. Pause and resume the deployment to apply them.
User IDs of the members emailed when the startup script fails.
The request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
POST /add HTTP/1.1
Host: roboflow.cloud
Content-Type: application/json
Accept: */*
Content-Length: 220
{
"api_key": "YOUR_API_KEY",
"deployment_name": "dev-testing",
"machine_type": "dev-gpu",
"creator_email": "me@company.com",
"duration": 3,
"delete_on_expiration": true,
"inference_version": "latest",
"min_replicas": 1,
"max_replicas": 1
}{
"deployment_id": "IwzJ5YLQ0iDhwzqoh3Ae",
"deployment_name": "dev-testing",
"machine_type": "dev-gpu",
"status": "pending",
"subdomain": "dev-testing",
"domain": "dev-testing.roboflow.cloud",
"creator_email": "me@company.com",
"creator_id": "YOUR_USER_ID",
"workspace_id": "YOUR_WORKSPACE_ID",
"workspace_url": "your-workspace",
"inference_version": "0.45.0",
"duration": 3,
"delete_on_expiration": true,
"time_creation": 1724266869.665697,
"time_expiration": 1724277669.665697,
"min_replicas": 1,
"max_replicas": 1,
"num_replicas": 0,
"startup_script": "",
"startup_script_requires_restart": false
}デプロイメントを取得
Returns one deployment, including its status and domain.
Workspace API key. POST requests send it in the api_key body field instead.
Name of the deployment.
my-deploymentThe deployment.
Unique ID of the deployment.
Name you gave the deployment.
Machine type (ex: dev-cpu, dev-gpu, prod-cpu, prod-gpu).
Current state of the deployment.
Why a paused deployment paused. startup_script_failures means every replica failed its startup script 5 times in a row.
Subdomain of the deployment. Usually the same as deployment_name; Roboflow adds a suffix when the name is taken.
Full domain to send inference requests to.
Email of the member who created the deployment.
User ID of the member who created the deployment.
ID of the workspace that owns the deployment.
URL slug of the workspace that owns the deployment.
Version of Roboflow Inference the deployment runs.
Hours from creation until the deployment expires.
True when the deployment is deleted, not paused, when it expires.
Creation time in seconds since the Unix epoch.
Expiration time in seconds since the Unix epoch.
Fewest replicas to run.
Most replicas to run.
Replicas running now.
Average requests per second above which Roboflow adds replicas.
Seconds without requests before the deployment pauses, or -1 for never.
The saved startup script. Empty when there is none.
True when running containers use older startup settings than the saved ones. Pause and resume the deployment to apply them.
User IDs of the members emailed when the startup script fails.
The request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
GET /get?deployment_name=my-deployment HTTP/1.1
Host: roboflow.cloud
Accept: */*
{
"deployment_id": "IwzJ5YLQ0iDhwzqoh3Ae",
"deployment_name": "dev-testing",
"machine_type": "dev-gpu",
"status": "pending",
"subdomain": "dev-testing",
"domain": "dev-testing.roboflow.cloud",
"creator_email": "me@company.com",
"creator_id": "YOUR_USER_ID",
"workspace_id": "YOUR_WORKSPACE_ID",
"workspace_url": "your-workspace",
"inference_version": "0.45.0",
"duration": 3,
"delete_on_expiration": true,
"time_creation": 1724266869.665697,
"time_expiration": 1724277669.665697,
"min_replicas": 1,
"max_replicas": 1,
"num_replicas": 0,
"startup_script": "",
"startup_script_requires_restart": false
}デプロイメント一覧
Lists the deployments in the workspace that owns the API key.
Workspace API key. POST requests send it in the api_key body field instead.
Set to "true" to include expired deployments.
false可能な値: Set to "true" to include deleted deployments.
false可能な値: The workspace's deployments, as a JSON array.
Unique ID of the deployment.
Name you gave the deployment.
Machine type (ex: dev-cpu, dev-gpu, prod-cpu, prod-gpu).
Current state of the deployment.
Why a paused deployment paused. startup_script_failures means every replica failed its startup script 5 times in a row.
Subdomain of the deployment. Usually the same as deployment_name; Roboflow adds a suffix when the name is taken.
Full domain to send inference requests to.
Email of the member who created the deployment.
User ID of the member who created the deployment.
ID of the workspace that owns the deployment.
URL slug of the workspace that owns the deployment.
Version of Roboflow Inference the deployment runs.
Hours from creation until the deployment expires.
True when the deployment is deleted, not paused, when it expires.
Creation time in seconds since the Unix epoch.
Expiration time in seconds since the Unix epoch.
Fewest replicas to run.
Most replicas to run.
Replicas running now.
Average requests per second above which Roboflow adds replicas.
Seconds without requests before the deployment pauses, or -1 for never.
The saved startup script. Empty when there is none.
True when running containers use older startup settings than the saved ones. Pause and resume the deployment to apply them.
User IDs of the members emailed when the startup script fails.
The request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
GET /list HTTP/1.1
Host: roboflow.cloud
Accept: */*
[
{
"deployment_id": "IwzJ5YLQ0iDhwzqoh3Ae",
"deployment_name": "dev-testing",
"machine_type": "dev-gpu",
"status": "pending",
"subdomain": "dev-testing",
"domain": "dev-testing.roboflow.cloud",
"creator_email": "me@company.com",
"creator_id": "YOUR_USER_ID",
"workspace_id": "YOUR_WORKSPACE_ID",
"workspace_url": "your-workspace",
"inference_version": "0.45.0",
"duration": 3,
"delete_on_expiration": true,
"time_creation": 1724266869.665697,
"time_expiration": 1724277669.665697,
"min_replicas": 1,
"max_replicas": 1,
"num_replicas": 0,
"startup_script": "",
"startup_script_requires_restart": false
}
]デプロイメントログを取得
Returns log entries from every replica of a deployment, newest first. Anything a startup script prints appears here. New entries can take a short time to appear.
Workspace API key. POST requests send it in the api_key body field instead.
Name of the deployment.
my-deploymentNumber of log entries to return.
50Example: 300Start of the time range, as an ISO 8601 date-time. Defaults to one hour ago.
2025-01-22T12:23:14+00:00End of the time range, as an ISO 8601 date-time. Defaults to now.
2025-01-22T13:23:14+00:00Log entries, as a JSON array.
Unique ID of the log entry.
When the entry was written.
Log level (ex: INFO, ERROR).
Log content. Usually a string.
Replica that wrote the entry.
Container that wrote the entry.
The request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
GET /get_log?deployment_name=my-deployment HTTP/1.1
Host: roboflow.cloud
Accept: */*
[
{
"insert_id": "gpwrgrw55p7b9jdq",
"payload": "INFO: 10.18.0.38:46296 - \"GET /info HTTP/1.1\" 200 OK",
"severity": "INFO",
"timestamp": "2025-01-22T13:23:14.209436+00:00"
}
]ワークスペースの使用状況を取得
Returns usage for all Dedicated Deployments in the workspace over a time range.
Workspace API key. POST requests send it in the api_key body field instead.
Start of the time range, as an ISO 8601 date-time.
2026-04-01T00:00:00ZEnd of the time range, as an ISO 8601 date-time.
2026-05-01T00:00:00ZUsage for the workspace's deployments.
Usage of Dedicated Deployments over the time range.
The request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
GET /usage_workspace HTTP/1.1
Host: roboflow.cloud
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}デプロイメントの使用状況を取得
Returns usage for one deployment over a time range.
Workspace API key. POST requests send it in the api_key body field instead.
Name of the deployment.
my-deploymentStart of the time range, as an ISO 8601 date-time.
2026-04-01T00:00:00ZEnd of the time range, as an ISO 8601 date-time.
2026-05-01T00:00:00ZUsage for the deployment.
Usage of Dedicated Deployments over the time range.
The request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
GET /usage_deployment?deployment_name=my-deployment HTTP/1.1
Host: roboflow.cloud
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}デプロイメントを一時停止
Stops the deployment's replicas until you resume it.
Workspace API key. The deployment runs on, and bills to, the key that created it.
YOUR_API_KEYName of the deployment to act on.
my-deploymentThe action is accepted.
OKThe request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
POST /pause HTTP/1.1
Host: roboflow.cloud
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"api_key": "YOUR_API_KEY",
"deployment_name": "my-deployment"
}{
"message": "OK"
}デプロイメントを再開
一時停止したデプロイメントは、API キーを付けたリクエストを受けると再開します。 起動スクリプトの失敗 の後に一時停止したデプロイメントは、このエンドポイントまたは Web アプリからのみ再開できます。
Starts a paused deployment again. A deployment paused after startup script failures resumes only through this call or the web app, not through incoming requests.
Workspace API key. The deployment runs on, and bills to, the key that created it.
YOUR_API_KEYName of the deployment to act on.
my-deploymentThe action is accepted.
OKThe deployment's API key is not active. Enable the key, or move the deployment to an active key, then try again.
The request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
POST /resume HTTP/1.1
Host: roboflow.cloud
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"api_key": "YOUR_API_KEY",
"deployment_name": "my-deployment"
}{
"message": "OK"
}デプロイメントを削除
Deletes the deployment and stops billing for it.
Workspace API key. The deployment runs on, and bills to, the key that created it.
YOUR_API_KEYName of the deployment to act on.
my-deploymentThe action is accepted.
OKThe request failed. The body is an error message, usually plain text. Some errors return a JSON object with a message or error field.
POST /delete HTTP/1.1
Host: roboflow.cloud
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"api_key": "YOUR_API_KEY",
"deployment_name": "my-deployment"
}{
"message": "OK"
}起動スクリプトを更新
既存デプロイメントの起動スクリプトを変更するには、 起動スクリプト.
Python SDK
専用デプロイメント は、予測可能なレイテンシーと高いスループットで Roboflow モデルを実行する、管理された GPU マシンです。SDK は roboflow.adapters.deploymentapi アダプターを通じてそれらを管理します - 高レベルの Workspace クラスは現在、デプロイメントメソッドを公開していません。
各関数は (status_code, body) のタプルを返すため、HTTP の結果で分岐できます:
利用可能なマシンタイプを一覧表示
デプロイメントを作成
デプロイメントは非同期でプロビジョニングされます。 get_deployment をポーリングして status == "ready".
デプロイメントの詳細を取得
一時停止 / 再開 / 削除
ログ
使用状況
専用デプロイメント上で推論を実行する
デプロイメントの準備ができたら、推論 SDK の呼び出し先をその ドメイン (返される get_deployment):
CLI
コマンドラインから 専用デプロイメント 作成、監視、管理できます。
デプロイメント一覧
マシンタイプ一覧
デプロイメントを作成
オプション
-m, --machine-type
マシンタイプ(必須)。 deployment machine-type を実行してオプションを確認
-e, --email
あなたのメールアドレス。ワークスペースのメンバーである必要があります(必須)
--duration
期間(時間)(デフォルト: 3)
--inference-version
Inference サーバーバージョン(デフォルト: latest)
--no-delete-on-expiration
期限切れ時にデプロイメントを保持
--wait
デプロイメントが準備完了になるまで待機
例:
デプロイメント詳細を取得
保留中のデプロイメントが準備完了になるまで待つ:
ログを表示
ログをリアルタイムで追跡する:
オプション
-d, --duration
ログウィンドウの秒数(デフォルト: 3600)
-n, --tail
末尾から表示する行数(最大 50、デフォルト: 10)
-f, --follow
ログ出力を追跡
使用状況統計
ワークスペース全体の使用状況を取得:
特定のデプロイメントの使用状況を取得:
オプション
--from
開始時刻(ISO 8601)
--to
終了時刻(ISO 8601)
一時停止、再開、削除
JSON 出力
すべてのデプロイメントコマンドは --json:
最終更新
役に立ちましたか?