# REST API を使う — Full documentation > ja/rest-api published documentation. Index: https://orchestor.io/ja/docs/rest-api/llms.txt --- Source: https://orchestor.io/ja/docs/rest-api --- title: REST API を使う description: Orchestor REST API の認証、リクエスト形式、ページネーション、レート制限を確認します。 canonical_url: https://orchestor.io/ja/docs/rest-api markdown_url: https://orchestor.io/ja/docs/rest-api.md related: - https://orchestor.io/ja/docs/cli/api-keys - https://orchestor.io/ja/docs/authentication - https://orchestor.io/ja/docs/concepts/idempotency - https://orchestor.io/ja/docs/quickstart - https://orchestor.io/ja/docs/concepts/requests contentType: reference --- # REST API を使う Orchestor REST API を使うと、利用できるモデルを調べ、画像や動画の生成を依頼し、ジョブの進行状況や結果を取得できます。 サーバー側の HTTP クライアントであれば、言語を問わず接続できます。このページの例では `curl` を使います。 ## API の基本 Orchestor API の公開エンドポイントは `https://api.orchestor.io/v1/...` にあります。`https://api.orchestor.io` にリファレンスのパスを続け、指定された HTTP メソッドで呼び出します。 通信には HTTPS を使います。モデル一覧やジョブ一覧の成功レスポンスは、結果を `{"data": …}` の形式で返します。問い合わせや調査では、レスポンスヘッダーの `x-request-id` を記録してください。 ## 非推奨のパス 旧パス `/v1/creative/*` は引き続き使えます。レスポンスには `Deprecation` ヘッダーと、移行先を `rel="successor-version"` で示す `Link` ヘッダーが付きます。移行するにはパスから `/creative` を削除してください。次の 3 つは表の移行先を使ってください。 | 旧パス | 移行先 | | --- | --- | | `GET /v1/creative/usage` | `GET /v1/usage/credits` | | `GET /v1/creative/open/balance` | `GET /v1/balance` | | `GET /v1/creative/workspaces` | `GET /v1/me/workspaces` | ## 認証 API キーを `Authorization` ヘッダーに入れて送信します。 ``` Authorization: Bearer ``` `x-api-key: ` も使えます。両方のヘッダーを送ると `401 Unauthorized` が返ります。 [Orchestor Platform の API キー画面](https://platform.orchestor.io/api-keys)でキーを作成するか、[`orc api-keys create`](https://orchestor.io/ja/docs/cli/api-keys.md) を使います。キーはサーバー側で管理し、ブラウザーやモバイルアプリに埋め込まないでください。保管方法は[認証ガイド](https://orchestor.io/ja/docs/authentication.md)を参照してください。 ## ワークスペースの指定 ワークスペースに紐づく API キーを使うと、そのワークスペースのリソースが対象になります。`X-Workspace-ID` は省略できます。指定する場合は、キーに紐づくワークスペースの ID を送ります。 ``` X-Workspace-ID: ``` 異なる ID を指定すると `403 Forbidden` と `workspace_mismatch` が返ります。別のワークスペースにアクセスするには、そのワークスペースのキーを使ってください。 ## リクエストとレスポンス `ORCHESTOR_API_KEY` を設定した環境で、利用できる画像モデルを取得します。 ```bash curl 'https://api.orchestor.io/v1/image-router/models' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` `200 OK` のレスポンスには `data.models` が含まれます。次の例は 1 件分の抜粋です。 ```json { "data": { "models": [ { "id": "gpt-image-2" } ] } } ``` JSON 本文を送るときは `Content-Type: application/json` を指定します。生成の `POST` には `Idempotency-Key` を付け、同じ生成を再試行するときは同じキーと入力を使います。再送時の挙動は[冪等なリクエスト](https://orchestor.io/ja/docs/concepts/idempotency.md)で確認できます。 送信から結果の取得までの手順は[クイックスタート](https://orchestor.io/ja/docs/quickstart.md)を参照してください。非同期ジョブの状態や結果の形式は[リクエストとライフサイクル](https://orchestor.io/ja/docs/concepts/requests.md)で確認できます。 ## ページネーション ジョブ一覧は新しい順に返ります。`limit` で 1 ページあたりの件数を 1〜100 件に指定できます。既定値は 20 件です。 ```bash curl 'https://api.orchestor.io/v1/jobs?limit=2' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ジョブは `data.jobs` に入ります。`data.next_cursor` があれば、その値を次のリクエストの `starting_after` クエリパラメーターに渡します。`data.next_cursor` がなければ最終ページです。 ## レート制限 API キーのリクエスト頻度は 60 秒の枠で制限されます。レスポンスの `x-ratelimit-limit` は適用される上限、`x-ratelimit-remaining` は残りのリクエスト数、`x-ratelimit-reset` はリセット時刻を Unix 秒で示します。 リクエスト頻度の上限を超えると `429 Too Many Requests` が返ります。`Retry-After` が示す秒数だけ待ってから再試行してください。生成の同時実行数と待機キューの上限は[レート制限ガイド](https://orchestor.io/ja/docs/concepts/rate-limits.md)を参照してください。 ## エラー HTTP エラーの JSON 本文には `error` オブジェクトが含まれます。認証情報がない場合の `401` レスポンスの例です。 ```json { "error": { "type": "authentication_error", "code": "auth_required", "message": "Authentication is required. Provide a session cookie or Bearer API key.", "doc_url": "https://docs.orchestor.io/errors/auth_required" } } ``` HTTP ステータスと `error.code` で処理を分岐し、詳細は `error.message` で確認します。 - `400` の `invalid_request_error` と `invalid_request` は、入力が不正なときに返ります。 - `403` の `permission_error` と `workspace_mismatch` は、API キーに紐づくワークスペースと指定した ID が異なるときに返ります。 - `404` の `not_found_error` と `not_found` は、存在しないルートを呼び出したときに返ります。 - `429` の `rate_limit_error` と `rate_limit_exceeded` は、リクエスト頻度の上限を超えたときに返ります。 再試行の判断や受付後のジョブの失敗については[エラーと再試行](https://orchestor.io/ja/docs/errors.md)を参照してください。 ## CLI・MCP・OpenAPI ターミナルからは [Orchestor CLI](https://orchestor.io/ja/docs/cli.md)、対応する AI クライアントからは [Orchestor MCP](https://orchestor.io/ja/docs/mcp.md) を使えます。Orchestor API の公開定義は [OpenAPI JSON](https://www.orchestor.io/openapi/spec3.json) で取得できます。 ## エンドポイント カテゴリを選ぶと、公開リファレンスにあるそのカテゴリの最初のエンドポイントが開きます。 - **[モデル](https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-image-models.md)** 9 件 - **[生成](https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/get-list-text-models.md)** 10 件 - **[ジョブ](https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-list-jobs.md)** 8 件 - **[ファイル](https://orchestor.io/ja/docs/rest-api/endpoint-reference/files/post-create-upload-url.md)** 1 件 - **[Webhook](https://orchestor.io/ja/docs/rest-api/endpoint-reference/webhooks/get-get-webhook-signing-secret.md)** 2 件 --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/getting-started --- title: 最初の API リクエストを送る description: curl と Orchestor CLI で画像モデルの一覧を取得します。 canonical_url: https://orchestor.io/ja/docs/rest-api/getting-started markdown_url: https://orchestor.io/ja/docs/rest-api/getting-started.md related: - https://orchestor.io/ja/docs/cli - https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-image-models - https://orchestor.io/ja/docs/cli/installation - https://orchestor.io/ja/docs/errors - https://orchestor.io/ja/docs/concepts/rate-limits contentType: guide --- # 最初の API リクエストを送る データの変更や残高の消費なしで Orchestor API から画像モデル一覧を curl で取得し、続けて CLI でも同じリクエストを送ります。 ## 用意するもの - API キーを作成できる Orchestor ワークスペース - Bash または Zsh と、`--fail-with-body` に対応する curl 7.76.0 以降 ## REST と CLI の使い分け | 方法 | 使う場面 | | --- | --- | | REST API(curl) | HTTP リクエストを直接送り、ステータスとレスポンス本文を確認する。 | | [Orchestor CLI](https://orchestor.io/ja/docs/cli.md) | ターミナルやシェルスクリプトからコマンドで同じ操作を行う。 | ## ワークスペース用の API キーを作る > **API キーは秘密情報です** > > キーはサーバー側で管理し、ブラウザー向けのコード、ログ、ソース管理への混入を防いでください。 1. **API キーの作成画面を開く** 使うワークスペースを選び、[API キー](https://platform.orchestor.io/api-keys)で新しいシークレットキーの作成画面を開きます。名前に `first-api-request` などを入力します。 2. **適用範囲と権限を選ぶ** 適用範囲は「現在の Workspace」、キーの種別は「読み取り専用」を選び、キーを作成します。 3. **キーをシェルに読み込む** 次のコマンドを実行し、作成時に表示されたキーを貼り付けて Enter を押します。入力は画面に表示されません。 ```bash title="terminal" read -rs ORCHESTOR_API_KEY && export ORCHESTOR_API_KEY ``` ## curl でリクエストを送る 同じシェルで画像モデルの一覧を取得します。curl は HTTP ステータスを表示し、レスポンス本文を `image-models.json`、ヘッダーを `image-models.headers` に保存します。 ```bash title="terminal" curl --fail-with-body --silent --show-error \ --output image-models.json \ --dump-header image-models.headers \ --write-out "HTTP %{http_code}\n" \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ https://api.orchestor.io/v1/image-router/models ``` 成功すると、次のステータスが表示されます。 ```text title="terminal" HTTP 200 ``` ファイルの `data.models` に、モデル ID、名前、対応機能、料金情報が入ります。各フィールドは [画像モデル一覧のレスポンス](https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-image-models.md)で確認できます。 ## CLI で同じリクエストを送る 1. **Orchestor CLI をインストールする** macOS または Linux では次のコマンドを実行します。Windows での手順は [CLI のインストール](https://orchestor.io/ja/docs/cli/installation.md)を参照してください。 ```bash title="terminal" curl -fsSL https://orchestor.io/install | sh ``` 2. **画像モデルの一覧を表示する** `ORCHESTOR_API_KEY` を設定したシェルで実行します。CLI は同じキーを使い、画像モデルの一覧を JSON で表示します。 ```bash title="terminal" orc image models list --json ``` ## API キーの適用範囲 | 項目 | このガイドで作成したキー | | --- | --- | | ワークスペース | 作成時に選んだワークスペースに紐づきます。 | | 権限 | 公開 API の読み取りに使えます。画像の生成には書き込み権限が必要です。 | | `X-Workspace-ID` | このリクエストでは省略できます。指定する場合はキーのワークスペース ID と一致させます。 | ## 401、403、429 が返ったとき curl が保存したレスポンス本文の `error.code` を確認します。 | ステータス | 原因 | 確認すること | | --- | --- | --- | | `401` | キーが無効または未指定です(`auth_required`)。認証ヘッダーの併用でも発生します。 | `ORCHESTOR_API_KEY` を確認し、`Authorization: Bearer` または `x-api-key` のどちらか一方を送ります。 | | `403` | `workspace_mismatch`。指定したワークスペースがキーの適用範囲と一致しません。 | `X-Workspace-ID` を外すか、対象ワークスペースのキーを使います。 | | `429` | `rate_limit_exceeded`。API キーのリクエスト上限に達しました。 | `Retry-After` に示された秒数を待ってから再試行します。 | ほかのエラーと再試行の条件は [エラーと再試行](https://orchestor.io/ja/docs/errors.md)と [レート制限](https://orchestor.io/ja/docs/concepts/rate-limits.md)を参照してください。 ## 画像生成リクエストの形式 画像の生成には書き込み権限のある API キーが必要で、ワークスペースの残高を消費します。次は非同期の生成リクエストの形式です。 ```http title="terminal" POST /v1/image-router/generate Authorization: Bearer Content-Type: application/json Idempotency-Key: {"model":"gpt-image-2","prompt":"朝の光が差す机の上の陶器","mode":"async"} ``` 受付レスポンスから `data.job.id`、`data.status_url`、`data.result_url` を取得します。`GET /v1/jobs/{id}/status` を指定された間隔で取得し、`COMPLETED` かつ `result_ready` が `true` なら `GET /v1/jobs/{id}/result` で結果を取得します。失敗や取り消しの状態でもポーリングを終了します。 生成から結果取得までの手順は [クイックスタート](https://orchestor.io/ja/docs/quickstart.md)を参照してください。再送と完了確認の設定は [冪等性キー](https://orchestor.io/ja/docs/concepts/idempotency.md)、[ポーリング](https://orchestor.io/ja/docs/concepts/polling.md)、[Webhook の設定](https://orchestor.io/ja/docs/webhooks.md)で確認できます。 ## このガイドで確認したこと ワークスペースに紐づく読み取り専用キーで、curl と CLI のどちらからも画像モデルの一覧を取得できます。生成に進むときは、一覧のモデル ID と対応機能を使ってリクエストを組み立てます。 ## リファレンスを読む - [REST API の概要](https://orchestor.io/ja/docs/rest-api.md) - [ジョブの状態を取得](https://orchestor.io/ja/docs/rest-api/requests/get-request-status.md) - [Orchestor MCP](https://orchestor.io/ja/docs/mcp.md) --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/headers --- title: ヘッダー description: 画像・動画の生成とジョブ管理で使用するヘッダーとクエリパラメーターです。 canonical_url: https://orchestor.io/ja/docs/rest-api/headers markdown_url: https://orchestor.io/ja/docs/rest-api/headers.md related: - https://orchestor.io/ja/docs/authentication - https://orchestor.io/ja/docs/concepts/idempotency - https://orchestor.io/ja/docs/webhooks - https://orchestor.io/ja/docs/help/support - https://orchestor.io/ja/docs/concepts/rate-limits contentType: reference --- # ヘッダー ## リクエストヘッダー | ヘッダー | 必須 | 対象 | 説明 | | --- | --- | --- | --- | | `Authorization` | はい | 各 API | `Bearer YOUR_API_KEY`。[認証](https://orchestor.io/ja/docs/authentication.md)を参照してください。 | | `Content-Type` | 本文がある場合 | JSON 本文を送る API | `application/json`。 | | `Idempotency-Key` | いいえ | 生成要求 | 1〜255文字の印字可能 ASCII。UUID を推奨します。同じキーと入力の再送は、元のジョブに結び付きます。[冪等性キー](https://orchestor.io/ja/docs/concepts/idempotency.md)を参照してください。 | `x-api-key` でも認証できます。`Authorization` と同時に指定せず、どちらか一方を使用してください。 ## クエリパラメーター | パラメーター | 対象 | 説明 | | --- | --- | --- | | `limit` | ジョブ一覧・イベント取得 | 1ページで返す件数。操作ごとの上限を確認してください。 | | `type` | ジョブ一覧 | 生成ジョブの種類で絞り込みます。 | | `status` | ジョブ一覧 | ジョブの処理状態で絞り込みます。 | | `starting_after` | ジョブ一覧 | 前の応答の `next_cursor`。先頭ページでは省略します。 | Webhook の通知先はクエリではなく、生成要求の JSON 本文の `webhook_url` に指定します。`mode: "webhook"` と組み合わせてください。[Webhook](https://orchestor.io/ja/docs/webhooks.md)で送信例を確認できます。 ## レスポンスヘッダー | ヘッダー | 対象 | 説明 | | --- | --- | --- | | `x-orchestor-request-id` | API 応答 | HTTP 要求の相関 ID。生成ジョブの ID と分けて記録し、[問い合わせ](https://orchestor.io/ja/docs/help/support.md)に添えます。 | | `ratelimit-limit` | レート制限情報を含む応答 | 現在の期間に許可される要求数。 | | `ratelimit-remaining` | レート制限情報を含む応答 | 現在の期間に残っている要求数。 | | `ratelimit-reset` | レート制限情報を含む応答 | 制限がリセットされるまでの秒数。 | | `retry-after` | 再試行の待機時間を含む応答 | 次の試行まで待つ秒数。[レート制限](https://orchestor.io/ja/docs/concepts/rate-limits.md)を参照してください。 | | `x-orchestor-poll-after` | ジョブ状態取得の応答 | 次の状態取得まで待つ秒数。 | ## Webhook 配信ヘッダー Orchestor から受信先へ送る[Webhook](https://orchestor.io/ja/docs/webhooks.md)に付与します。 | ヘッダー | 説明 | | --- | --- | | `x-orchestor-webhook-timestamp` | 署名に使用した Unix 時刻(秒)。現在時刻との差が300秒以内か確認します。 | | `x-orchestor-webhook-signature` | `orchestor-v1=` に続く HMAC-SHA256 の16進数。複数署名はカンマ区切りです。 | | `x-orchestor-webhook-secret-fingerprint` | 署名シークレットの世代を識別する指紋。秘密値ではありません。 | 署名対象は `.` です。本文を再シリアライズせず、受信時のバイト列を検証します。重複処理の防止には、検証済み本文の `job_id` を使用してください。 ## 関連ページ - [認証](https://orchestor.io/ja/docs/authentication.md) - [よくある質問](https://orchestor.io/ja/docs/help/faq.md) - [ファイルのアップロード](https://orchestor.io/ja/docs/uploads.md) - [料金とデータ保持](https://orchestor.io/ja/docs/concepts/billing-and-retention.md) - [Webhook](https://orchestor.io/ja/docs/webhooks.md) --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/requests/get-request-status --- title: ジョブの状態を取得 description: 生成ジョブの進行状況と、結果を取得できるかどうかを確認します。 canonical_url: https://orchestor.io/ja/docs/rest-api/requests/get-request-status markdown_url: https://orchestor.io/ja/docs/rest-api/requests/get-request-status.md related: - https://orchestor.io/ja/docs/rest-api - https://orchestor.io/ja/docs/concepts/requests - https://orchestor.io/ja/docs/quickstart - https://orchestor.io/ja/docs/how-to/introduction - https://orchestor.io/ja/docs/concepts/idempotency contentType: reference --- # ジョブの状態を取得 生成ジョブの進行状況と、結果を取得できるかどうかを確認します。 ## 認証 - `Authorization` (string, required): Bearer YOUR_API_KEY を指定します。x-api-key による認証も使用できますが、両方を同時には送信しません。キーはサーバー側で保管してください。 `Bearer YOUR_API_KEY` を指定します。`x-api-key` による認証も使用できますが、両方を同時には送信しません。キーはサーバー側で保管してください。 ## パスパラメーター - `id` (string, required): 生成時に受け取ったジョブ ID。同じワークスペースのジョブを指定します。例:job_7513b52d-3669-4ffe-b317-8b02000715eb。 生成時に受け取ったジョブ ID。同じワークスペースのジョブを指定します。例:`job_7513b52d-3669-4ffe-b317-8b02000715eb`。 ## レスポンス その他の応答は `400`、`403`、`429`、`500`、`502`、`503` です。`429` は `retry-after` に従って再試行してください。 `terminal` が true でも、成功とは限りません。`result_ready` が true のとき、`result_url` から成果物を取得します。 ## 関連ページ - [API リファレンス](https://orchestor.io/ja/docs/rest-api.md) - [リクエストとライフサイクル](https://orchestor.io/ja/docs/concepts/requests.md) - [クイックスタート](https://orchestor.io/ja/docs/quickstart.md) - [API の仕組み](https://orchestor.io/ja/docs/how-to/introduction.md) - [冪等なリクエスト](https://orchestor.io/ja/docs/concepts/idempotency.md) --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/requests/cancel-a-queued-request --- title: 待機中のジョブを取り消す description: 生成開始前のジョブを取り消します。成功時は取消結果と更新済みのジョブを返します。 canonical_url: https://orchestor.io/ja/docs/rest-api/requests/cancel-a-queued-request markdown_url: https://orchestor.io/ja/docs/rest-api/requests/cancel-a-queued-request.md related: - https://orchestor.io/ja/docs/rest-api - https://orchestor.io/ja/docs/concepts/requests - https://orchestor.io/ja/docs/concepts/billing-and-retention - https://orchestor.io/ja/docs/rest-api/requests/get-request-status contentType: reference --- # 待機中のジョブを取り消す 生成開始前のジョブを取り消します。成功時は取消結果と更新済みのジョブを返します。 ## 認証 - `Authorization` (string, required): Bearer YOUR_API_KEY を指定します。x-api-key による認証も使用できますが、両方を同時には送信しません。キーはサーバー側で保管してください。 `Bearer YOUR_API_KEY` を指定します。`x-api-key` による認証も使用できますが、両方を同時には送信しません。キーはサーバー側で保管してください。 ## パスパラメーター - `id` (string, required): 生成時に受け取ったジョブ ID。同じワークスペースのジョブを指定します。例:job_7513b52d-3669-4ffe-b317-8b02000715eb。 生成時に受け取ったジョブ ID。同じワークスペースのジョブを指定します。例:`job_7513b52d-3669-4ffe-b317-8b02000715eb`。 ## レスポンス その他の応答は `400`、`403`、`429`、`500`、`502`、`503` です。`429` は `retry-after` に従って再試行してください。 要求本文は不要です。状態取得時の `cancelable` が true でも、取消までに生成が始まる場合があります。取消の応答を確認してください。 ## 関連ページ - [API リファレンス](https://orchestor.io/ja/docs/rest-api.md) - [リクエストとライフサイクル](https://orchestor.io/ja/docs/concepts/requests.md) - [料金とデータ保持](https://orchestor.io/ja/docs/concepts/billing-and-retention.md) - [ジョブの状態を取得](https://orchestor.io/ja/docs/rest-api/requests/get-request-status.md) --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/requests/delete-request-data --- title: リクエストデータの削除 description: 生成ジョブのデータ削除について確認します。 canonical_url: https://orchestor.io/ja/docs/rest-api/requests/delete-request-data markdown_url: https://orchestor.io/ja/docs/rest-api/requests/delete-request-data.md related: - https://orchestor.io/ja/docs/help/support - https://orchestor.io/ja/docs/concepts/requests - https://orchestor.io/ja/docs/concepts/billing-and-retention contentType: reference --- # リクエストデータの削除 現在、公開 API には、生成ジョブの入力・成果物・プロンプトをまとめて削除する API はありません。 > **取消と削除は別の操作です** > > 生成開始前のジョブは取り消せます。取消はジョブの実行を止める操作であり、保存済みデータや課金記録の削除ではありません。 データの削除が必要な場合は、対象のジョブ ID と削除したいデータの範囲を添えて[サポート](https://orchestor.io/ja/docs/help/support.md)へお問い合わせください。API キーや入力ファイルの機密情報は添付しないでください。請求記録を含む削除範囲と保持条件は個別に確認します。 ## 関連ページ - [リクエストとライフサイクル](https://orchestor.io/ja/docs/concepts/requests.md) - [料金とデータ保持](https://orchestor.io/ja/docs/concepts/billing-and-retention.md) - [サポート](https://orchestor.io/ja/docs/help/support.md) --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-image-models --- title: 画像モデルを一覧表示 description: 画像モデルを一覧表示。 レスポンス例の料金と利用量は形式を示すための値です。実際の値は取得したカタログを使用してください。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-image-models markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-image-models.md --- # 画像モデルを一覧表示 画像モデルを一覧表示。 レスポンス例の料金と利用量は形式を示すための値です。実際の値は取得したカタログを使用してください。 ```http GET /v1/image-router/models ``` Server: https://api.orchestor.io Operation ID: `listCreativeImageModels` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters No parameters. ## Responses ### 200 ```json { "statusCode": "200", "description": "モデルの対応入力・制約・料金を返します。生成前に、このモデルが受け付けるオプションを確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ImageRouterModelsResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "models" ], "properties": { "models": { "type": "array", "description": "利用できるモデルと各モデルの対応入力・料金。", "items": { "name": "ImageRouterCatalogItem", "type": "object", "required": [ "id", "name", "modality", "routing", "capabilities", "pricing", "constraints" ], "properties": { "estimated_generation_seconds": { "minimum": 0, "type": "integer", "description": "直近 30 日間に完了した最大 200 件のジョブについて、作成から完了までの秒数の中央値を整数に丸めた目安。一覧では対象ジョブが 3 件以上あるモデルに返します。" }, "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。", "enumValues": [ "higgsfield-soul", "soul-2.0", "gpt-image-2.5", "gpt-image-2.5-sunburst", "gpt-image-2.6", "gpt-image-2.6-sunburst", "gpt-image-2", "nano-banana-2.1", "nano-banana-2-lite", "nano-banana-2", "ideogram-vector", "ideogram-4-5-precise-edit", "seedream-5.5", "minimax-h3-image", "flux-3-image", "gpt-image-1.5", "nano-banana-pro", "seedream-5-lite", "seedream-4-5-edit", "grok-image", "seedream-v4", "flux-2-pro", "flux-2-flex", "ideogram-v3", "recraft-v4", "qwen-image-layered", "qwen-image-angles", "ideogram-v4.5", "nano-banana", "flux-kontext-max", "wan-2.2", "recraft-v4.1", "seedream-5-flash", "z-image", "flux-2-max", "kling-image-o1", "kling-image-3-omni", "seedream-5-pro", "higgsfield-soul-standard", "higgsfield-soul-cinema", "grok-imagine-2", "recraft-v4.1-utility", "kling-image-3", "higgsfield-ai-influencer", "higgsfield-ads-studio" ] }, "name": { "type": "string", "description": "選択画面などに表示する名称。" }, "modality": { "type": "string", "description": "モデルが生成するメディアの種類。", "enumValues": [ "image" ] }, "routing": { "type": "string", "description": "モデルへの入力の渡し方と呼び出し経路の情報。", "enumValues": [ "pass_through" ] }, "capabilities": { "type": "object", "description": "テキスト生成・編集・参照入力など、このモデルが対応する機能。", "required": [ "text_to_image", "image_edit", "aspect_ratios", "resolutions", "qualities", "max_images", "output_formats" ], "properties": { "text_to_image": { "type": "boolean", "description": "文章から画像を生成できるかどうか。" }, "image_edit": { "type": "boolean", "description": "入力画像を編集できるかどうか。" }, "aspect_ratios": { "type": "array", "description": "このモデルで指定できる縦横比の一覧。", "items": { "type": "string" } }, "resolutions": { "type": "array", "description": "このモデルで指定できる出力解像度の一覧。", "items": { "type": "string" } }, "qualities": { "type": "array", "description": "このモデルで指定できる品質の一覧。", "items": { "type": "string" } }, "max_reference_images": { "minimum": 1, "type": "integer", "description": "このモデルが受け付ける参照画像の最大数。" }, "max_images": { "type": "integer", "description": "一つの要求に含められる画像数の上限。" }, "output_formats": { "type": "array", "description": "このモデルで生成できるファイル形式の一覧。", "items": { "type": "string" } } }, "additionalProperties": false }, "pricing": { "type": "object", "description": "課金単位とモデルの単価。生成前の見積もりに使用します。", "required": [ "basis" ], "properties": { "basis": { "type": "string", "description": "画像数、秒数、解像度など、単価を適用する基準。", "enumValues": [ "per_image" ] }, "credits_per_image": { "minimum": 0, "type": "number", "description": "画像 1 枚あたりの消費クレジット。" }, "image_edit_options": { "type": "array", "description": "画像編集の設定ごとの消費クレジット。", "items": { "type": "object", "required": [ "credits" ], "properties": { "resolution": { "type": "string" }, "quality": { "type": "string" }, "credits": { "minimum": 0, "type": "number" } }, "additionalProperties": false } }, "credits_by_image_count": { "type": "object", "description": "出力枚数ごとの合計消費クレジット。料金は要求全体で丸められます。", "additionalProperties": { "minimum": 0, "type": "number" } }, "usd_per_image": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "画像 1 枚あたりの USD 単価。" }, "usd_options": { "type": "array", "description": "生成オプションによる USD 単価の差。", "items": { "type": "object", "required": [ "label", "usd" ], "properties": { "label": { "type": "string", "description": "画面に表示する項目の名前。" }, "resolution": { "type": "string", "description": "出力の解像度。モデルが対応する値をカタログで確認します。" }, "audio": { "type": "boolean", "description": "音声の生成または入力への対応条件。" }, "quality": { "type": "string", "description": "モデルが受け付ける生成品質。対応する値はカタログで確認します。" }, "usd": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "指定した処理の料金。単位は USD。" } }, "additionalProperties": false } } }, "additionalProperties": false }, "constraints": { "type": "array", "description": "モデルごとに受け付ける解像度、入力数、長さなどの制約。", "items": { "type": "string" } } }, "additionalProperties": false } } }, "additionalProperties": false } } }, "example": { "data": { "models": [ { "id": "gpt-image-2", "name": "GPT Image 2", "modality": "image", "routing": "pass_through", "capabilities": { "text_to_image": true, "image_edit": true, "aspect_ratios": [ "1:1", "16:9", "9:16" ], "resolutions": [ "1K" ], "qualities": [ "low", "medium", "high" ], "max_images": 1, "output_formats": [ "png", "jpeg", "webp" ] }, "pricing": { "basis": "per_image", "credits_per_image": 5 }, "constraints": [] } ] } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/image-router/models' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/image-router/models", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/image-router/models', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-image-model --- title: 画像モデルを取得 description: 画像モデルを取得。 レスポンス例の料金と利用量は形式を示すための値です。実際の値は取得したカタログを使用してください。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-image-model markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-image-model.md --- # 画像モデルを取得 画像モデルを取得。 レスポンス例の料金と利用量は形式を示すための値です。実際の値は取得したカタログを使用してください。 ```http GET /v1/image-router/models/{model_id} ``` Server: https://api.orchestor.io Operation ID: `getCreativeImageModel` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "model_id", "in": "path", "required": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。", "schema": { "type": "string" }, "example": "gpt-image-2" } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "モデルの対応入力・制約・料金を返します。生成前に、このモデルが受け付けるオプションを確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ImageRouterModelResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "model" ], "properties": { "model": { "name": "ImageRouterCatalogItem", "type": "object", "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。", "required": [ "id", "name", "modality", "routing", "capabilities", "pricing", "constraints" ], "properties": { "estimated_generation_seconds": { "minimum": 0, "type": "integer", "description": "直近 30 日間に完了した最大 200 件のジョブについて、作成から完了までの秒数の中央値を整数に丸めた目安。一覧では対象ジョブが 3 件以上あるモデルに返します。" }, "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。", "enumValues": [ "higgsfield-soul", "soul-2.0", "gpt-image-2.5", "gpt-image-2.5-sunburst", "gpt-image-2.6", "gpt-image-2.6-sunburst", "gpt-image-2", "nano-banana-2.1", "nano-banana-2-lite", "nano-banana-2", "ideogram-vector", "ideogram-4-5-precise-edit", "seedream-5.5", "minimax-h3-image", "flux-3-image", "gpt-image-1.5", "nano-banana-pro", "seedream-5-lite", "seedream-4-5-edit", "grok-image", "seedream-v4", "flux-2-pro", "flux-2-flex", "ideogram-v3", "recraft-v4", "qwen-image-layered", "qwen-image-angles", "ideogram-v4.5", "nano-banana", "flux-kontext-max", "wan-2.2", "recraft-v4.1", "seedream-5-flash", "z-image", "flux-2-max", "kling-image-o1", "kling-image-3-omni", "seedream-5-pro", "higgsfield-soul-standard", "higgsfield-soul-cinema", "grok-imagine-2", "recraft-v4.1-utility", "kling-image-3", "higgsfield-ai-influencer", "higgsfield-ads-studio" ] }, "name": { "type": "string", "description": "選択画面などに表示する名称。" }, "modality": { "type": "string", "description": "モデルが生成するメディアの種類。", "enumValues": [ "image" ] }, "routing": { "type": "string", "description": "モデルへの入力の渡し方と呼び出し経路の情報。", "enumValues": [ "pass_through" ] }, "capabilities": { "type": "object", "description": "テキスト生成・編集・参照入力など、このモデルが対応する機能。", "required": [ "text_to_image", "image_edit", "aspect_ratios", "resolutions", "qualities", "max_images", "output_formats" ], "properties": { "text_to_image": { "type": "boolean", "description": "文章から画像を生成できるかどうか。" }, "image_edit": { "type": "boolean", "description": "入力画像を編集できるかどうか。" }, "aspect_ratios": { "type": "array", "description": "このモデルで指定できる縦横比の一覧。", "items": { "type": "string" } }, "resolutions": { "type": "array", "description": "このモデルで指定できる出力解像度の一覧。", "items": { "type": "string" } }, "qualities": { "type": "array", "description": "このモデルで指定できる品質の一覧。", "items": { "type": "string" } }, "max_reference_images": { "minimum": 1, "type": "integer", "description": "このモデルが受け付ける参照画像の最大数。" }, "max_images": { "type": "integer", "description": "一つの要求に含められる画像数の上限。" }, "output_formats": { "type": "array", "description": "このモデルで生成できるファイル形式の一覧。", "items": { "type": "string" } } }, "additionalProperties": false }, "pricing": { "type": "object", "description": "課金単位とモデルの単価。生成前の見積もりに使用します。", "required": [ "basis" ], "properties": { "basis": { "type": "string", "description": "画像数、秒数、解像度など、単価を適用する基準。", "enumValues": [ "per_image" ] }, "credits_per_image": { "minimum": 0, "type": "number", "description": "画像 1 枚あたりの消費クレジット。" }, "image_edit_options": { "type": "array", "description": "画像編集の設定ごとの消費クレジット。", "items": { "type": "object", "required": [ "credits" ], "properties": { "resolution": { "type": "string" }, "quality": { "type": "string" }, "credits": { "minimum": 0, "type": "number" } }, "additionalProperties": false } }, "credits_by_image_count": { "type": "object", "description": "出力枚数ごとの合計消費クレジット。料金は要求全体で丸められます。", "additionalProperties": { "minimum": 0, "type": "number" } }, "usd_per_image": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "画像 1 枚あたりの USD 単価。" }, "usd_options": { "type": "array", "description": "生成オプションによる USD 単価の差。", "items": { "type": "object", "required": [ "label", "usd" ], "properties": { "label": { "type": "string", "description": "画面に表示する項目の名前。" }, "resolution": { "type": "string", "description": "出力の解像度。モデルが対応する値をカタログで確認します。" }, "audio": { "type": "boolean", "description": "音声の生成または入力への対応条件。" }, "quality": { "type": "string", "description": "モデルが受け付ける生成品質。対応する値はカタログで確認します。" }, "usd": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "指定した処理の料金。単位は USD。" } }, "additionalProperties": false } } }, "additionalProperties": false }, "constraints": { "type": "array", "description": "モデルごとに受け付ける解像度、入力数、長さなどの制約。", "items": { "type": "string" } } }, "additionalProperties": false } }, "additionalProperties": false } } }, "example": { "data": { "model": { "id": "gpt-image-2", "name": "GPT Image 2", "modality": "image", "routing": "pass_through", "capabilities": { "text_to_image": true, "image_edit": true, "aspect_ratios": [ "1:1", "16:9", "9:16" ], "resolutions": [ "1K" ], "qualities": [ "low", "medium", "high" ], "max_images": 1, "output_formats": [ "png", "jpeg", "webp" ] }, "pricing": { "basis": "per_image", "credits_per_image": 5 }, "constraints": [] } } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/image-router/models/gpt-image-2' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/image-router/models/gpt-image-2", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/image-router/models/gpt-image-2', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-music-models --- title: 音楽モデルを一覧表示 description: 入力画像や秒数指定への対応、料金と制約を比較して曲を生成するモデルを選びます。 料金と利用量の例は形式を示す値です。実際の値は取得したカタログで確認してください。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-music-models markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-music-models.md --- # 音楽モデルを一覧表示 入力画像や秒数指定への対応、料金と制約を比較して曲を生成するモデルを選びます。 料金と利用量の例は形式を示す値です。実際の値は取得したカタログで確認してください。 ```http GET /v1/music-router/models ``` Server: https://api.orchestor.io Operation ID: `listCreativeMusicModels` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters No parameters. ## Responses ### 200 ```json { "statusCode": "200", "description": "指定した対象の取得結果。次の要求には返された ID と制約を使用します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "MusicRouterModelsResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "呼び出し結果を格納するオブジェクト。エラー時は error を確認してください。", "required": [ "models" ], "properties": { "models": { "type": "array", "description": "このルーターで選択できるモデルと、それぞれの対応入力・料金・制約。", "items": { "name": "MusicRouterCatalogItem", "type": "object", "required": [ "id", "name", "modality", "routing", "capabilities", "pricing", "constraints" ], "properties": { "id": { "type": "string", "description": "生成要求の model に渡すカタログ ID。別名ではなく、この値をそのまま指定します。", "enumValues": [ "orchestor/music-auto", "lyria-3-pro" ] }, "name": { "type": "string", "description": "モデル選択画面に表示する名称。要求には名称ではなく id を指定します。" }, "modality": { "type": "string", "description": "生成されるメディアの種類。音声・音楽モデルは audio を返します。", "enumValues": [ "audio" ] }, "routing": { "type": "string", "description": "指定したモデルへ直接送るか、カタログの選択規則で別のモデルへ解決するかを示します。", "enumValues": [ "auto", "pass_through" ] }, "resolves_to": { "type": "string", "description": "自動選択の行が現在解決するモデル ID。実行前にカタログで確認します。", "enumValues": [ "orchestor/music-auto", "lyria-3-pro" ] }, "capabilities": { "type": "object", "description": "利用可能な入力や設定の範囲。記載のない設定を要求に追加しないでください。", "required": [ "text_to_music", "image_conditioning", "lyrics", "max_prompt_characters" ], "properties": { "text_to_music": { "type": "boolean", "description": "文章の指示から楽曲を生成する入力に対応しているかを示します。" }, "image_conditioning": { "type": "boolean", "description": "画像を楽曲生成の参照入力として使用できるかを示します。" }, "lyrics": { "type": "boolean", "description": "歌詞を指定した生成に対応しているかを示します。" }, "max_prompt_characters": { "type": "integer", "description": "楽曲の指示として送れる文章の文字数上限。" }, "duration_seconds": { "type": "object", "description": "指定可能な音声の秒数。項目がない場合はモデルが長さを決めます。", "required": [ "min", "max", "default" ], "properties": { "min": { "type": "integer", "description": "指定できる長さの下限。単位は秒です。" }, "max": { "type": "integer", "description": "指定できる長さの上限。単位は秒です。" }, "default": { "type": "integer", "description": "長さを省略したときに適用する秒数。" } }, "additionalProperties": false } }, "additionalProperties": false }, "pricing": { "type": "object", "description": "生成量に適用する課金単位と単価。要求全体の金額は入力の長さなどに応じて計算します。", "required": [ "basis", "credits_per_audio", "usd_per_audio" ], "properties": { "basis": { "type": "string", "description": "単価を適用する生成量の単位。文字数、音声一つ、秒数、分数を区別します。", "enumValues": [ "per_audio", "per_second", "per_minute" ] }, "credits_per_audio": { "minimum": 0, "type": "integer", "description": "一回の音声生成で消費するクレジット。長さによる課金では既定の長さに対する値。" }, "usd_per_audio": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "一回の音声生成の USD 金額。長さによる課金では既定の長さに対する値。" }, "credits_per_minute": { "minimum": 0, "type": "integer", "description": "生成音声 1 分あたりに消費するクレジット。" }, "usd_per_minute": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "生成音声 1 分あたりの USD 単価。" } }, "additionalProperties": false }, "constraints": { "type": "array", "description": "文字数、長さ、入力の組み合わせなど、要求が満たす必要のある条件。", "items": { "type": "string" } } }, "additionalProperties": false } } }, "additionalProperties": false } } }, "example": { "data": { "models": [ { "id": "lyria-3-pro", "name": "lyria-3-pro", "modality": "audio", "routing": "pass_through", "constraints": [], "capabilities": { "text_to_music": true, "image_conditioning": true, "lyrics": false, "max_prompt_characters": 5000 }, "pricing": { "basis": "per_audio", "credits_per_audio": 0, "usd_per_audio": "0.0000" } } ] } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/music-router/models' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/music-router/models', { method: 'GET', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}` }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.get( 'https://api.orchestor.io/v1/music-router/models', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-music-model --- title: 音楽モデルを取得 description: 一つのモデルが受け付ける入力と長さを確認します。自動選択行では resolves_to も確認します。 料金と利用量の例は形式を示す値です。実際の値は取得したカタログで確認してください。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-music-model markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-music-model.md --- # 音楽モデルを取得 一つのモデルが受け付ける入力と長さを確認します。自動選択行では resolves_to も確認します。 料金と利用量の例は形式を示す値です。実際の値は取得したカタログで確認してください。 ```http GET /v1/music-router/models/{model_id} ``` Server: https://api.orchestor.io Operation ID: `getCreativeMusicModel` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "model_id", "in": "path", "required": true, "description": "取得対象のモデル ID。表示名ではなくカタログの値を指定します。", "schema": { "type": "string" } } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "指定した対象の取得結果。次の要求には返された ID と制約を使用します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "MusicRouterModelResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "呼び出し結果を格納するオブジェクト。エラー時は error を確認してください。", "required": [ "model" ], "properties": { "model": { "name": "MusicRouterCatalogItem", "type": "object", "description": "生成で使用するカタログ ID。対応する入力・設定をモデル一覧で確認してください。", "required": [ "id", "name", "modality", "routing", "capabilities", "pricing", "constraints" ], "properties": { "id": { "type": "string", "description": "生成要求の model に渡すカタログ ID。別名ではなく、この値をそのまま指定します。", "enumValues": [ "orchestor/music-auto", "lyria-3-pro" ] }, "name": { "type": "string", "description": "モデル選択画面に表示する名称。要求には名称ではなく id を指定します。" }, "modality": { "type": "string", "description": "生成されるメディアの種類。音声・音楽モデルは audio を返します。", "enumValues": [ "audio" ] }, "routing": { "type": "string", "description": "指定したモデルへ直接送るか、カタログの選択規則で別のモデルへ解決するかを示します。", "enumValues": [ "auto", "pass_through" ] }, "resolves_to": { "type": "string", "description": "自動選択の行が現在解決するモデル ID。実行前にカタログで確認します。", "enumValues": [ "orchestor/music-auto", "lyria-3-pro" ] }, "capabilities": { "type": "object", "description": "利用可能な入力や設定の範囲。記載のない設定を要求に追加しないでください。", "required": [ "text_to_music", "image_conditioning", "lyrics", "max_prompt_characters" ], "properties": { "text_to_music": { "type": "boolean", "description": "文章の指示から楽曲を生成する入力に対応しているかを示します。" }, "image_conditioning": { "type": "boolean", "description": "画像を楽曲生成の参照入力として使用できるかを示します。" }, "lyrics": { "type": "boolean", "description": "歌詞を指定した生成に対応しているかを示します。" }, "max_prompt_characters": { "type": "integer", "description": "楽曲の指示として送れる文章の文字数上限。" }, "duration_seconds": { "type": "object", "description": "指定可能な音声の秒数。項目がない場合はモデルが長さを決めます。", "required": [ "min", "max", "default" ], "properties": { "min": { "type": "integer", "description": "指定できる長さの下限。単位は秒です。" }, "max": { "type": "integer", "description": "指定できる長さの上限。単位は秒です。" }, "default": { "type": "integer", "description": "長さを省略したときに適用する秒数。" } }, "additionalProperties": false } }, "additionalProperties": false }, "pricing": { "type": "object", "description": "生成量に適用する課金単位と単価。要求全体の金額は入力の長さなどに応じて計算します。", "required": [ "basis", "credits_per_audio", "usd_per_audio" ], "properties": { "basis": { "type": "string", "description": "単価を適用する生成量の単位。文字数、音声一つ、秒数、分数を区別します。", "enumValues": [ "per_audio", "per_second", "per_minute" ] }, "credits_per_audio": { "minimum": 0, "type": "integer", "description": "一回の音声生成で消費するクレジット。長さによる課金では既定の長さに対する値。" }, "usd_per_audio": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "一回の音声生成の USD 金額。長さによる課金では既定の長さに対する値。" }, "credits_per_minute": { "minimum": 0, "type": "integer", "description": "生成音声 1 分あたりに消費するクレジット。" }, "usd_per_minute": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "生成音声 1 分あたりの USD 単価。" } }, "additionalProperties": false }, "constraints": { "type": "array", "description": "文字数、長さ、入力の組み合わせなど、要求が満たす必要のある条件。", "items": { "type": "string" } } }, "additionalProperties": false } }, "additionalProperties": false } } }, "example": { "data": { "model": { "id": "lyria-3-pro", "name": "lyria-3-pro", "modality": "audio", "routing": "pass_through", "constraints": [], "capabilities": { "text_to_music": true, "image_conditioning": true, "lyrics": false, "max_prompt_characters": 5000 }, "pricing": { "basis": "per_audio", "credits_per_audio": 0, "usd_per_audio": "0.0000" } } } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/music-router/models/lyria-3-pro' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/music-router/models/lyria-3-pro', { method: 'GET', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}` }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.get( 'https://api.orchestor.io/v1/music-router/models/lyria-3-pro', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-tts-models --- title: 音声モデルを一覧表示 description: モデルごとの声の系列、文字数上限、出力形式と料金を確認してから生成します。 料金と利用量の例は形式を示す値です。実際の値は取得したカタログで確認してください。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-tts-models markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-tts-models.md --- # 音声モデルを一覧表示 モデルごとの声の系列、文字数上限、出力形式と料金を確認してから生成します。 料金と利用量の例は形式を示す値です。実際の値は取得したカタログで確認してください。 ```http GET /v1/tts-router/models ``` Server: https://api.orchestor.io Operation ID: `listCreativeTtsModels` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters No parameters. ## Responses ### 200 ```json { "statusCode": "200", "description": "指定した対象の取得結果。次の要求には返された ID と制約を使用します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "TtsRouterModelsResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "呼び出し結果を格納するオブジェクト。エラー時は error を確認してください。", "required": [ "models" ], "properties": { "models": { "type": "array", "description": "このルーターで選択できるモデルと、それぞれの対応入力・料金・制約。", "items": { "name": "TtsRouterCatalogItem", "type": "object", "required": [ "id", "name", "modality", "routing", "capabilities", "pricing", "constraints" ], "properties": { "estimated_generation_seconds": { "minimum": 0, "type": "integer", "description": "直近 30 日間に完了した最大 200 件のジョブについて、作成から完了までの秒数の中央値を整数に丸めた目安。一覧では対象ジョブが 3 件以上あるモデルに返します。" }, "id": { "type": "string", "description": "生成要求の model に渡すカタログ ID。別名ではなく、この値をそのまま指定します。", "enumValues": [ "sonic-3.6", "sonic-3.5", "sonic-3", "sonic-latest", "sonic-preview", "sonic-2", "sonic-turbo", "eleven-v4", "eleven-v4-turbo", "eleven-v3", "eleven-multilingual-v2", "eleven-turbo-v2.5", "seed-audio-1.0", "qwen-audio-3.0-tts", "minimax-speech-2.8-hd", "seed-speech", "fish-audio-s2.1-pro", "fish-audio-s2-pro" ] }, "name": { "type": "string", "description": "モデル選択画面に表示する名称。要求には名称ではなく id を指定します。" }, "voice_family": { "type": "string", "description": "このモデルと組み合わせる声の一覧を選ぶ family の値。別の系列の声は使用できません。", "enumValues": [ "sonic", "eleven", "seed_audio", "qwen", "minimax", "seed_speech", "fish" ] }, "modality": { "type": "string", "description": "生成されるメディアの種類。音声・音楽モデルは audio を返します。", "enumValues": [ "audio" ] }, "routing": { "type": "string", "description": "指定したモデルへ直接送るか、カタログの選択規則で別のモデルへ解決するかを示します。", "enumValues": [ "pass_through" ] }, "capabilities": { "type": "object", "description": "利用可能な入力や設定の範囲。記載のない設定を要求に追加しないでください。", "required": [ "text_to_speech", "max_characters" ], "properties": { "text_to_speech": { "type": "boolean", "description": "文章を音声に変換する入力に対応しているかを示します。" }, "max_characters": { "type": "integer", "description": "一度の音声生成で入力できる文章の文字数上限。" }, "languages": { "type": "array", "description": "音声生成で受け付ける言語の ISO 639-1 コード。", "items": { "type": "string" } }, "output_formats": { "type": "array", "description": "音声のコンテナ、サンプルレート、ビットレートを組み合わせた出力形式。", "items": { "type": "string" } }, "settings": { "type": "object", "description": "指定可能な声の設定ごとの min、max、step、default。項目がなければ指定できません。", "additionalProperties": true } }, "additionalProperties": false }, "pricing": { "type": "object", "description": "生成量に適用する課金単位と単価。要求全体の金額は入力の長さなどに応じて計算します。", "required": [ "basis", "credits_per_1000_characters" ], "properties": { "basis": { "type": "string", "description": "単価を適用する生成量の単位。文字数、音声一つ、秒数、分数を区別します。", "enumValues": [ "per_character", "per_generation" ] }, "credits_per_1000_characters": { "minimum": 0, "type": "number", "nullable": true, "description": "入力文章 1,000 文字あたりに消費するクレジット。換算価格が未設定の場合は null。" }, "unrounded_credits_per_1000_characters": { "minimum": 0, "type": "number", "description": "生成ごとの丸めを適用する前の 1,000 文字あたりのクレジット。" }, "minimum_characters": { "minimum": 0, "type": "integer", "description": "課金対象となる最小文字数。" }, "credits_per_generation": { "minimum": 0, "type": "number", "nullable": true, "description": "生成 1 件あたりに消費するクレジット。" } }, "additionalProperties": false }, "constraints": { "type": "array", "description": "文字数、長さ、入力の組み合わせなど、要求が満たす必要のある条件。", "items": { "type": "string" } } }, "additionalProperties": false } } }, "additionalProperties": false } } }, "example": { "data": { "models": [ { "id": "sonic-3.6", "name": "sonic-3.6", "modality": "audio", "routing": "pass_through", "constraints": [], "voice_family": "sonic", "capabilities": { "text_to_speech": true, "max_characters": 20000 }, "pricing": { "basis": "per_character", "credits_per_1000_characters": 0 } } ] } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/tts-router/models' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/tts-router/models', { method: 'GET', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}` }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.get( 'https://api.orchestor.io/v1/tts-router/models', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-tts-model --- title: 音声モデルを取得 description: 生成に使う一つのモデルについて、対応する設定と声の系列を確認します。 料金と利用量の例は形式を示す値です。実際の値は取得したカタログで確認してください。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-tts-model markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-tts-model.md --- # 音声モデルを取得 生成に使う一つのモデルについて、対応する設定と声の系列を確認します。 料金と利用量の例は形式を示す値です。実際の値は取得したカタログで確認してください。 ```http GET /v1/tts-router/models/{model_id} ``` Server: https://api.orchestor.io Operation ID: `getCreativeTtsModel` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "model_id", "in": "path", "required": true, "description": "取得対象のモデル ID。表示名ではなくカタログの値を指定します。", "schema": { "type": "string" } } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "指定した対象の取得結果。次の要求には返された ID と制約を使用します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "TtsRouterModelResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "呼び出し結果を格納するオブジェクト。エラー時は error を確認してください。", "required": [ "model" ], "properties": { "model": { "name": "TtsRouterCatalogItem", "type": "object", "description": "生成で使用するカタログ ID。対応する入力・設定をモデル一覧で確認してください。", "required": [ "id", "name", "modality", "routing", "capabilities", "pricing", "constraints" ], "properties": { "estimated_generation_seconds": { "minimum": 0, "type": "integer", "description": "直近 30 日間に完了した最大 200 件のジョブについて、作成から完了までの秒数の中央値を整数に丸めた目安。一覧では対象ジョブが 3 件以上あるモデルに返します。" }, "id": { "type": "string", "description": "生成要求の model に渡すカタログ ID。別名ではなく、この値をそのまま指定します。", "enumValues": [ "sonic-3.6", "sonic-3.5", "sonic-3", "sonic-latest", "sonic-preview", "sonic-2", "sonic-turbo", "eleven-v4", "eleven-v4-turbo", "eleven-v3", "eleven-multilingual-v2", "eleven-turbo-v2.5", "seed-audio-1.0", "qwen-audio-3.0-tts", "minimax-speech-2.8-hd", "seed-speech", "fish-audio-s2.1-pro", "fish-audio-s2-pro" ] }, "name": { "type": "string", "description": "モデル選択画面に表示する名称。要求には名称ではなく id を指定します。" }, "voice_family": { "type": "string", "description": "このモデルと組み合わせる声の一覧を選ぶ family の値。別の系列の声は使用できません。", "enumValues": [ "sonic", "eleven", "seed_audio", "qwen", "minimax", "seed_speech", "fish" ] }, "modality": { "type": "string", "description": "生成されるメディアの種類。音声・音楽モデルは audio を返します。", "enumValues": [ "audio" ] }, "routing": { "type": "string", "description": "指定したモデルへ直接送るか、カタログの選択規則で別のモデルへ解決するかを示します。", "enumValues": [ "pass_through" ] }, "capabilities": { "type": "object", "description": "利用可能な入力や設定の範囲。記載のない設定を要求に追加しないでください。", "required": [ "text_to_speech", "max_characters" ], "properties": { "text_to_speech": { "type": "boolean", "description": "文章を音声に変換する入力に対応しているかを示します。" }, "max_characters": { "type": "integer", "description": "一度の音声生成で入力できる文章の文字数上限。" }, "languages": { "type": "array", "description": "音声生成で受け付ける言語の ISO 639-1 コード。", "items": { "type": "string" } }, "output_formats": { "type": "array", "description": "音声のコンテナ、サンプルレート、ビットレートを組み合わせた出力形式。", "items": { "type": "string" } }, "settings": { "type": "object", "description": "指定可能な声の設定ごとの min、max、step、default。項目がなければ指定できません。", "additionalProperties": true } }, "additionalProperties": false }, "pricing": { "type": "object", "description": "生成量に適用する課金単位と単価。要求全体の金額は入力の長さなどに応じて計算します。", "required": [ "basis", "credits_per_1000_characters" ], "properties": { "basis": { "type": "string", "description": "単価を適用する生成量の単位。文字数、音声一つ、秒数、分数を区別します。", "enumValues": [ "per_character", "per_generation" ] }, "credits_per_1000_characters": { "minimum": 0, "type": "number", "nullable": true, "description": "入力文章 1,000 文字あたりに消費するクレジット。換算価格が未設定の場合は null。" }, "unrounded_credits_per_1000_characters": { "minimum": 0, "type": "number", "description": "生成ごとの丸めを適用する前の 1,000 文字あたりのクレジット。" }, "minimum_characters": { "minimum": 0, "type": "integer", "description": "課金対象となる最小文字数。" }, "credits_per_generation": { "minimum": 0, "type": "number", "nullable": true, "description": "生成 1 件あたりに消費するクレジット。" } }, "additionalProperties": false }, "constraints": { "type": "array", "description": "文字数、長さ、入力の組み合わせなど、要求が満たす必要のある条件。", "items": { "type": "string" } } }, "additionalProperties": false } }, "additionalProperties": false } } }, "example": { "data": { "model": { "id": "sonic-3.6", "name": "sonic-3.6", "modality": "audio", "routing": "pass_through", "constraints": [], "voice_family": "sonic", "capabilities": { "text_to_speech": true, "max_characters": 20000 }, "pricing": { "basis": "per_character", "credits_per_1000_characters": 0 } } } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/tts-router/models/sonic-3.6' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/tts-router/models/sonic-3.6', { method: 'GET', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}` }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.get( 'https://api.orchestor.io/v1/tts-router/models/sonic-3.6', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-tts-voices --- title: 声の候補を一覧表示 description: モデルの voice_family を family に指定し、返された声の id を生成要求の voice.id に使います。対応する声がない系列では空の一覧を返します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-tts-voices markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-tts-voices.md --- # 声の候補を一覧表示 モデルの voice_family を family に指定し、返された声の id を生成要求の voice.id に使います。対応する声がない系列では空の一覧を返します。 ```http GET /v1/tts-router/voices ``` Server: https://api.orchestor.io Operation ID: `listCreativeTtsVoices` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "family", "in": "query", "required": true, "description": "モデルと声を組み合わせる系列。別系列の ID を混在させないでください。", "schema": { "type": "string", "enumValues": [ "sonic", "eleven", "seed_audio", "qwen", "minimax", "seed_speech", "fish" ] } }, { "name": "purpose", "in": "query", "required": false, "description": "voice_change と family=eleven を指定すると、アカウントで利用できる ElevenLabs の既定ボイスを返します。", "schema": { "type": "string", "enumValues": [ "voice_change" ] } }, { "name": "language", "in": "query", "required": false, "description": "family=fish の声を言語コードで絞り込みます。", "schema": { "minLength": 2, "maxLength": 16, "type": "string" } } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "指定した対象の取得結果。次の要求には返された ID と制約を使用します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "TtsRouterVoicesResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "呼び出し結果を格納するオブジェクト。エラー時は error を確認してください。", "required": [ "family", "source", "voices" ], "properties": { "family": { "type": "string", "description": "モデルと声を組み合わせる系列。別系列の ID を混在させないでください。", "enumValues": [ "sonic", "eleven", "seed_audio", "qwen", "minimax", "seed_speech", "fish" ] }, "source": { "type": "string", "description": "声一覧の取得元。live はライブラリ、premade は既定の声、preset は固定プリセットです。", "enumValues": [ "live", "premade", "preset" ] }, "voices": { "type": "array", "description": "指定した family の声の候補。生成時にはこの中の id を使います。", "items": { "name": "TtsRouterVoice", "type": "object", "required": [ "id", "family", "name", "description", "language", "gender", "accent", "country", "preview_url", "tags", "supported_models" ], "properties": { "source": { "type": "string", "description": "custom は現在のワークスペースが作成したボイスです。省略時はプリセットです。", "enumValues": [ "preset", "custom" ] }, "id": { "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" }, "family": { "type": "string", "description": "モデルと声を組み合わせる系列。別系列の ID を混在させないでください。", "enumValues": [ "sonic", "eleven", "seed_audio", "qwen", "minimax", "seed_speech", "fish" ] }, "name": { "type": "string", "description": "声を選ぶときに表示する名前。要求には id を指定します。" }, "description": { "type": "string", "nullable": true, "description": "声の特徴を説明する文章。情報がない場合は null です。" }, "language": { "type": "string", "nullable": true, "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "gender": { "type": "string", "nullable": true, "description": "声の性別表現。分類されていない場合は null です。", "enumValues": [ "male", "female", "neutral", null ] }, "accent": { "type": "string", "nullable": true, "description": "声のアクセント。情報がない場合は null です。" }, "country": { "pattern": "^[A-Z]{2}$", "type": "string", "nullable": true, "description": "声に関連付けられた国の2文字コード。情報がない場合は null です。" }, "preview_url": { "type": "string", "nullable": true, "description": "声を試聴する音声 URL。用意されていない場合は null です。" }, "tags": { "type": "array", "description": "声の特徴で候補を絞るための分類。プリセットでは category、notice、studio_quality、user_count、language などを key:value 形式で返します。", "items": { "type": "string" } }, "supported_models": { "type": "array", "description": "この声を使える音声モデルの ID 一覧。", "items": { "type": "string" } } }, "additionalProperties": false } } }, "additionalProperties": false } } }, "example": { "data": { "family": "sonic", "source": "preset", "voices": [] } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/tts-router/voices?family=eleven' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/tts-router/voices?family=eleven', { method: 'GET', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}` }, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.get( 'https://api.orchestor.io/v1/tts-router/voices?family=eleven', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-video-models --- title: 動画モデルを一覧表示 description: 動画モデルを一覧表示。 レスポンス例の料金と利用量は形式を示すための値です。実際の値は取得したカタログを使用してください。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-video-models markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-list-video-models.md --- # 動画モデルを一覧表示 動画モデルを一覧表示。 レスポンス例の料金と利用量は形式を示すための値です。実際の値は取得したカタログを使用してください。 ```http GET /v1/video-router/models ``` Server: https://api.orchestor.io Operation ID: `listCreativeVideoModels` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters No parameters. ## Responses ### 200 ```json { "statusCode": "200", "description": "モデルの対応入力・制約・料金を返します。生成前に、このモデルが受け付けるオプションを確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "VideoRouterModelsResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "models" ], "properties": { "models": { "type": "array", "description": "利用できるモデルと各モデルの対応入力・料金。", "items": { "name": "VideoRouterCatalogItem", "type": "object", "required": [ "id", "name", "modality", "routing", "capabilities", "pricing", "constraints" ], "properties": { "estimated_generation_seconds": { "minimum": 0, "type": "integer", "description": "直近 30 日間に完了した最大 200 件のジョブについて、作成から完了までの秒数の中央値を整数に丸めた目安。一覧では対象ジョブが 3 件以上あるモデルに返します。" }, "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。", "enumValues": [ "higgsfield-genjutsu", "higgsfield-genjutsu-object-swap", "higgsfield-genjutsu-light", "higgsfield-genjutsu-light-object-swap", "seedance-2.5", "magi-2", "seedance-2-mini", "seedance-2", "seedance-2-fast", "kling-3", "wan-3.0", "grok-imagine-video-1.5", "minimax-h3", "minimax-h3-max", "minimax-h3-lite", "minimax-h3-highspeed", "wan-2.5-fast", "gemini-omni-flash-1-2-extend", "gemini-omni-flash-1.1", "gemini-omni-flash-1.2", "vidu-q4", "vidu-q4-reference", "veo-3.1", "veo-3.1-fast", "veo-3.1-lite", "kling-4", "kling-4-omni", "kling-o1-video", "flux-3-video-edit", "minimax-02-fast", "minimax-02", "kling-3-omni-edit", "kling-o1-video-edit", "wan-2.2", "wan-2.2-fast", "grok-video-edit", "kling-4-0-flash", "flux-3-video", "kling-2.5-turbo", "wan-2.7", "wan-2.6", "wan-2.5", "seedance-pro", "seedance-pro-fast", "grok-imagine-video", "grok-imagine-video-1.5-lite", "kling-motion-control", "kling-3-motion-control", "gemini-omni-flash-1-2-edit", "seedance-2.5-edit", "vidu-q3-pro", "vidu-q3-turbo", "vidu-q3", "vidu-q3-mix", "pixverse-c1", "pixverse-v6", "wand-vega-1.0-lite", "wand-vega-1.0-pro", "wand-vega-1.5-pro", "mingmou-1", "hailuo-h3-regen", "heygen-video-1", "kling-2.6", "kling-3-turbo", "kling-3-omni", "hailuo-2.3", "hailuo-2.3-fast", "happy-horse-1.0", "happy-horse-1.1", "wan-3.0-prime", "higgsfield-cinema-studio-4", "heygen-avatar-6", "heygen-avatar-6-turbo", "hedra-character-3", "veed-fabric-1.0", "kling-avatar-2.0-pro", "kling-avatar-2.0", "omnihuman-1.5", "omnihuman-2", "infinitalk", "wan-2.2-speech-to-video", "sync-lipsync-3", "sync-lipsync-2-pro", "sync-lipsync-2", "kling-lipsync", "latentsync", "veed-lipsync", "pixverse-lipsync", "infinitalk-video", "veed-subtitles", "veed-dubbing", "topaz-video", "flux-video-upscale", "topaz-starlight", "bytedance-video-upscale", "sam-3.1-video", "luma-ray-3.2-reframe", "depth-anything-video", "topaz-interpolate", "topaz-sdr-to-hdr", "ltx-2.5-hdr", "orchestor/wand" ] }, "name": { "type": "string", "description": "選択画面などに表示する名称。" }, "modality": { "type": "string", "description": "モデルが生成するメディアの種類。", "enumValues": [ "video" ] }, "routing": { "type": "string", "description": "モデルへの入力の渡し方と呼び出し経路の情報。", "enumValues": [ "pass_through" ] }, "gated": { "type": "boolean", "description": "追加の利用条件を満たす必要があるかどうか。" }, "capabilities": { "type": "object", "description": "テキスト生成・編集・参照入力など、このモデルが対応する機能。", "required": [ "text_to_video", "image_to_video", "end_frame", "reference_images", "reference_videos", "reference_audios", "video_to_video", "audio", "resolutions", "duration_seconds", "aspect_ratios" ], "properties": { "max_reference_images": { "minimum": 1, "type": "integer", "description": "受け付ける参照入力の最大数。" }, "max_reference_videos": { "minimum": 1, "type": "integer", "description": "受け付ける参照入力の最大数。" }, "max_reference_audios": { "minimum": 1, "type": "integer", "description": "受け付ける参照入力の最大数。" }, "max_reference_total": { "minimum": 1, "type": "integer", "description": "参照入力の合計の最大数。" }, "operation_settings": { "type": "object", "description": "Provider-documented settings for each supported generation operation.", "additionalProperties": { "type": "object", "required": [ "resolutions", "aspect_ratios", "durations", "audio" ], "properties": { "resolutions": { "type": "array", "items": { "type": "string" } }, "aspect_ratios": { "type": "array", "items": { "type": "string" } }, "durations": { "type": "array", "items": { "type": "integer" } }, "audio": { "type": "boolean" } }, "additionalProperties": false } }, "text_to_video": { "type": "boolean", "description": "文章から動画を生成できるかどうか。" }, "image_to_video": { "type": "boolean", "description": "最初のフレームとなる画像から動画を生成できるかどうか。" }, "end_frame": { "type": "boolean", "description": "最後のフレームを画像で指定できるかどうか。" }, "reference_images": { "type": "boolean", "description": "参照画像入力への対応条件。" }, "reference_videos": { "type": "boolean", "description": "参照動画入力への対応条件。" }, "reference_audios": { "type": "boolean", "description": "参照音声入力への対応条件。" }, "video_to_video": { "type": "boolean", "description": "入力動画を編集できるかどうか。" }, "audio": { "type": "boolean", "description": "音声の生成または入力への対応条件。" }, "resolutions": { "type": "array", "description": "このモデルで指定できる出力解像度の一覧。", "items": { "type": "string" } }, "duration_seconds": { "type": "object", "description": "指定可能な動画の秒数。モデルごとの範囲を確認してください。", "required": [ "min", "max" ], "properties": { "min": { "type": "number", "description": "許可される値の下限。" }, "max": { "type": "integer", "description": "許可される値の上限。" } }, "additionalProperties": false }, "aspect_ratios": { "type": "array", "description": "このモデルで指定できる縦横比の一覧。", "items": { "type": "string" } }, "duration_seconds_by_mode": { "type": "object", "description": "生成方式ごとの動画の長さの制約。", "properties": { "text_to_video": { "type": "object", "description": "文章から動画を生成できるかどうか。", "required": [ "min", "max" ], "properties": { "min": { "type": "integer", "description": "許可される値の下限。" }, "max": { "type": "integer", "description": "許可される値の上限。" } }, "additionalProperties": false }, "image_to_video": { "type": "object", "description": "最初のフレームとなる画像から動画を生成できるかどうか。", "required": [ "min", "max" ], "properties": { "min": { "type": "integer", "description": "許可される値の下限。" }, "max": { "type": "integer", "description": "許可される値の上限。" } }, "additionalProperties": false }, "reference_to_video": { "type": "object", "description": "参照メディアを使って動画を生成できるかどうか。", "required": [ "min", "max" ], "properties": { "min": { "type": "integer", "description": "許可される値の下限。" }, "max": { "type": "integer", "description": "許可される値の上限。" } }, "additionalProperties": false } }, "additionalProperties": false }, "seed": { "type": "boolean", "description": "再現性の調整に使う乱数シード。0〜4,294,967,295。" }, "motion_control": { "type": "boolean", "description": "動作参照動画のモーションをキャラクター画像に適用できるかを示します。" }, "upscale": { "type": "boolean", "description": "元の動画の解像度やフレームレートを上げられるかを示します。" }, "lipsync": { "type": "boolean", "description": "入力音声に合わせて映像内の口の動きを調整できるかを示します。" }, "captions": { "type": "boolean", "description": "動画への字幕の追加に対応しているかを示します。" } }, "additionalProperties": false }, "pricing": { "type": "object", "description": "課金単位とモデルの単価。生成前の見積もりに使用します。", "required": [ "basis" ], "properties": { "basis": { "type": "string", "description": "画像数、秒数、解像度など、単価を適用する基準。", "enumValues": [ "per_1000_video_tokens", "per_second", "per_second_by_resolution" ] }, "credits_per_1000_video_tokens": { "minimum": 0, "type": "number", "description": "動画トークン 1,000 個あたりの消費クレジット。" }, "reference_duration_seconds": { "type": "number", "description": "参考単価の算出に使った生成時間。" }, "credits_per_second_image_to_video": { "type": "number", "description": "開始画像を指定した動画 1 秒あたりの参考クレジット。" }, "reference_duration_seconds_image_to_video": { "type": "number", "description": "開始画像を指定した参考単価の算出に使った生成時間。" }, "credits_per_second": { "minimum": 0, "type": "number", "description": "動画 1 秒あたりの消費クレジット。" }, "credits_per_second_audio_on": { "minimum": 0, "type": "number", "description": "音声生成を有効にした場合の動画 1 秒あたりの消費クレジット。" }, "credits_per_second_by_resolution": { "type": "object", "description": "解像度ごとの動画 1 秒あたりの消費クレジット。", "additionalProperties": { "minimum": 0, "type": "number" } }, "usd_per_second": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "動画 1 秒あたりの USD 単価。" }, "usd_per_second_audio_on": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "音声生成を有効にした場合の動画 1 秒あたりの USD 単価。" }, "usd_per_second_by_resolution": { "type": "object", "description": "解像度ごとの動画 1 秒あたりの USD 単価。", "additionalProperties": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string" } }, "usd_options": { "type": "array", "description": "生成オプションによる USD 単価の差。", "items": { "type": "object", "required": [ "label", "usd" ], "properties": { "label": { "type": "string", "description": "画面に表示する項目の名前。" }, "resolution": { "type": "string", "description": "出力の解像度。モデルが対応する値をカタログで確認します。" }, "audio": { "type": "boolean", "description": "音声の生成または入力への対応条件。" }, "quality": { "type": "string", "description": "モデルが受け付ける生成品質。対応する値はカタログで確認します。" }, "usd": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "指定した処理の料金。単位は USD。" } }, "additionalProperties": false } } }, "additionalProperties": false }, "constraints": { "type": "array", "description": "モデルごとに受け付ける解像度、入力数、長さなどの制約。", "items": { "type": "string" } } }, "additionalProperties": false } } }, "additionalProperties": false } } }, "example": { "data": { "models": [ { "id": "seedance-2.5", "name": "Seedance 2.5", "modality": "video", "routing": "pass_through", "capabilities": { "text_to_video": true, "image_to_video": true, "end_frame": true, "reference_images": true, "reference_videos": true, "reference_audios": true, "video_to_video": true, "audio": true, "resolutions": [], "duration_seconds": { "min": 0, "max": 0 }, "aspect_ratios": [] }, "pricing": { "basis": "per_1000_video_tokens" }, "constraints": [] } ] } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/video-router/models' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/video-router/models", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/video-router/models', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-video-model --- title: 動画モデルを取得 description: 動画モデルを取得。 レスポンス例の料金と利用量は形式を示すための値です。実際の値は取得したカタログを使用してください。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-video-model markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/models/get-get-video-model.md --- # 動画モデルを取得 動画モデルを取得。 レスポンス例の料金と利用量は形式を示すための値です。実際の値は取得したカタログを使用してください。 ```http GET /v1/video-router/models/{model_id} ``` Server: https://api.orchestor.io Operation ID: `getCreativeVideoModel` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "model_id", "in": "path", "required": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。", "schema": { "type": "string" }, "example": "seedance-2.5" } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "モデルの対応入力・制約・料金を返します。生成前に、このモデルが受け付けるオプションを確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "VideoRouterModelResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "model" ], "properties": { "model": { "name": "VideoRouterCatalogItem", "type": "object", "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。", "required": [ "id", "name", "modality", "routing", "capabilities", "pricing", "constraints" ], "properties": { "estimated_generation_seconds": { "minimum": 0, "type": "integer", "description": "直近 30 日間に完了した最大 200 件のジョブについて、作成から完了までの秒数の中央値を整数に丸めた目安。一覧では対象ジョブが 3 件以上あるモデルに返します。" }, "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。", "enumValues": [ "higgsfield-genjutsu", "higgsfield-genjutsu-object-swap", "higgsfield-genjutsu-light", "higgsfield-genjutsu-light-object-swap", "seedance-2.5", "magi-2", "seedance-2-mini", "seedance-2", "seedance-2-fast", "kling-3", "wan-3.0", "grok-imagine-video-1.5", "minimax-h3", "minimax-h3-max", "minimax-h3-lite", "minimax-h3-highspeed", "wan-2.5-fast", "gemini-omni-flash-1-2-extend", "gemini-omni-flash-1.1", "gemini-omni-flash-1.2", "vidu-q4", "vidu-q4-reference", "veo-3.1", "veo-3.1-fast", "veo-3.1-lite", "kling-4", "kling-4-omni", "kling-o1-video", "flux-3-video-edit", "minimax-02-fast", "minimax-02", "kling-3-omni-edit", "kling-o1-video-edit", "wan-2.2", "wan-2.2-fast", "grok-video-edit", "kling-4-0-flash", "flux-3-video", "kling-2.5-turbo", "wan-2.7", "wan-2.6", "wan-2.5", "seedance-pro", "seedance-pro-fast", "grok-imagine-video", "grok-imagine-video-1.5-lite", "kling-motion-control", "kling-3-motion-control", "gemini-omni-flash-1-2-edit", "seedance-2.5-edit", "vidu-q3-pro", "vidu-q3-turbo", "vidu-q3", "vidu-q3-mix", "pixverse-c1", "pixverse-v6", "wand-vega-1.0-lite", "wand-vega-1.0-pro", "wand-vega-1.5-pro", "mingmou-1", "hailuo-h3-regen", "heygen-video-1", "kling-2.6", "kling-3-turbo", "kling-3-omni", "hailuo-2.3", "hailuo-2.3-fast", "happy-horse-1.0", "happy-horse-1.1", "wan-3.0-prime", "higgsfield-cinema-studio-4", "heygen-avatar-6", "heygen-avatar-6-turbo", "hedra-character-3", "veed-fabric-1.0", "kling-avatar-2.0-pro", "kling-avatar-2.0", "omnihuman-1.5", "omnihuman-2", "infinitalk", "wan-2.2-speech-to-video", "sync-lipsync-3", "sync-lipsync-2-pro", "sync-lipsync-2", "kling-lipsync", "latentsync", "veed-lipsync", "pixverse-lipsync", "infinitalk-video", "veed-subtitles", "veed-dubbing", "topaz-video", "flux-video-upscale", "topaz-starlight", "bytedance-video-upscale", "sam-3.1-video", "luma-ray-3.2-reframe", "depth-anything-video", "topaz-interpolate", "topaz-sdr-to-hdr", "ltx-2.5-hdr", "orchestor/wand" ] }, "name": { "type": "string", "description": "選択画面などに表示する名称。" }, "modality": { "type": "string", "description": "モデルが生成するメディアの種類。", "enumValues": [ "video" ] }, "routing": { "type": "string", "description": "モデルへの入力の渡し方と呼び出し経路の情報。", "enumValues": [ "pass_through" ] }, "gated": { "type": "boolean", "description": "追加の利用条件を満たす必要があるかどうか。" }, "capabilities": { "type": "object", "description": "テキスト生成・編集・参照入力など、このモデルが対応する機能。", "required": [ "text_to_video", "image_to_video", "end_frame", "reference_images", "reference_videos", "reference_audios", "video_to_video", "audio", "resolutions", "duration_seconds", "aspect_ratios" ], "properties": { "max_reference_images": { "minimum": 1, "type": "integer", "description": "受け付ける参照入力の最大数。" }, "max_reference_videos": { "minimum": 1, "type": "integer", "description": "受け付ける参照入力の最大数。" }, "max_reference_audios": { "minimum": 1, "type": "integer", "description": "受け付ける参照入力の最大数。" }, "max_reference_total": { "minimum": 1, "type": "integer", "description": "参照入力の合計の最大数。" }, "operation_settings": { "type": "object", "description": "Provider-documented settings for each supported generation operation.", "additionalProperties": { "type": "object", "required": [ "resolutions", "aspect_ratios", "durations", "audio" ], "properties": { "resolutions": { "type": "array", "items": { "type": "string" } }, "aspect_ratios": { "type": "array", "items": { "type": "string" } }, "durations": { "type": "array", "items": { "type": "integer" } }, "audio": { "type": "boolean" } }, "additionalProperties": false } }, "text_to_video": { "type": "boolean", "description": "文章から動画を生成できるかどうか。" }, "image_to_video": { "type": "boolean", "description": "最初のフレームとなる画像から動画を生成できるかどうか。" }, "end_frame": { "type": "boolean", "description": "最後のフレームを画像で指定できるかどうか。" }, "reference_images": { "type": "boolean", "description": "参照画像入力への対応条件。" }, "reference_videos": { "type": "boolean", "description": "参照動画入力への対応条件。" }, "reference_audios": { "type": "boolean", "description": "参照音声入力への対応条件。" }, "video_to_video": { "type": "boolean", "description": "入力動画を編集できるかどうか。" }, "audio": { "type": "boolean", "description": "音声の生成または入力への対応条件。" }, "resolutions": { "type": "array", "description": "このモデルで指定できる出力解像度の一覧。", "items": { "type": "string" } }, "duration_seconds": { "type": "object", "description": "指定可能な動画の秒数。モデルごとの範囲を確認してください。", "required": [ "min", "max" ], "properties": { "min": { "type": "number", "description": "許可される値の下限。" }, "max": { "type": "integer", "description": "許可される値の上限。" } }, "additionalProperties": false }, "aspect_ratios": { "type": "array", "description": "このモデルで指定できる縦横比の一覧。", "items": { "type": "string" } }, "duration_seconds_by_mode": { "type": "object", "description": "生成方式ごとの動画の長さの制約。", "properties": { "text_to_video": { "type": "object", "description": "文章から動画を生成できるかどうか。", "required": [ "min", "max" ], "properties": { "min": { "type": "integer", "description": "許可される値の下限。" }, "max": { "type": "integer", "description": "許可される値の上限。" } }, "additionalProperties": false }, "image_to_video": { "type": "object", "description": "最初のフレームとなる画像から動画を生成できるかどうか。", "required": [ "min", "max" ], "properties": { "min": { "type": "integer", "description": "許可される値の下限。" }, "max": { "type": "integer", "description": "許可される値の上限。" } }, "additionalProperties": false }, "reference_to_video": { "type": "object", "description": "参照メディアを使って動画を生成できるかどうか。", "required": [ "min", "max" ], "properties": { "min": { "type": "integer", "description": "許可される値の下限。" }, "max": { "type": "integer", "description": "許可される値の上限。" } }, "additionalProperties": false } }, "additionalProperties": false }, "seed": { "type": "boolean", "description": "再現性の調整に使う乱数シード。0〜4,294,967,295。" }, "motion_control": { "type": "boolean", "description": "動作参照動画のモーションをキャラクター画像に適用できるかを示します。" }, "upscale": { "type": "boolean", "description": "元の動画の解像度やフレームレートを上げられるかを示します。" }, "lipsync": { "type": "boolean", "description": "入力音声に合わせて映像内の口の動きを調整できるかを示します。" }, "captions": { "type": "boolean", "description": "動画への字幕の追加に対応しているかを示します。" } }, "additionalProperties": false }, "pricing": { "type": "object", "description": "課金単位とモデルの単価。生成前の見積もりに使用します。", "required": [ "basis" ], "properties": { "basis": { "type": "string", "description": "画像数、秒数、解像度など、単価を適用する基準。", "enumValues": [ "per_1000_video_tokens", "per_second", "per_second_by_resolution" ] }, "credits_per_1000_video_tokens": { "minimum": 0, "type": "number", "description": "動画トークン 1,000 個あたりの消費クレジット。" }, "reference_duration_seconds": { "type": "number", "description": "参考単価の算出に使った生成時間。" }, "credits_per_second_image_to_video": { "type": "number", "description": "開始画像を指定した動画 1 秒あたりの参考クレジット。" }, "reference_duration_seconds_image_to_video": { "type": "number", "description": "開始画像を指定した参考単価の算出に使った生成時間。" }, "credits_per_second": { "minimum": 0, "type": "number", "description": "動画 1 秒あたりの消費クレジット。" }, "credits_per_second_audio_on": { "minimum": 0, "type": "number", "description": "音声生成を有効にした場合の動画 1 秒あたりの消費クレジット。" }, "credits_per_second_by_resolution": { "type": "object", "description": "解像度ごとの動画 1 秒あたりの消費クレジット。", "additionalProperties": { "minimum": 0, "type": "number" } }, "usd_per_second": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "動画 1 秒あたりの USD 単価。" }, "usd_per_second_audio_on": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "音声生成を有効にした場合の動画 1 秒あたりの USD 単価。" }, "usd_per_second_by_resolution": { "type": "object", "description": "解像度ごとの動画 1 秒あたりの USD 単価。", "additionalProperties": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string" } }, "usd_options": { "type": "array", "description": "生成オプションによる USD 単価の差。", "items": { "type": "object", "required": [ "label", "usd" ], "properties": { "label": { "type": "string", "description": "画面に表示する項目の名前。" }, "resolution": { "type": "string", "description": "出力の解像度。モデルが対応する値をカタログで確認します。" }, "audio": { "type": "boolean", "description": "音声の生成または入力への対応条件。" }, "quality": { "type": "string", "description": "モデルが受け付ける生成品質。対応する値はカタログで確認します。" }, "usd": { "pattern": "^\\d+\\.\\d{4,}$", "type": "string", "description": "指定した処理の料金。単位は USD。" } }, "additionalProperties": false } } }, "additionalProperties": false }, "constraints": { "type": "array", "description": "モデルごとに受け付ける解像度、入力数、長さなどの制約。", "items": { "type": "string" } } }, "additionalProperties": false } }, "additionalProperties": false } } }, "example": { "data": { "model": { "id": "seedance-2.5", "name": "Seedance 2.5", "modality": "video", "routing": "pass_through", "capabilities": { "text_to_video": true, "image_to_video": true, "end_frame": true, "reference_images": true, "reference_videos": true, "reference_audios": true, "video_to_video": true, "audio": true, "resolutions": [], "duration_seconds": { "min": 0, "max": 0 }, "aspect_ratios": [] }, "pricing": { "basis": "per_1000_video_tokens" }, "constraints": [] } } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/video-router/models/seedance-2.5' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/video-router/models/seedance-2.5", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/video-router/models/seedance-2.5', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/get-list-text-models --- title: テキスト生成モデルを一覧取得 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/get-list-text-models markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/get-list-text-models.md --- # テキスト生成モデルを一覧取得 ```http GET /v1/text-router/models ``` Server: https://api.orchestor.io Operation ID: `listCreativeTextModels` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters No parameters. ## Responses ### 200 ```json { "statusCode": "200", "description": "テキスト生成モデルとトークン単価。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "TextRouterModelsResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "models" ], "properties": { "models": { "type": "array", "items": { "name": "TextRouterModel", "type": "object", "required": [ "id", "name", "provider", "description", "supports_images", "pricing" ], "properties": { "estimated_generation_seconds": { "minimum": 0, "type": "integer", "description": "直近 30 日間に完了した最大 200 件のジョブについて、作成から完了までの秒数の中央値を整数に丸めた目安。一覧では対象ジョブが 3 件以上あるモデルに返します。" }, "id": { "type": "string" }, "name": { "type": "string" }, "provider": { "type": "string" }, "description": { "type": "string" }, "supports_images": { "type": "boolean" }, "pricing": { "type": "object", "required": [ "credits_per_1k_input_tokens", "credits_per_1k_output_tokens" ], "properties": { "credits_per_1k_input_tokens": { "exclusiveMinimum": 0, "type": "number" }, "credits_per_1k_output_tokens": { "exclusiveMinimum": 0, "type": "number" } } } } } } } } } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [], "content": [] } ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-create-dubbing --- title: 音声と動画を吹き替え description: リップシンク付きの吹き替えを作成します。lip_sync に true を指定し、8〜600 秒の動画を渡します。num_speakers との併用はできません。通常の吹き替えは停止中です。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-create-dubbing markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-create-dubbing.md --- # 音声と動画を吹き替え リップシンク付きの吹き替えを作成します。lip_sync に true を指定し、8〜600 秒の動画を渡します。num_speakers との併用はできません。通常の吹き替えは停止中です。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 ```http POST /v1/dubbing ``` Server: https://api.orchestor.io Operation ID: `createCreativeDubbing` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "Idempotency-Key", "in": "header", "required": false, "description": "同じ入力の再送で同じジョブを返すキー。同じキーで異なる入力を送ると 409 です。", "schema": { "minLength": 1, "maxLength": 255, "pattern": "^[ -~]+$", "type": "string" } } ] ``` ## Request body ```json { "required": true, "content": [ { "contentType": "application/json", "schema": { "name": "DubbingRequest", "type": "object", "required": [ "target_lang" ], "properties": { "audio_url": { "type": "string", "format": "uri", "description": "通常の吹き替え用の音声 URL。通常の吹き替えは停止中です。" }, "video_url": { "type": "string", "format": "uri", "description": "公開 HTTPS 動画 URL。リップシンク付きの吹き替えで必須です。" }, "duration_seconds": { "type": "number", "description": "入力の長さの参考値。受付条件と料金はサーバーの実測値で決まります。" }, "target_lang": { "minLength": 2, "maxLength": 16, "type": "string", "description": "吹き替え先の言語コード。" }, "source_lang": { "minLength": 2, "maxLength": 16, "type": "string", "description": "入力素材の言語コード。省略時は自動判定します。" }, "lip_sync": { "type": "boolean", "description": "現在は true を指定します。実測で 8〜600 秒の動画が必要です。" }, "num_speakers": { "minimum": 0, "type": "integer", "description": "話者数。0 または省略時は自動判定します。lip_sync と併用できません。" } }, "additionalProperties": true }, "example": { "video_url": "https://media.orchestor.io/inputs/interview.mp4", "duration_seconds": 20, "target_lang": "ja", "lip_sync": true } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "dubbing", "status": "queued", "model": "orchestor/dubbing-1.0", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "video_url": "https://media.orchestor.io/inputs/interview.mp4", "duration_seconds": 20, "target_lang": "ja", "lip_sync": true } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 202 ```json { "statusCode": "202", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "dubbing", "status": "queued", "model": "orchestor/dubbing-1.0", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "video_url": "https://media.orchestor.io/inputs/interview.mp4", "duration_seconds": 20, "target_lang": "ja", "lip_sync": true } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 402 ```json { "statusCode": "402", "description": "利用可能残高が不足しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_funds", "message": "利用可能残高が不足しています。入金後は新しい冪等性キーで送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "billing", "stage": "reservation", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_funds", "next_action": "add_funds" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 413 ```json { "statusCode": "413", "description": "リクエスト本体またはアップロードがサイズ上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "payload_too_large", "message": "リクエスト本体がサイズ上限を超えました。本体を小さくし、ファイルのバイト列は upload_url へ送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "payload_too_large", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/dubbing' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{"video_url": "https://media.orchestor.io/inputs/interview.mp4", "duration_seconds": 20, "target_lang": "ja", "lip_sync": true}' ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/dubbing', { method: 'POST', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({"video_url": "https://media.orchestor.io/inputs/interview.mp4", "duration_seconds": 20, "target_lang": "ja", "lip_sync": true}), }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.post( 'https://api.orchestor.io/v1/dubbing', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, json={'video_url': 'https://media.orchestor.io/inputs/interview.mp4', 'duration_seconds': 20, 'target_lang': 'ja', 'lip_sync': True}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-image --- title: 画像を生成 description: model でモデルを指定します。async と webhook は即座にジョブを返し、sync と subscribe は最大 30 秒待機します。次のポーリングまで next_poll_after_seconds 秒待ちます。同じ Idempotency-Key と入力の再送は同じジョブを返し、異なる入力は 409 になります。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-image markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-image.md --- # 画像を生成 model でモデルを指定します。async と webhook は即座にジョブを返し、sync と subscribe は最大 30 秒待機します。次のポーリングまで next_poll_after_seconds 秒待ちます。同じ Idempotency-Key と入力の再送は同じジョブを返し、異なる入力は 409 になります。 ```http POST /v1/image-router/generate ``` Server: https://api.orchestor.io Operation ID: `generateCreativeImage` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "Idempotency-Key", "in": "header", "required": false, "description": "同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。", "schema": { "minLength": 1, "maxLength": 255, "pattern": "^[ -~]+$", "type": "string" } } ] ``` ## Request body ```json { "description": "以下の入力を JSON で送信します。モデル固有の項目はカタログの対応条件も確認してください。", "required": true, "content": [ { "contentType": "application/json", "schema": { "name": "ImageGenerationRequest", "type": "object", "required": [ "model", "prompt" ], "properties": { "model": { "type": "string", "description": "カタログに掲載されたモデル ID を指定します。利用可能な入力と料金は、呼び出すワークスペースのカタログ行で確認してください。", "enumValues": [ "higgsfield-soul", "soul-2.0", "gpt-image-2.5", "gpt-image-2.5-sunburst", "gpt-image-2.6", "gpt-image-2.6-sunburst", "gpt-image-2", "nano-banana-2.1", "nano-banana-2-lite", "nano-banana-2", "ideogram-vector", "ideogram-4-5-precise-edit", "seedream-5.5", "minimax-h3-image", "flux-3-image", "gpt-image-1.5", "nano-banana-pro", "seedream-5-lite", "seedream-4-5-edit", "grok-image", "seedream-v4", "flux-2-pro", "flux-2-flex", "ideogram-v3", "recraft-v4", "qwen-image-layered", "qwen-image-angles", "ideogram-v4.5", "nano-banana", "flux-kontext-max", "wan-2.2", "recraft-v4.1", "seedream-5-flash", "z-image", "flux-2-max", "kling-image-o1", "kling-image-3-omni", "seedream-5-pro", "higgsfield-soul-standard", "higgsfield-soul-cinema", "grok-imagine-2", "recraft-v4.1-utility", "kling-image-3", "higgsfield-ai-influencer", "higgsfield-ads-studio" ] }, "prompt": { "minLength": 1, "type": "string", "description": "生成する内容、または編集で変更したい内容を記述する文章。" }, "character_element_id": { "pattern": "^elem_[a-f0-9-]{36}$", "type": "string", "description": "Soul 2 で使用する、このワークスペースの学習済みキャラクター要素の ID。" }, "medias": { "type": "array", "description": "同じワークスペース内のアップロードまたは完了済みジョブを参照します。role は image または image_references です。解決した画像は image_urls の後ろに追加されます。", "items": { "name": "CreativeBatchMediaRequest", "type": "object", "required": [ "value", "role" ], "properties": { "value": { "pattern": "^(job_)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "type": "string", "description": "A media ID from an upload in this workspace or a completed job ID (job_ or bare UUID). Use URL fields for HTTPS references. General files are download-only." }, "role": { "minLength": 1, "type": "string" } }, "additionalProperties": false } }, "image_urls": { "minItems": 1, "maxItems": 16, "type": "array", "description": "編集や参照に使う画像の HTTPS URL。入力は認証なしで取得できる必要があります。", "items": { "type": "string", "format": "uri" } }, "mask_url": { "type": "string", "format": "uri", "description": "編集する領域を指定するマスク画像の HTTPS URL。対応モデルで使用します。" }, "aspect_ratio": { "type": "string", "description": "出力の幅と高さの比。auto は入力画像に合わせます。モデルの対応値を確認してください。", "enumValues": [ "auto", "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "4:5", "5:4", "9:8", "1:2", "2:1", "1:3", "3:1", "1:4", "4:1", "1:8", "8:1", "9:21", "21:9", "10:16", "16:10", "20:9", "19.5:9", "9:19.5", "9:20", "6:10", "14:10", "10:14" ] }, "image_size": { "description": "プリセット、WIDTHxHEIGHT、または width と height のオブジェクト。aspect_ratio より優先されます。", "oneOf": [ { "type": "string", "enumValues": [ "square", "square_hd", "portrait_16_9", "landscape_16_9", "landscape_4_3", "portrait_4_3", "auto", "auto_2K", "auto_3K", "auto_4K" ] }, { "type": "object", "required": [ "width", "height" ], "properties": { "width": { "minimum": 1, "type": "integer", "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "minimum": 1, "type": "integer", "description": "画像またはフレームの高さ。単位はピクセル。" } }, "additionalProperties": false }, { "pattern": "^[0-9]+[x×][0-9]+$", "type": "string" } ] }, "quality": { "type": "string", "description": "モデルが受け付ける生成品質。対応する値はカタログで確認します。" }, "resolution": { "type": "string", "description": "出力の解像度。モデルが対応する値をカタログで確認します。", "enumValues": [ "0.5K", "1K", "2K", "4K", "720p", "1080p" ] }, "num_images": { "minimum": 1, "maximum": 10, "type": "integer", "description": "一つのジョブで生成する画像数。共通スキーマの範囲内でもモデル固有の上限が適用されます。" }, "output_format": { "type": "string", "description": "成果物のファイル形式。対応する値はモデルによって異なります。", "enumValues": [ "png", "jpeg", "jpg", "webp", "gif", "svg" ] }, "metadata": { "type": "object", "description": "利用者の追跡用データ。ジョブと関連付けて保存し、モデルには送りません。", "additionalProperties": true }, "mode": { "type": "string", "description": "async は即時応答、webhook は終端通知、sync と subscribe は時間を区切って完了を待ちます。", "default": "async", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "webhook_url": { "maxLength": 2048, "type": "string", "format": "uri", "description": "終端イベントを受け取る公開 HTTPS URL(2048 文字以内、既定のポート)。async または webhook モードで指定し、sync とは併用できません。localhost、プライベート、ループバック、リンクローカルのアドレス宛ては指定できません。ジョブが完了、失敗、取消のいずれかになると、ワークスペースの署名シークレットで署名した通知を 1 件送ります。" }, "wait_timeout_seconds": { "minimum": 0, "maximum": 30, "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "project_id": { "maxLength": 200, "type": "string", "description": "ジョブまたは配置先を関連付けるプロジェクトの ID。" }, "model_params": { "type": "object", "description": "モデル固有設定。通常は省略または空オブジェクト。higgsfield-ai-influencer は tier(normal、freak、total)と selection(グループ ID から最大 4 個の選択 ID への対応)を指定できます。", "additionalProperties": true }, "background": { "type": "string", "description": "GPT Image 2.5 系の背景指定。auto、transparent、opaque。対応モデルだけに指定します。", "enumValues": [ "auto", "transparent", "opaque" ] }, "rendering_speed": { "type": "string", "description": "生成速度と品質の配分。TURBO、BALANCED、QUALITY から対応モデルの値を選びます。", "enumValues": [ "TURBO", "BALANCED", "QUALITY" ] }, "complexity": { "type": "string", "description": "描画前の計画量。low、medium、high。GPT Image 2.6 系で使用し、既定は high です。quality とは別の設定です。", "enumValues": [ "low", "medium", "high" ] }, "frame_count": { "minimum": 2, "maximum": 16, "type": "integer", "description": "GIF のフレーム数。GPT Image 2.6 の GIF 出力で 2〜16、既定は 9。image_size は各フレームのサイズです。" }, "frame_duration_ms": { "minimum": 20, "maximum": 2000, "type": "integer", "description": "GIF の 1 フレームの表示時間。20〜2,000 ミリ秒を 10 ミリ秒単位に丸めます。既定は 200。" } }, "additionalProperties": false }, "example": { "model": "gpt-image-2", "prompt": "白い背景の上に置いた青い陶器の花瓶", "aspect_ratio": "1:1", "mode": "async" } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "生成の受付結果。job.id を保存し、result_ready が false の場合は status_url を指定間隔で取得してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "image_generation", "status": "queued", "model": "gpt-image-2", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "gpt-image-2", "prompt": "白い背景の上に置いた青い陶器の花瓶", "aspect_ratio": "1:1", "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 402 ```json { "statusCode": "402", "description": "利用可能残高が不足しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_funds", "message": "利用可能残高が不足しています。入金後は新しい冪等性キーで送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "billing", "stage": "reservation", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_funds", "next_action": "add_funds" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 413 ```json { "statusCode": "413", "description": "リクエスト本体またはアップロードがサイズ上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "payload_too_large", "message": "リクエスト本体がサイズ上限を超えました。本体を小さくし、ファイルのバイト列は upload_url へ送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "payload_too_large", "next_action": "fix_input" } } } ] } ``` ### 415 ```json { "statusCode": "415", "description": "Content-Type に application/json を指定してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unsupported_media_type", "message": "未対応の Content-Type です。application/json を指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "unsupported_media_type", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエストのレート制限、またはプランの同時実行数の上限に達しました。concurrent_jobs_limit_reached の場合、ジョブは作成されず、クレジットも予約されません。実行中の生成が終わるまで待つか、プランをアップグレードしてください。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "anyOf": [ { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, { "name": "CreativeConcurrencyLimitError", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "required": [ "type", "code", "message", "doc_url", "concurrent_jobs_limit", "kind", "plan" ], "properties": { "type": { "type": "string", "enumValues": [ "rate_limit_error" ] }, "code": { "type": "string", "enumValues": [ "concurrent_jobs_limit_reached" ] }, "message": { "type": "string" }, "doc_url": { "type": "string", "format": "uri" }, "concurrent_jobs_limit": { "minimum": 1, "type": "integer" }, "kind": { "type": "string", "enumValues": [ "video", "image" ] }, "plan": { "type": "string", "description": "Active Orchestor subscription tier from the pricing catalog." } } } } } ] }, "example": { "error": { "type": "rate_limit_error", "code": "concurrent_jobs_limit_reached", "message": "Concurrent creative generation limit reached.", "doc_url": "https://docs.orchestor.io/errors/concurrent_jobs_limit_reached", "concurrent_jobs_limit": 2, "kind": "video", "plan": "creative_starter" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/image-router/generate' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: 9816bc88-9791-43a1-86c2-876dc7c544e8' \ --data-raw '{"model": "gpt-image-2", "prompt": "白い背景の上に置いた青い陶器の花瓶", "aspect_ratio": "1:1", "mode": "async"}' ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/image-router/generate", { method: "POST", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": "9816bc88-9791-43a1-86c2-876dc7c544e8"}, body: JSON.stringify({"model": "gpt-image-2", "prompt": "白い背景の上に置いた青い陶器の花瓶", "aspect_ratio": "1:1", "mode": "async"}), }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'POST', 'https://api.orchestor.io/v1/image-router/generate', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}", 'Content-Type': 'application/json', 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8'}, json={'model': 'gpt-image-2', 'prompt': '白い背景の上に置いた青い陶器の花瓶', 'aspect_ratio': '1:1', 'mode': 'async'}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-music --- title: 音楽を生成 description: モデルを指定せず文章から曲を生成します。duration_seconds は送らず、曲の長さは文章で指示します。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-music markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-music.md --- # 音楽を生成 モデルを指定せず文章から曲を生成します。duration_seconds は送らず、曲の長さは文章で指示します。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 ```http POST /v1/music-1.0/generate ``` Server: https://api.orchestor.io Operation ID: `generateCreativeMusic` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "Idempotency-Key", "in": "header", "required": false, "description": "同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。", "schema": { "minLength": 1, "maxLength": 255, "pattern": "^[ -~]+$", "type": "string" } } ] ``` ## Request body ```json { "required": true, "content": [ { "contentType": "application/json", "schema": { "name": "MusicGenerationRequest", "type": "object", "description": "prompt から曲を生成します。モデルと duration_seconds は指定せず、長さの意図は文章に含めます。", "required": [ "prompt" ], "properties": { "prompt": { "minLength": 1, "maxLength": 5000, "type": "string", "description": "曲の雰囲気、楽器、テンポ、展開を指定する文章。歌声を避ける場合もこの文章に指示します。" }, "negative_prompt": { "maxLength": 0, "type": "string", "description": "省略または空文字列のみ。除外したい内容は prompt に含め、非空の値を送らないでください。", "default": "" }, "image_url": { "type": "string", "nullable": true, "format": "uri", "description": "曲の雰囲気の参照に使う公開 HTTPS 画像。対応モデルだけで指定し、null で解除します。" }, "metadata": { "type": "object", "description": "追跡用にジョブへ保存する値。生成先には送信されません。秘密や個人情報を含めないでください。", "additionalProperties": true }, "mode": { "type": "string", "description": "結果の受け取り方。async は即時受付、sync と subscribe は最大30秒の待機、webhook は終端通知です。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "webhook_url": { "maxLength": 2048, "type": "string", "format": "uri", "description": "終端通知を受ける公開 HTTPS URL。単独指定時は webhook モードになります。" }, "wait_timeout_seconds": { "minimum": 0, "maximum": 30, "type": "integer", "description": "sync または subscribe で HTTP 応答を待つ秒数。時間切れ後も同じジョブを追跡します。" }, "project_id": { "maxLength": 200, "type": "string", "description": "同じワークスペース内でジョブを保存するプロジェクト。存在しない場合は課金前に拒否されます。" } }, "additionalProperties": false }, "example": { "prompt": "朝の風景に合う静かなピアノ曲、歌声なし。", "mode": "async" } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "music_generation", "status": "queued", "model": "orchestor/music-1.0", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "prompt": "朝の風景に合う静かなピアノ曲、歌声なし。", "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 202 ```json { "statusCode": "202", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "music_generation", "status": "queued", "model": "orchestor/music-1.0", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "prompt": "朝の風景に合う静かなピアノ曲、歌声なし。", "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 402 ```json { "statusCode": "402", "description": "利用可能残高が不足しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_funds", "message": "利用可能残高が不足しています。入金後は新しい冪等性キーで送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "billing", "stage": "reservation", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_funds", "next_action": "add_funds" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 413 ```json { "statusCode": "413", "description": "リクエスト本体またはアップロードがサイズ上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "payload_too_large", "message": "リクエスト本体がサイズ上限を超えました。本体を小さくし、ファイルのバイト列は upload_url へ送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "payload_too_large", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/music-1.0/generate' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{"prompt": "朝の風景に合う静かなピアノ曲、歌声なし。", "mode": "async"}' \ --header 'Idempotency-Key: 9816bc88-9791-43a1-86c2-876dc7c544e8' ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/music-1.0/generate', { method: 'POST', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8' }, body: JSON.stringify({"prompt": "朝の風景に合う静かなピアノ曲、歌声なし。", "mode": "async"}), }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.post( 'https://api.orchestor.io/v1/music-1.0/generate', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}", 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8'}, json={'prompt': '朝の風景に合う静かなピアノ曲、歌声なし。', 'mode': 'async'}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-music-router --- title: モデルを選んで音楽を生成 description: 文章から曲を生成します。model を省略すると orchestor/music-auto を使い、カタログの選択先へ解決します。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-music-router markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-music-router.md --- # モデルを選んで音楽を生成 文章から曲を生成します。model を省略すると orchestor/music-auto を使い、カタログの選択先へ解決します。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 ```http POST /v1/music-router/generate ``` Server: https://api.orchestor.io Operation ID: `generateCreativeMusicRouter` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "Idempotency-Key", "in": "header", "required": false, "description": "同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。", "schema": { "minLength": 1, "maxLength": 255, "pattern": "^[ -~]+$", "type": "string" } } ] ``` ## Request body ```json { "required": true, "content": [ { "contentType": "application/json", "schema": { "name": "MusicRouterGenerationRequest", "type": "object", "description": "model の省略時は orchestor/music-auto。曲の長さはプロンプトで指定します。", "required": [ "prompt" ], "properties": { "model": { "type": "string", "description": "生成で使用するカタログ ID。対応する入力・設定をモデル一覧で確認してください。", "enumValues": [ "orchestor/music-auto", "lyria-3-pro" ] }, "prompt": { "minLength": 1, "maxLength": 5000, "type": "string", "description": "曲の雰囲気、楽器、テンポ、展開を指定する文章。歌声を避ける場合もこの文章に指示します。" }, "negative_prompt": { "maxLength": 0, "type": "string", "description": "省略または空文字列のみ。除外したい内容は prompt に含め、非空の値を送らないでください。", "default": "" }, "image_url": { "type": "string", "nullable": true, "format": "uri", "description": "曲の雰囲気の参照に使う公開 HTTPS 画像。対応モデルだけで指定し、null で解除します。" }, "metadata": { "type": "object", "description": "追跡用にジョブへ保存する値。生成先には送信されません。秘密や個人情報を含めないでください。", "additionalProperties": true }, "mode": { "type": "string", "description": "結果の受け取り方。async は即時受付、sync と subscribe は最大30秒の待機、webhook は終端通知です。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "webhook_url": { "maxLength": 2048, "type": "string", "format": "uri", "description": "終端通知を受ける公開 HTTPS URL。単独指定時は webhook モードになります。" }, "wait_timeout_seconds": { "minimum": 0, "maximum": 30, "type": "integer", "description": "sync または subscribe で HTTP 応答を待つ秒数。時間切れ後も同じジョブを追跡します。" }, "project_id": { "maxLength": 200, "type": "string", "description": "同じワークスペース内でジョブを保存するプロジェクト。存在しない場合は課金前に拒否されます。" } }, "additionalProperties": false }, "example": { "model": "lyria-3-pro", "prompt": "穏やかなピアノと弦楽器、ゆっくり高まる展開。歌声なし。", "mode": "async" } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "music_generation", "status": "queued", "model": "lyria-3-pro", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "lyria-3-pro", "prompt": "穏やかなピアノと弦楽器、ゆっくり高まる展開。歌声なし。", "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 202 ```json { "statusCode": "202", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "music_generation", "status": "queued", "model": "lyria-3-pro", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "lyria-3-pro", "prompt": "穏やかなピアノと弦楽器、ゆっくり高まる展開。歌声なし。", "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 402 ```json { "statusCode": "402", "description": "利用可能残高が不足しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_funds", "message": "利用可能残高が不足しています。入金後は新しい冪等性キーで送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "billing", "stage": "reservation", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_funds", "next_action": "add_funds" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 413 ```json { "statusCode": "413", "description": "リクエスト本体またはアップロードがサイズ上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "payload_too_large", "message": "リクエスト本体がサイズ上限を超えました。本体を小さくし、ファイルのバイト列は upload_url へ送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "payload_too_large", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/music-router/generate' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{"model": "lyria-3-pro", "prompt": "穏やかなピアノと弦楽器、ゆっくり高まる展開。歌声なし。", "mode": "async"}' \ --header 'Idempotency-Key: 9816bc88-9791-43a1-86c2-876dc7c544e8' ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/music-router/generate', { method: 'POST', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8' }, body: JSON.stringify({"model": "lyria-3-pro", "prompt": "穏やかなピアノと弦楽器、ゆっくり高まる展開。歌声なし。", "mode": "async"}), }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.post( 'https://api.orchestor.io/v1/music-router/generate', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}", 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8'}, json={'model': 'lyria-3-pro', 'prompt': '穏やかなピアノと弦楽器、ゆっくり高まる展開。歌声なし。', 'mode': 'async'}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-transcribe-stt --- title: 音声を文字起こし description: 音声から文章と単語時刻を取得します。全文は成果物の JSON で取得できます。segmentation を指定すると文区間も返します。言語ヒントを省略すると自動判定します。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-transcribe-stt markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-transcribe-stt.md --- # 音声を文字起こし 音声から文章と単語時刻を取得します。全文は成果物の JSON で取得できます。segmentation を指定すると文区間も返します。言語ヒントを省略すると自動判定します。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 ```http POST /v1/stt-1.0/transcribe ``` Server: https://api.orchestor.io Operation ID: `transcribeCreativeStt` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "Idempotency-Key", "in": "header", "required": false, "description": "同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。", "schema": { "minLength": 1, "maxLength": 255, "pattern": "^[ -~]+$", "type": "string" } } ] ``` ## Request body ```json { "required": true, "content": [ { "contentType": "application/json", "schema": { "name": "SttTranscribeRequest", "type": "object", "description": "公開音声から文章と単語時刻を返します。料金は実ファイルの長さで決まり、申告した duration_seconds では変わりません。", "required": [ "audio_url" ], "properties": { "audio_url": { "type": "string", "format": "uri", "description": "処理が終わるまで取得可能な公開 HTTPS 音声 URL。ローカルファイルは先にアップロードします。" }, "segmentation": { "type": "object", "description": "単語の時刻から文単位の区間を作る設定。TTS では timestamps.words も有効にします。", "required": [ "mode" ], "properties": { "mode": { "type": "string", "description": "単語の時刻を文単位へまとめる方式。sentence を指定します。", "enumValues": [ "sentence" ] }, "boundary_lead_ms": { "minimum": 0, "maximum": 500, "type": "integer", "description": "文末の最後の単語から区切りまで追加するミリ秒数。既定値は70です。", "default": 70 } }, "additionalProperties": false }, "language_code": { "minLength": 2, "maxLength": 16, "type": "string", "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "duration_seconds": { "type": "integer", "description": "入力の長さの参考値。受付条件と料金はサーバーの実測値で決まります。" }, "metadata": { "type": "object", "description": "追跡用にジョブへ保存する値。生成先には送信されません。秘密や個人情報を含めないでください。", "additionalProperties": true }, "mode": { "type": "string", "description": "結果の受け取り方。async は即時受付、sync と subscribe は最大30秒の待機、webhook は終端通知です。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "webhook_url": { "maxLength": 2048, "type": "string", "format": "uri", "description": "終端通知を受ける公開 HTTPS URL。単独指定時は webhook モードになります。" }, "wait_timeout_seconds": { "minimum": 0, "maximum": 30, "type": "integer", "description": "sync または subscribe で HTTP 応答を待つ秒数。時間切れ後も同じジョブを追跡します。" }, "project_id": { "maxLength": 200, "type": "string", "description": "同じワークスペース内でジョブを保存するプロジェクト。存在しない場合は課金前に拒否されます。" } }, "additionalProperties": false }, "example": { "audio_url": "https://media.orchestor.io/inputs/narration.wav", "language_code": "ja", "segmentation": { "mode": "sentence" }, "mode": "async" } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "speech_to_text", "status": "queued", "model": "orchestor/stt-1.0", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "audio_url": "https://media.orchestor.io/inputs/narration.wav", "language_code": "ja", "segmentation": { "mode": "sentence" }, "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 202 ```json { "statusCode": "202", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "speech_to_text", "status": "queued", "model": "orchestor/stt-1.0", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "audio_url": "https://media.orchestor.io/inputs/narration.wav", "language_code": "ja", "segmentation": { "mode": "sentence" }, "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 402 ```json { "statusCode": "402", "description": "利用可能残高が不足しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_funds", "message": "利用可能残高が不足しています。入金後は新しい冪等性キーで送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "billing", "stage": "reservation", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_funds", "next_action": "add_funds" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 413 ```json { "statusCode": "413", "description": "リクエスト本体またはアップロードがサイズ上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "payload_too_large", "message": "リクエスト本体がサイズ上限を超えました。本体を小さくし、ファイルのバイト列は upload_url へ送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "payload_too_large", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/stt-1.0/transcribe' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{"audio_url": "https://media.orchestor.io/inputs/narration.wav", "language_code": "ja", "segmentation": {"mode": "sentence"}, "mode": "async"}' \ --header 'Idempotency-Key: 9816bc88-9791-43a1-86c2-876dc7c544e8' ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/stt-1.0/transcribe', { method: 'POST', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8' }, body: JSON.stringify({"audio_url": "https://media.orchestor.io/inputs/narration.wav", "language_code": "ja", "segmentation": {"mode": "sentence"}, "mode": "async"}), }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.post( 'https://api.orchestor.io/v1/stt-1.0/transcribe', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}", 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8'}, json={'audio_url': 'https://media.orchestor.io/inputs/narration.wav', 'language_code': 'ja', 'segmentation': {'mode': 'sentence'}, 'mode': 'async'}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-text-router --- title: テキスト生成ジョブを作成 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-text-router markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-text-router.md --- # テキスト生成ジョブを作成 ```http POST /v1/text-router/generate ``` Server: https://api.orchestor.io Operation ID: `generateCreativeTextRouter` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "Idempotency-Key", "in": "header", "required": false, "schema": { "minLength": 1, "maxLength": 255, "pattern": "^[ -~]+$", "type": "string" } } ] ``` ## Request body ```json { "required": true, "content": [ { "contentType": "application/json", "schema": { "name": "TextRouterGenerationRequest", "type": "object", "required": [ "model", "prompt" ], "properties": { "model": { "minLength": 1, "maxLength": 100, "type": "string" }, "prompt": { "minLength": 1, "maxLength": 24000, "type": "string" }, "system": { "maxLength": 12000, "type": "string" }, "image_urls": { "maxItems": 4, "type": "array", "items": { "maxLength": 2048, "type": "string", "format": "uri" } } }, "additionalProperties": false } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "受け付けたジョブまたは既存のジョブと追跡 URL。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力またはモデルが無効です。", "headers": [], "content": [] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [], "content": [] } ``` ### 402 ```json { "statusCode": "402", "description": "クレジットが不足しています。", "headers": [], "content": [] } ``` ### 403 ```json { "statusCode": "403", "description": "利用権限または残高が不足しています。", "headers": [], "content": [] } ``` ### 409 ```json { "statusCode": "409", "description": "同一のキーに異なる入力が指定されました。", "headers": [], "content": [] } ``` ### 503 ```json { "statusCode": "503", "description": "ジョブをキューに登録できませんでした。", "headers": [], "content": [] } ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-tts-router --- title: モデルを選んで音声を生成 description: モデルと声を指定して読み上げジョブを作成します。モデルが対応しない設定は入力エラーになります。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-tts-router markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-tts-router.md --- # モデルを選んで音声を生成 モデルと声を指定して読み上げジョブを作成します。モデルが対応しない設定は入力エラーになります。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 ```http POST /v1/tts-router/generate ``` Server: https://api.orchestor.io Operation ID: `generateCreativeTtsRouter` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "Idempotency-Key", "in": "header", "required": false, "description": "同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。", "schema": { "minLength": 1, "maxLength": 255, "pattern": "^[ -~]+$", "type": "string" } } ] ``` ## Request body ```json { "required": true, "content": [ { "contentType": "application/json", "schema": { "name": "TtsRouterGenerationRequest", "type": "object", "description": "model によって使える声と設定が異なります。sonic 系列以外では原稿参照、アバター、単語時刻、文分割を指定できません。Eleven 系列では generation_config も指定できません。", "required": [ "model" ], "properties": { "model": { "type": "string", "description": "生成で使用するカタログ ID。対応する入力・設定をモデル一覧で確認してください。", "enumValues": [ "sonic-3.6", "sonic-3.5", "sonic-3", "sonic-latest", "sonic-preview", "sonic-2", "sonic-turbo", "eleven-v4", "eleven-v4-turbo", "eleven-v3", "eleven-multilingual-v2", "eleven-turbo-v2.5", "seed-audio-1.0", "qwen-audio-3.0-tts", "minimax-speech-2.8-hd", "seed-speech", "fish-audio-s2.1-pro", "fish-audio-s2-pro" ] }, "dialogue": { "minItems": 1, "type": "array", "description": "ElevenLabs v4 または v3 で読み上げる話者と文章の配列。文章の合計にモデルの文字数上限を適用します。", "items": { "type": "object", "required": [ "text", "voice" ], "properties": { "text": { "minLength": 1, "type": "string" }, "voice": { "type": "object", "required": [ "id" ], "properties": { "id": { "minLength": 1, "maxLength": 128, "type": "string" } }, "additionalProperties": false } }, "additionalProperties": false } }, "transcript_source": { "type": "object", "description": "受理済み原稿の版と文 ID による入力。transcript、transcript_source、dialogue のうち 1 つを指定します。", "required": [ "script_revision_id", "sentence_ids" ], "properties": { "script_revision_id": { "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "minItems": 1, "maxItems": 1000, "uniqueItems": true, "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } } }, "additionalProperties": false }, "transcript": { "minLength": 1, "maxLength": 20000, "type": "string", "description": "読み上げる文章。transcript、transcript_source、dialogue のうち 1 つを指定し、モデルの文字数上限も守ります。" }, "avatar_id": { "minLength": 1, "type": "string", "description": "同じワークスペース内のアバターから声を選ぶ ID。voice.id と併記する場合は同じ声である必要があります。" }, "avatar_handle": { "minLength": 2, "maxLength": 31, "pattern": "^@?(?![._])(?!.*[._]$)(?!.*[._]{2})[A-Za-z0-9._]{2,30}$", "type": "string", "description": "アバターのハンドルで声を選びます。avatar_id も指定するときは同じアバターを指す必要があります。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "confirm_language_mismatch": { "type": "boolean", "description": "声と言語の不一致を利用者が確認した後だけ true にします。初回は省略します。" }, "language": { "minLength": 2, "maxLength": 16, "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "style_instruction": { "minLength": 1, "maxLength": 128, "type": "string", "description": "Qwen の話し方や声の雰囲気を指定します。" }, "text_normalization": { "type": "boolean", "description": "MiniMax で英語の数字などを読み上げ用に正規化します。" }, "reference_audios": { "minItems": 1, "maxItems": 3, "type": "array", "description": "Seed Audio の参照音声の公開 HTTPS URL。原稿中では @Audio1、@Audio2、@Audio3 で参照します。", "items": { "maxLength": 2048, "type": "string", "format": "uri" } }, "reference_image": { "maxLength": 2048, "type": "string", "format": "uri", "description": "Seed Audio の参照画像の公開 HTTPS URL。参照音声とは併用できません。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw", "opus" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "pronunciation_dict_id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "読み方を補正する既存の発音辞書の ID。" }, "generation_config": { "type": "object", "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "minimum": 0.1, "maximum": 10, "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "minimum": 0.5, "maximum": 2, "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "pitch": { "minimum": -12, "maximum": 12, "type": "number", "description": "音高の変化量。半音単位で指定し、対応するプリセットモデルだけで使います。" }, "emotion": { "minLength": 1, "maxLength": 64, "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": false }, "speed": { "type": "string", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。", "enumValues": [ "slow", "normal", "fast" ] }, "timestamps": { "type": "object", "description": "単語ごとの開始・終了時刻を音声の結果に含める設定。", "properties": { "words": { "type": "boolean", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。" } }, "additionalProperties": false }, "segmentation": { "type": "object", "description": "単語の時刻から文単位の区間を作る設定。TTS では timestamps.words も有効にします。", "required": [ "mode" ], "properties": { "mode": { "type": "string", "description": "単語の時刻を文単位へまとめる方式。sentence を指定します。", "enumValues": [ "sentence" ] }, "boundary_lead_ms": { "minimum": 0, "maximum": 500, "type": "integer", "description": "文末の最後の単語から区切りまで追加するミリ秒数。既定値は70です。", "default": 70 }, "emit_audio": { "type": "boolean", "description": "wav または raw のとき、文ごとの音声 URL も返します。MP3 では時刻だけを返します。", "default": true } }, "additionalProperties": false }, "metadata": { "type": "object", "description": "追跡用にジョブへ保存する値。生成先には送信されません。秘密や個人情報を含めないでください。", "additionalProperties": true }, "mode": { "type": "string", "description": "結果の受け取り方。async は即時受付、sync と subscribe は最大30秒の待機、webhook は終端通知です。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "webhook_url": { "maxLength": 2048, "type": "string", "format": "uri", "description": "終端通知を受ける公開 HTTPS URL。単独指定時は webhook モードになります。" }, "wait_timeout_seconds": { "minimum": 0, "maximum": 30, "type": "integer", "description": "sync または subscribe で HTTP 応答を待つ秒数。時間切れ後も同じジョブを追跡します。" }, "project_id": { "maxLength": 200, "type": "string", "description": "同じワークスペース内でジョブを保存するプロジェクト。存在しない場合は課金前に拒否されます。" }, "voice_settings": { "type": "object", "description": "Eleven 系列が公開している声の設定。モデルの対応項目だけを指定します。", "properties": { "stability": { "minimum": 0, "maximum": 1, "type": "number", "description": "声の表現の安定度。小さいほど表現が変化し、大きいほど一定になります。" }, "similarity_boost": { "minimum": 0, "maximum": 1, "type": "number", "description": "選択した声の特徴へ近づける強さ。" }, "style": { "minimum": 0, "maximum": 1, "type": "number", "description": "声の演技や抑揚を強調する度合い。" }, "speed": { "minimum": 0.7, "maximum": 1.2, "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" } }, "additionalProperties": false }, "apply_text_normalization": { "type": "string", "description": "数字や略語を読み上げ用に展開する設定。対応モデルだけで使います。", "enumValues": [ "auto", "on", "off" ] }, "seed": { "minimum": 0, "maximum": 4294967295, "type": "integer", "description": "音声の再現性を近づける乱数シード。対応する Eleven v4 系列で使い、完全一致は保証しません。" } }, "additionalProperties": false, "anyOf": [ { "required": [ "dialogue" ] }, { "required": [ "voice" ] }, { "required": [ "avatar_id" ] }, { "required": [ "avatar_handle" ] }, { "required": [ "transcript" ], "properties": { "model": { "enumValues": [ "seed-audio-1.0" ] } } } ], "oneOf": [ { "required": [ "transcript" ] }, { "required": [ "transcript_source" ] }, { "required": [ "dialogue" ] } ] }, "example": { "model": "sonic-3.6", "transcript": "新しい一日を始めましょう。", "voice": { "mode": "id", "id": "694f9389-aac1-45b6-b726-9d9369183238" }, "language": "ja", "mode": "async" } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "tts-router", "status": "queued", "model": "sonic-3.6", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "sonic-3.6", "transcript": "新しい一日を始めましょう。", "voice": { "mode": "id", "id": "694f9389-aac1-45b6-b726-9d9369183238" }, "language": "ja", "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 202 ```json { "statusCode": "202", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "tts-router", "status": "queued", "model": "sonic-3.6", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "sonic-3.6", "transcript": "新しい一日を始めましょう。", "voice": { "mode": "id", "id": "694f9389-aac1-45b6-b726-9d9369183238" }, "language": "ja", "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 402 ```json { "statusCode": "402", "description": "利用可能残高が不足しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_funds", "message": "利用可能残高が不足しています。入金後は新しい冪等性キーで送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "billing", "stage": "reservation", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_funds", "next_action": "add_funds" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 413 ```json { "statusCode": "413", "description": "リクエスト本体またはアップロードがサイズ上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "payload_too_large", "message": "リクエスト本体がサイズ上限を超えました。本体を小さくし、ファイルのバイト列は upload_url へ送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "payload_too_large", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/tts-router/generate' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{"model": "sonic-3.6", "transcript": "新しい一日を始めましょう。", "voice": {"mode": "id", "id": "694f9389-aac1-45b6-b726-9d9369183238"}, "language": "ja", "mode": "async"}' \ --header 'Idempotency-Key: 9816bc88-9791-43a1-86c2-876dc7c544e8' ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/tts-router/generate', { method: 'POST', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8' }, body: JSON.stringify({"model": "sonic-3.6", "transcript": "新しい一日を始めましょう。", "voice": {"mode": "id", "id": "694f9389-aac1-45b6-b726-9d9369183238"}, "language": "ja", "mode": "async"}), }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.post( 'https://api.orchestor.io/v1/tts-router/generate', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}", 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8'}, json={'model': 'sonic-3.6', 'transcript': '新しい一日を始めましょう。', 'voice': {'mode': 'id', 'id': '694f9389-aac1-45b6-b726-9d9369183238'}, 'language': 'ja', 'mode': 'async'}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-video --- title: 動画を生成 description: model でモデルを指定します。async と webhook は即座にジョブを返し、sync と subscribe は最大 30 秒待機します。次のポーリングまで next_poll_after_seconds 秒待ちます。同じ Idempotency-Key と入力の再送は同じジョブを返し、異なる入力は 409 になります。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-video markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-generate-video.md --- # 動画を生成 model でモデルを指定します。async と webhook は即座にジョブを返し、sync と subscribe は最大 30 秒待機します。次のポーリングまで next_poll_after_seconds 秒待ちます。同じ Idempotency-Key と入力の再送は同じジョブを返し、異なる入力は 409 になります。 ```http POST /v1/video-router/generate ``` Server: https://api.orchestor.io Operation ID: `generateCreativeVideo` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "Idempotency-Key", "in": "header", "required": false, "description": "同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。", "schema": { "minLength": 1, "maxLength": 255, "pattern": "^[ -~]+$", "type": "string" } } ] ``` ## Request body ```json { "description": "以下の入力を JSON で送信します。モデル固有の項目はカタログの対応条件も確認してください。", "required": true, "content": [ { "contentType": "application/json", "schema": { "name": "VideoGenerationRequest", "type": "object", "required": [ "model" ], "properties": { "model": { "type": "string", "description": "カタログのモデル ID、または auto- を指定します。auto- は入力に応じてモデルを選ぶため、カタログの個別モデル行には含まれません。", "enumValues": [ "higgsfield-genjutsu", "higgsfield-genjutsu-object-swap", "higgsfield-genjutsu-light", "higgsfield-genjutsu-light-object-swap", "seedance-2.5", "magi-2", "seedance-2-mini", "seedance-2", "seedance-2-fast", "kling-3", "wan-3.0", "grok-imagine-video-1.5", "minimax-h3", "minimax-h3-max", "minimax-h3-lite", "minimax-h3-highspeed", "wan-2.5-fast", "gemini-omni-flash-1-2-extend", "gemini-omni-flash-1.1", "gemini-omni-flash-1.2", "vidu-q4", "vidu-q4-reference", "veo-3.1", "veo-3.1-fast", "veo-3.1-lite", "kling-4", "kling-4-omni", "kling-o1-video", "flux-3-video-edit", "minimax-02-fast", "minimax-02", "kling-3-omni-edit", "kling-o1-video-edit", "wan-2.2", "wan-2.2-fast", "grok-video-edit", "kling-4-0-flash", "flux-3-video", "kling-2.5-turbo", "wan-2.7", "wan-2.6", "wan-2.5", "seedance-pro", "seedance-pro-fast", "grok-imagine-video", "grok-imagine-video-1.5-lite", "kling-motion-control", "kling-3-motion-control", "gemini-omni-flash-1-2-edit", "seedance-2.5-edit", "vidu-q3-pro", "vidu-q3-turbo", "vidu-q3", "vidu-q3-mix", "pixverse-c1", "pixverse-v6", "wand-vega-1.0-lite", "wand-vega-1.0-pro", "wand-vega-1.5-pro", "mingmou-1", "hailuo-h3-regen", "heygen-video-1", "kling-2.6", "kling-3-turbo", "kling-3-omni", "hailuo-2.3", "hailuo-2.3-fast", "happy-horse-1.0", "happy-horse-1.1", "wan-3.0-prime", "higgsfield-cinema-studio-4", "heygen-avatar-6", "heygen-avatar-6-turbo", "hedra-character-3", "veed-fabric-1.0", "kling-avatar-2.0-pro", "kling-avatar-2.0", "omnihuman-1.5", "omnihuman-2", "infinitalk", "wan-2.2-speech-to-video", "sync-lipsync-3", "sync-lipsync-2-pro", "sync-lipsync-2", "kling-lipsync", "latentsync", "veed-lipsync", "pixverse-lipsync", "infinitalk-video", "veed-subtitles", "veed-dubbing", "topaz-video", "flux-video-upscale", "topaz-starlight", "bytedance-video-upscale", "sam-3.1-video", "luma-ray-3.2-reframe", "depth-anything-video", "topaz-interpolate", "topaz-sdr-to-hdr", "ltx-2.5-hdr", "orchestor/wand", "auto-" ] }, "prompt": { "minLength": 1, "type": "string", "description": "生成する内容、または編集で変更したい内容を記述する文章。HeyGen Avatar 6 と Turbo では動きを指定でき、上限は 1,200 文字です。MAGI-2 は最大 15,000 文字で、テキスト入力と参照入力では必須です。" }, "medias": { "type": "array", "description": "同じワークスペース内のアップロードまたは完了済みジョブを参照します。参照画像は image または image_references、開始フレームは start_image、終了フレームは end_image を指定します。", "items": { "name": "CreativeBatchMediaRequest", "type": "object", "required": [ "value", "role" ], "properties": { "value": { "pattern": "^(job_)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "type": "string", "description": "A media ID from an upload in this workspace or a completed job ID (job_ or bare UUID). Use URL fields for HTTPS references. General files are download-only." }, "role": { "minLength": 1, "type": "string" } }, "additionalProperties": false } }, "image_url": { "type": "string", "format": "uri", "description": "動画の最初のフレーム、または顔画像に使う公開 HTTPS URL。" }, "end_image_url": { "type": "string", "format": "uri", "description": "動画の最後のフレームの公開 HTTPS URL。image_url と組み合わせて指定します。MAGI-2 では開始・終了フレームと参照素材を併用できません。" }, "video_url": { "type": "string", "format": "uri", "description": "編集・延長などの入力動画の公開 HTTPS URL。" }, "motion_video_url": { "type": "string", "format": "uri", "description": "モーション元の動画。motion control モデルのみ" }, "character_orientation": { "type": "string", "description": "video は動作参照動画、image は静止画の構図を優先します。", "enumValues": [ "image", "video" ] }, "keep_original_sound": { "type": "boolean", "description": "true では動作参照動画の音声を残し、false では無音にします。" }, "reference_images": { "maxItems": 30, "type": "array", "description": "参照画像を URL または種類付きのオブジェクトで指定します。モデルごとの上限は capabilities を確認してください。MAGI-2 は最大 10 枚で、各ファイルは 30 MB 以下の JPEG、PNG、WebP に対応します。", "items": { "anyOf": [ { "maxLength": 2048, "type": "string", "format": "uri" }, { "type": "object", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "参照入力の渡し方。URL、アセット ID、Base64 を区別します。", "enumValues": [ "url", "asset_id", "base64" ] }, "url": { "maxLength": 2048, "type": "string", "format": "uri", "description": "参照メディアを取得できる URL。URL 形式で渡す場合に使用します。" } } } ] } }, "reference_videos": { "maxItems": 10, "type": "array", "description": "参照動画を URL または種類付きのオブジェクトで指定します。モデルごとの上限は capabilities を確認してください。MAGI-2 は最大 5 本で、各ファイルは 200 MB 以下の MP4 または MOV です。各 2〜30 秒、合計 30 秒以内で指定します。", "items": { "anyOf": [ { "maxLength": 2048, "type": "string", "format": "uri" }, { "type": "object", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "参照入力の渡し方。URL、アセット ID、Base64 を区別します。", "enumValues": [ "url", "asset_id", "base64" ] }, "url": { "maxLength": 2048, "type": "string", "format": "uri", "description": "参照メディアを取得できる URL。URL 形式で渡す場合に使用します。" } } } ] } }, "reference_audio": { "maxItems": 50, "type": "array", "description": "参照音声を URL または種類付きのオブジェクトで指定します。モデルごとの上限と合計上限は capabilities を確認してください。MAGI-2 は最大 5 件で、各ファイルは 15 MB 以下の MP3 または WAV です。各 2〜30 秒、合計 30 秒以内で指定します。", "items": { "anyOf": [ { "maxLength": 2048, "type": "string", "format": "uri" }, { "type": "object", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "参照入力の渡し方。URL、アセット ID、Base64 を区別します。", "enumValues": [ "url", "asset_id", "base64" ] }, "url": { "maxLength": 2048, "type": "string", "format": "uri", "description": "参照メディアを取得できる URL。URL 形式で渡す場合に使用します。" } } } ] } }, "resolution": { "type": "string", "description": "出力の解像度。モデルが対応する値をカタログで確認します。MAGI-2 は 1080p のみです。HeyGen Avatar 6 と Turbo は 1080p(既定値)と 2k(2K も可)に対応します。", "enumValues": [ "360p", "480p", "540p", "720p", "768p", "1080p", "2K", "2k", "4K", "4k", "8K", "hd", "fhd" ] }, "duration_seconds": { "minimum": 1, "maximum": 600, "type": "integer", "description": "生成する動画の長さを秒で指定します。共通範囲は 1〜600 秒で、モデルごとの範囲も適用されます。MAGI-2 は 4〜30 秒(既定値 5 秒)です。HeyGen Avatar 6 と Turbo では省略します。" }, "aspect_ratio": { "type": "string", "description": "出力の幅と高さの比。auto は入力画像に合わせます。モデルの対応値を確認してください。MAGI-2 は 16:9(既定値)、21:9、4:3、1:1、3:4、9:16 に対応します。", "enumValues": [ "auto", "adaptive", "21:9", "2:1", "16:9", "4:3", "1:1", "3:4", "9:16", "3:2", "2:3", "9:21" ] }, "generate_audio": { "type": "boolean", "description": "対応するモデルで動画と同時に音声を生成するかどうか。" }, "genre": { "type": "string", "description": "higgsfield-cinema-studio-4 のジャンル。自動設定では省略します。", "enumValues": [ "epic", "drama", "noir", "comedy", "horror", "action" ] }, "era": { "type": "string", "description": "higgsfield-cinema-studio-4 の年代。自動設定では省略します。", "enumValues": [ "1960s", "1980s", "1990s", "2000s", "2020s" ] }, "pacing": { "type": "string", "description": "higgsfield-cinema-studio-4 のテンポ。自動設定では省略します。", "enumValues": [ "chaotic", "dynamic", "calm", "single-shot" ] }, "light": { "type": "string", "description": "higgsfield-cinema-studio-4 のライティング。自動設定では省略します。", "enumValues": [ "silhouette", "practicals", "window", "overhead-fall", "contre-jour", "soft-cross" ] }, "camera_model": { "type": "string", "description": "higgsfield-cinema-studio-4 のカメラ。自動設定では省略します。", "enumValues": [ "modern", "35mm-film", "8mm-film", "dv-camcorder" ] }, "camera_lens": { "type": "string", "description": "higgsfield-cinema-studio-4 のレンズ。自動設定では省略します。", "enumValues": [ "clean-sharp", "anamorphic", "vintage-anamorphic", "warm-vintage", "halation-vintage" ] }, "camera_aperture": { "type": "string", "description": "higgsfield-cinema-studio-4 の絞り。自動設定では省略します。", "enumValues": [ "f14-wide-open", "f4-moderate", "f11-deep-focus" ] }, "camera_movement": { "type": "string", "description": "higgsfield-cinema-studio-4 のムーブメント。自動設定では省略します。", "enumValues": [ "snorricam", "robot-arm", "tilt-up", "rack-focus", "tilt-down", "pov", "pan-left", "crane-up", "pan-right", "crane-down", "side-tracking", "pedestal-up", "pedestal-down", "handheld", "tracking", "drone-orbit", "dolly-zoom", "aerial-pullback", "static-shot", "bullet-time", "whip-pan", "slow-zoom-in", "arc-left", "slow-zoom-out", "arc-right", "truck-right", "dolly-in", "truck-left", "dolly-out", "slider-right", "crush-zoom", "slider-left", "helicopter-shot" ] }, "color_palette": { "type": "string", "description": "higgsfield-cinema-studio-4 のカラーパレット。自動設定では省略します。", "enumValues": [ "static-noon", "twilight-fable", "back-row-kissing-seats", "on-the-other-side-of-the-porthole", "the-emerald-ambush", "highway-standoff", "the-faded-fresco", "oil-ochre", "the-mountain-convent", "ghost-in-the-code", "pink-velvet", "two-days-to-the-horizon", "industrial-fog", "stairs-go-up", "field-post", "home-is-the-next-gas-station", "glossy-flesh", "the-crimson-ballet", "neon-rain-at-midnight", "the-morning-after-rain", "the-iron-borough", "the-ground", "the-investigation", "turquoise-mirage", "a-dream-in-color", "breakfast-on-schedule", "favela-gold", "a-hotel-for-one", "after-dark", "crimson-vigi", "the-neighbors-saw-everything", "the-grey-channel", "mirage-at-noon", "bubblegum-boulevard", "yellow-room", "the-earth-keeps-things-reluctantly", "tropic-fever-dream", "bioluminescent-night", "dont-turn-it-off-im-watching", "the-silk-curtain-falls", "the-butterfly", "playtime", "wallpaper-romance", "overtime", "the-way-home-is-longer", "everyone-speaks-in-whispers", "runaway-summer", "amber-wasteland", "the-circus", "gasoline-sunset" ] }, "metadata": { "type": "object", "description": "利用者の追跡用データ。ジョブと関連付けて保存し、モデルには送りません。", "additionalProperties": true }, "mode": { "type": "string", "description": "async は即時応答、webhook は終端通知、sync と subscribe は時間を区切って完了を待ちます。", "default": "async", "enumValues": [ "async", "sync", "subscribe", "webhook", "text_to_video", "image_to_video", "reference_to_video", "t2v", "i2v", "ref2va" ] }, "webhook_url": { "maxLength": 2048, "type": "string", "format": "uri", "description": "終端イベントを受け取る公開 HTTPS URL(2048 文字以内、既定のポート)。async または webhook モードで指定し、sync とは併用できません。localhost、プライベート、ループバック、リンクローカルのアドレス宛ては指定できません。ジョブが完了、失敗、取消のいずれかになると、ワークスペースの署名シークレットで署名した通知を 1 件送ります。" }, "wait_timeout_seconds": { "minimum": 0, "maximum": 30, "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "project_id": { "maxLength": 200, "type": "string", "description": "ジョブまたは配置先を関連付けるプロジェクトの ID。" }, "seed": { "minimum": 0, "maximum": 4294967295, "type": "integer", "description": "再現性の調整に使う乱数シード。0〜4,294,967,295。" }, "task": { "type": "string", "description": "auto- の自動モデル選択に渡す制作意図。名前を指定したモデルでは使用しません。" }, "audio_url": { "type": "string", "format": "uri", "description": "リップシンク用の音声の公開 HTTPS URL。顔画像には image_url、顔動画には video_url を使います。HeyGen Avatar 6 と Turbo は音声の長さで動画の長さを決めます。" }, "model_params": { "type": "object", "description": "モデル固有設定の予約領域。現在は省略するか空オブジェクトを指定します。追加のキーは受け付けません。", "additionalProperties": false }, "prompt_enhancement": { "type": "string", "description": "heygen-video-1 の文章補正。15 秒超では turbo、quality、default を使います。default は turbo と同じ指定です。", "enumValues": [ "turbo", "quality", "ultraquality", "disabled", "default" ] }, "end_user_id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "heygen-video-1 に渡す利用者の不透明な ID。1〜128 文字、空白と個人情報を含めません。" }, "callback_id": { "maxLength": 256, "type": "string", "description": "heygen-video-1 の追跡用 ID。最大 256 文字で metadata.callback_id に保存し、通知にも含めます。" }, "draft": { "type": "boolean", "description": "seedance-2.5 で 480p の下書きを作成します。duration_seconds が必須で、video_url、extend、source_duration、draft_job_id は併用できません。" }, "draft_job_id": { "type": "string", "description": "seedance-2.5 の完了済み下書きの ID。model とこの ID を送ると、元の生成入力を引き継ぎます。resolution: 1080p と保存先の project_id を指定できます。作成後 14 日以内に使用します。" }, "extend": { "type": "boolean", "description": "seedance-2.5 で video_url の続きを生成します。duration_seconds は追加部分の 4〜30 秒です。" }, "source_duration": { "minimum": 1, "maximum": 30, "type": "integer", "description": "延長する元動画の秒数を切り上げた整数。1〜30。seedance-2.5 の extend で使用し、省略時は 15 秒として料金を計算します。" }, "dubbing": { "type": "object", "description": "veed-dubbing の翻訳吹替設定。video_url と 8〜600 秒の duration_seconds が必要で、prompt・resolution・aspect_ratio は指定しません。", "required": [ "target_language" ], "properties": { "target_language": { "type": "string", "description": "吹替先の言語。ko などの BCP 47 基本言語タグで、地域付きのタグは指定できません。" }, "source_language": { "type": "string", "description": "入力動画の言語。省略または auto で自動判定します。" } }, "additionalProperties": false }, "captions": { "type": "object", "description": "veed-subtitles の字幕設定。video_url と 2〜600 秒の duration_seconds が必要です。課金対象は最低 60 秒、既定の resolution は 1080p です。", "required": [ "style" ], "properties": { "style": { "type": "string", "description": "モデルカタログにある字幕のスタイル。動的なスタイルは通常の 2 倍の料金です。" }, "srt": { "maxLength": 100000, "type": "string", "description": "字幕として使う SRT 文字列。最大 100,000 文字。省略時は動画の音声を文字起こしします。" }, "position": { "type": "string", "description": "字幕の表示位置。top は上、center は中央、bottom は下。", "enumValues": [ "top", "center", "bottom" ] }, "shadow": { "type": "string", "description": "字幕の影の強さ。省略すると選択したスタイルの設定を使います。", "enumValues": [ "none", "min", "mid", "max" ] } }, "additionalProperties": false }, "upscale": { "type": "object", "description": "Model-specific upscale options. FLUX requires resolution and creativity, Starlight accepts resolution, or factor with the Topaz Video preset model \"Starlight Precise 2.5\" (served by Starlight Precise 2.6). ByteDance requires resolution, fps, tier and preset. Billing uses the server-measured duration.", "properties": { "resolution": { "type": "string", "description": "FLUX accepts 720p, 1080p, 2K or 4K. Starlight accepts 1080p or 4K. ByteDance accepts 1080p, 2k, 4k or 8k.", "enumValues": [ "720p", "1080p", "2K", "4K", "2k", "4k", "8k" ] }, "creativity": { "type": "string", "description": "FLUX detail enhancement mode.", "enumValues": [ "precise", "creative" ] }, "tier": { "type": "string", "description": "ByteDance enhancement tier.", "enumValues": [ "standard", "pro" ] }, "preset": { "type": "string", "description": "ByteDance scene preset.", "enumValues": [ "general", "aigc", "short_series", "ugc", "old_film" ] }, "factor": { "minimum": 1, "maximum": 4, "type": "number", "description": "縦横それぞれの拡大倍率。1〜4、既定は 2。1 と fps の組み合わせでフレームレートだけを変更できます。" }, "fps": { "minimum": 16, "maximum": 60, "type": "integer", "description": "補間後のフレームレート。16〜60。省略すると入力の値を維持します。" }, "model": { "type": "string", "description": "Topaz の補正モデル名。既定は Proteus。対応値はカタログで確認します。" } }, "additionalProperties": false }, "background": { "type": "object", "description": "SAM segmentation options. The prompt identifies the subject. Billing uses the measured source duration (2–60 seconds).", "properties": { "output": { "type": "string", "description": "Use cutout (default) to apply the mask to the source video, or mask to return the mask video.", "enumValues": [ "cutout", "mask" ] } }, "additionalProperties": false }, "hdr": { "name": "VideoHdrRequest", "type": "object", "properties": { "output_format": { "type": "string", "description": "Use topaz-sdr-to-hdr for HDR10 H.265 MP4 (default) or 10-bit ProRes 422 HQ. Use ltx-2.5-hdr with exr for a preview video and a ZIP archive of 16-bit half-float ACEScg OpenEXR frames. Billing uses up to 60 seconds of measured input and the input pixel count.", "enumValues": [ "mp4", "prores", "exr" ] } }, "additionalProperties": false }, "interpolate": { "name": "VideoInterpolateRequest", "type": "object", "required": [ "target_fps" ], "properties": { "target_fps": { "minimum": 16, "maximum": 120, "type": "integer" } }, "additionalProperties": false }, "depth": { "name": "VideoDepthRequest", "type": "object", "properties": { "colormap": { "type": "string", "enumValues": [ "grayscale", "turbo", "inferno", "magma", "viridis" ] }, "resolution": { "type": "string", "enumValues": [ "auto", "360p", "480p", "720p", "1080p" ] }, "max_frames": { "minimum": 1, "maximum": 2400, "type": "integer" }, "side_by_side": { "type": "boolean" } }, "additionalProperties": false }, "bitrate_mode": { "type": "string", "description": "出力のビットレート設定。standard または high を対応モデルで使用します。", "enumValues": [ "standard", "high" ] }, "frame_images": { "maxItems": 2, "type": "array", "description": "auto- で使用する開始・終了フレーム。最大 2 件で、image_url と併用できます。", "items": { "type": "object", "required": [ "type", "image_url", "frame_type" ], "properties": { "type": { "type": "string", "description": "入力メディアの種類。対応する名前のオブジェクトに URL を指定します。", "enumValues": [ "image_url" ] }, "image_url": { "type": "object", "description": "参照画像の URL を持つオブジェクト。", "required": [ "url" ], "properties": { "url": { "type": "string", "format": "uri", "description": "認証なしで取得でき、ジョブが終わるまで有効な公開 HTTPS URL。" } }, "additionalProperties": false }, "frame_type": { "type": "string", "description": "この画像を first_frame(開始)と last_frame(終了)のどちらに使うか。", "enumValues": [ "first_frame", "last_frame" ] } }, "additionalProperties": false } }, "input_references": { "maxItems": 20, "type": "array", "description": "auto- で使用する参照メディア。最大 20 件で、type と同じ種類の URL オブジェクトを指定します。", "items": { "type": "object", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "入力メディアの種類。対応する名前のオブジェクトに URL を指定します。", "enumValues": [ "image_url", "audio_url", "video_url" ] }, "image_url": { "type": "object", "description": "参照画像の URL を持つオブジェクト。", "required": [ "url" ], "properties": { "url": { "type": "string", "format": "uri", "description": "認証なしで取得でき、ジョブが終わるまで有効な公開 HTTPS URL。" } }, "additionalProperties": false }, "audio_url": { "type": "object", "description": "参照音声の URL を持つオブジェクト。", "required": [ "url" ], "properties": { "url": { "type": "string", "format": "uri", "description": "認証なしで取得でき、ジョブが終わるまで有効な公開 HTTPS URL。" } }, "additionalProperties": false }, "video_url": { "type": "object", "description": "参照動画の URL を持つオブジェクト。", "required": [ "url" ], "properties": { "url": { "type": "string", "format": "uri", "description": "認証なしで取得でき、ジョブが終わるまで有効な公開 HTTPS URL。" } }, "additionalProperties": false } }, "additionalProperties": false } } }, "additionalProperties": false }, "example": { "model": "seedance-2.5", "prompt": "草原を流れる雲を固定カメラで撮影", "duration_seconds": 5, "resolution": "480p", "aspect_ratio": "16:9", "mode": "async" } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "生成の受付結果。job.id を保存し、result_ready が false の場合は status_url を指定間隔で取得してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "video_generation", "status": "queued", "model": "seedance-2.5", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "seedance-2.5", "prompt": "草原を流れる雲を固定カメラで撮影", "duration_seconds": 5, "resolution": "480p", "aspect_ratio": "16:9", "mode": "async" } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 402 ```json { "statusCode": "402", "description": "利用可能残高が不足しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_funds", "message": "利用可能残高が不足しています。入金後は新しい冪等性キーで送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "billing", "stage": "reservation", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_funds", "next_action": "add_funds" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 410 ```json { "statusCode": "410", "description": "下書きの作成から 14 日が過ぎています。新しい下書きを作成してください。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } } } ] } ``` ### 413 ```json { "statusCode": "413", "description": "リクエスト本体またはアップロードがサイズ上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "payload_too_large", "message": "リクエスト本体がサイズ上限を超えました。本体を小さくし、ファイルのバイト列は upload_url へ送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "payload_too_large", "next_action": "fix_input" } } } ] } ``` ### 415 ```json { "statusCode": "415", "description": "Content-Type に application/json を指定してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unsupported_media_type", "message": "未対応の Content-Type です。application/json を指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "unsupported_media_type", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエストのレート制限、またはプランの同時実行数の上限に達しました。concurrent_jobs_limit_reached の場合、ジョブは作成されず、クレジットも予約されません。実行中の生成が終わるまで待つか、プランをアップグレードしてください。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "anyOf": [ { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, { "name": "CreativeConcurrencyLimitError", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "required": [ "type", "code", "message", "doc_url", "concurrent_jobs_limit", "kind", "plan" ], "properties": { "type": { "type": "string", "enumValues": [ "rate_limit_error" ] }, "code": { "type": "string", "enumValues": [ "concurrent_jobs_limit_reached" ] }, "message": { "type": "string" }, "doc_url": { "type": "string", "format": "uri" }, "concurrent_jobs_limit": { "minimum": 1, "type": "integer" }, "kind": { "type": "string", "enumValues": [ "video", "image" ] }, "plan": { "type": "string", "description": "Active Orchestor subscription tier from the pricing catalog." } } } } } ] }, "example": { "error": { "type": "rate_limit_error", "code": "concurrent_jobs_limit_reached", "message": "Concurrent creative generation limit reached.", "doc_url": "https://docs.orchestor.io/errors/concurrent_jobs_limit_reached", "concurrent_jobs_limit": 2, "kind": "video", "plan": "creative_starter" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/video-router/generate' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: 9816bc88-9791-43a1-86c2-876dc7c544e8' \ --data-raw '{"model": "seedance-2.5", "prompt": "草原を流れる雲を固定カメラで撮影", "duration_seconds": 5, "resolution": "480p", "aspect_ratio": "16:9", "mode": "async"}' ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/video-router/generate", { method: "POST", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": "9816bc88-9791-43a1-86c2-876dc7c544e8"}, body: JSON.stringify({"model": "seedance-2.5", "prompt": "草原を流れる雲を固定カメラで撮影", "duration_seconds": 5, "resolution": "480p", "aspect_ratio": "16:9", "mode": "async"}), }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'POST', 'https://api.orchestor.io/v1/video-router/generate', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}", 'Content-Type': 'application/json', 'Idempotency-Key': '9816bc88-9791-43a1-86c2-876dc7c544e8'}, json={'model': 'seedance-2.5', 'prompt': '草原を流れる雲を固定カメラで撮影', 'duration_seconds': 5, 'resolution': '480p', 'aspect_ratio': '16:9', 'mode': 'async'}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-create-voice-change --- title: 録音の声を変更 description: 保存済みの 1〜300 秒の録音を Eleven 系列の声で再発話します。録音の長さはサーバーが実測します。動画入力では映像と変更後の音声を返します。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-create-voice-change markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/generation/post-create-voice-change.md --- # 録音の声を変更 保存済みの 1〜300 秒の録音を Eleven 系列の声で再発話します。録音の長さはサーバーが実測します。動画入力では映像と変更後の音声を返します。 受付後は status_url を next_poll_after_seconds に従って確認し、result_ready が true になったら result_url を取得します。 ```http POST /v1/voice-change ``` Server: https://api.orchestor.io Operation ID: `createCreativeVoiceChange` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "Idempotency-Key", "in": "header", "required": false, "description": "同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。", "schema": { "minLength": 1, "maxLength": 255, "pattern": "^[ -~]+$", "type": "string" } } ] ``` ## Request body ```json { "required": true, "content": [ { "contentType": "application/json", "schema": { "name": "VoiceChangeRequest", "type": "object", "description": "同じワークスペースのクリエイティブアップロードを指定します。実測で 1〜300 秒の音声と、音声トラック付きの動画に対応します。file_id、audio_url、video_url のいずれか 1 つを指定してください。", "required": [ "voice" ], "properties": { "file_id": { "pattern": "^file_[a-f0-9]{24}$", "type": "string" }, "audio_url": { "maxLength": 4096, "type": "string", "format": "uri" }, "video_url": { "maxLength": 4096, "type": "string", "format": "uri" }, "duration_seconds": { "minimum": 1, "maximum": 300, "type": "number", "description": "入力の再生秒数。料金はサーバーの実測値で決まります。" }, "voice": { "type": "object", "required": [ "id" ], "properties": { "id": { "minLength": 1, "maxLength": 128, "type": "string" } }, "additionalProperties": false }, "voice_settings": { "type": "object", "properties": { "stability": { "minimum": 0, "maximum": 1, "type": "number" }, "similarity_boost": { "minimum": 0, "maximum": 1, "type": "number" }, "style": { "minimum": 0, "maximum": 1, "type": "number" }, "use_speaker_boost": { "type": "boolean" } }, "additionalProperties": false }, "remove_background_noise": { "type": "boolean" }, "output_format": { "type": "string", "description": "音声出力の形式。PCM は WAV で返します。動画の出力形式は入力クリップに合わせます。", "enumValues": [ "mp3_44100_128", "mp3_44100_192", "pcm_8000", "pcm_16000", "pcm_22050", "pcm_24000", "pcm_44100", "pcm_48000" ] } }, "additionalProperties": false, "oneOf": [ { "required": [ "file_id" ] }, { "required": [ "audio_url" ] }, { "required": [ "video_url" ] } ] }, "example": { "file_id": "file_0123456789abcdef01234567", "duration_seconds": 20, "voice": { "id": "21m00Tcm4TlvDq8ikWAM" } } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "voice_change", "status": "queued", "model": "orchestor/voice-change-1.0", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "file_id": "file_0123456789abcdef01234567", "duration_seconds": 20, "voice": { "id": "21m00Tcm4TlvDq8ikWAM" } } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 202 ```json { "statusCode": "202", "description": "ジョブの現在状態と追跡 URL。受付は処理の完了を意味しません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "SubmitJobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "idempotency_hit", "usage" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "usage": { "type": "object", "description": "この生成の料金予約や決済の情報。", "required": [ "credits" ], "properties": { "credits": { "minimum": 0, "type": "number", "nullable": true, "description": "Orchestor credits reserved for this generation, captured on completion or released on failure." }, "usd": { "pattern": "^\\d+\\.\\d{2}$", "type": "string", "description": "指定した処理の料金。単位は USD。" }, "cost": { "minimum": 0, "type": "number", "description": "割引適用後に必要な料金。" }, "cost_details": { "type": "object", "description": "通常料金、割引、適用元の内訳。", "required": [ "list_cost", "discount", "discount_source" ], "properties": { "list_cost": { "minimum": 0, "type": "number", "description": "割引前の通常料金。" }, "discount": { "minimum": 0, "type": "number", "description": "通常料金から差し引く金額。" }, "discount_source": { "type": "string", "nullable": true, "description": "適用した割引の種類。適用がなければ null。", "enumValues": [ "generation_ticket", null ] } }, "additionalProperties": false } } }, "generation_limits": { "name": "GenerationLimits", "type": "object", "nullable": true, "description": "ワークスペースの同時実行数とキュー受付数の現在値。", "required": [ "tier", "plan_id", "limit_source", "purchased_credits_last_4_weeks", "purchased_concurrency_limit", "purchased_queued_jobs_limit", "plan_concurrency_limit", "plan_queued_jobs_limit", "concurrency_limit", "queued_jobs_limit", "admin_override_expires_at", "accepted_generation_jobs_limit", "active_generation_jobs", "queued_generation_jobs", "accepted_generation_jobs", "queue_capacity_remaining", "wave_size_hint" ], "properties": { "tier": { "type": "string", "description": "直近の購入実績などから決まる利用枠の区分。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise", "tier_10", "tier_100", "tier_500", "tier_1000" ] }, "plan_id": { "type": "string", "description": "受付上限の基準となるプランの ID。", "enumValues": [ "free", "pro", "startup", "scale", "enterprise" ] }, "limit_source": { "type": "string", "description": "現在の上限がプラン・購入実績・個別設定のどれに基づくか。", "enumValues": [ "plan", "admin_override" ] }, "purchased_credits_last_4_weeks": { "minimum": 0, "type": "integer", "description": "直近 4 週間に購入したクレジットの合計。" }, "purchased_concurrency_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく同時実行数の上限。" }, "purchased_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "購入実績に基づく待機ジョブ数の上限。" }, "plan_concurrency_limit": { "minimum": 1, "type": "integer", "description": "プランの同時実行数の上限。" }, "plan_queued_jobs_limit": { "minimum": 1, "type": "integer", "description": "プランの待機ジョブ数の上限。" }, "concurrency_limit": { "minimum": 1, "type": "integer", "description": "現在適用されている同時実行数の上限。" }, "queued_jobs_limit": { "minimum": 0, "type": "integer", "description": "キューで待機できるジョブ数の上限。" }, "admin_override_expires_at": { "type": "string", "nullable": true, "format": "date-time", "description": "個別に設定された上限の有効期限。期限がなければ null。" }, "accepted_generation_jobs_limit": { "minimum": 1, "type": "integer", "description": "実行中と待機中を合わせて受け付けられるジョブ数の上限。" }, "active_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在生成を実行中のジョブ数。" }, "queued_generation_jobs": { "minimum": 0, "type": "integer", "description": "現在キューで待機しているジョブ数。" }, "accepted_generation_jobs": { "minimum": 0, "type": "integer", "description": "実行中と待機中のジョブ数の合計。" }, "queue_capacity_remaining": { "minimum": 0, "type": "integer", "description": "追加で受け付けられるジョブ数。" }, "wave_size_hint": { "minimum": 1, "type": "integer", "description": "次に送信するジョブのまとまりの大きさの目安。" } } }, "sync": { "type": "object", "nullable": true, "description": "sync または subscribe の待機結果。ジョブの完了とは別に確認します。", "required": [ "wait_timeout_seconds", "completed", "terminal", "succeeded", "failed", "canceled", "result_ready", "timed_out", "capacity_exhausted" ], "properties": { "wait_timeout_seconds": { "type": "integer", "description": "HTTP 応答を待つ秒数。0〜30。時間を過ぎてもジョブは継続します。" }, "completed": { "type": "boolean", "description": "待機中にジョブが完了状態になったかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "succeeded": { "type": "boolean", "description": "生成が成功して成果物を取得できるかどうか。" }, "failed": { "type": "boolean", "description": "生成が失敗で終了したかどうか。" }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "timed_out": { "type": "boolean", "description": "ジョブが終わる前に HTTP の待機が終了したかどうか。" }, "capacity_exhausted": { "type": "boolean", "description": "同期待機の枠がなく、ポーリングに切り替える必要があるかどうか。" } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "voice_change", "status": "queued", "model": "orchestor/voice-change-1.0", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "file_id": "file_0123456789abcdef01234567", "duration_seconds": 20, "voice": { "id": "21m00Tcm4TlvDq8ikWAM" } } }, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "idempotency_hit": false, "usage": { "credits": 5, "usd": "0.05" }, "generation_limits": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 402 ```json { "statusCode": "402", "description": "利用可能残高が不足しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_funds", "message": "利用可能残高が不足しています。入金後は新しい冪等性キーで送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "billing", "stage": "reservation", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_funds", "next_action": "add_funds" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 413 ```json { "statusCode": "413", "description": "リクエスト本体またはアップロードがサイズ上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "payload_too_large", "message": "リクエスト本体がサイズ上限を超えました。本体を小さくし、ファイルのバイト列は upload_url へ送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "payload_too_large", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/voice-change' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{"file_id": "file_0123456789abcdef01234567", "duration_seconds": 20, "voice": {"id": "21m00Tcm4TlvDq8ikWAM"}}' ``` ```JavaScript const response = await fetch('https://api.orchestor.io/v1/voice-change', { method: 'POST', headers: { Authorization: `Bearer ${process.env.ORCHESTOR_API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({"file_id": "file_0123456789abcdef01234567", "duration_seconds": 20, "voice": {"id": "21m00Tcm4TlvDq8ikWAM"}}), }); if (!response.ok) throw new Error(`HTTP ${response.status}`); console.log(await response.json()); ``` ```Python import os import requests response = requests.post( 'https://api.orchestor.io/v1/voice-change', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, json={'file_id': 'file_0123456789abcdef01234567', 'duration_seconds': 20, 'voice': {'id': '21m00Tcm4TlvDq8ikWAM'}}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-list-jobs --- title: ジョブを一覧表示 description: ジョブを一覧表示。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-list-jobs markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-list-jobs.md --- # ジョブを一覧表示 ジョブを一覧表示。 ```http GET /v1/jobs ``` Server: https://api.orchestor.io Operation ID: `listCreativeJobs` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "limit", "in": "query", "required": false, "description": "1 ページで取得する件数。上限と既定値はスキーマを参照してください。", "schema": { "minimum": 1, "maximum": 100, "type": "integer" } }, { "name": "type", "in": "query", "required": false, "description": "取得する生成ジョブの種類。省略するとすべての種類を取得します。", "schema": { "minLength": 1, "type": "string" } }, { "name": "types", "in": "query", "required": false, "description": "複数の種類をまとめて取得する場合に、types=image-router&types=video-router のように繰り返して指定します。type と同時には指定できません。", "style": "form", "explode": true, "schema": { "minItems": 1, "type": "array", "items": { "minLength": 1, "type": "string" } } }, { "name": "model", "in": "query", "required": false, "description": "取得する生成ジョブのモデル ID。", "schema": { "minLength": 1, "type": "string" } }, { "name": "status", "in": "query", "required": false, "description": "取得するジョブの処理状態。", "schema": { "type": "string", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] } }, { "name": "hide_failed", "in": "query", "required": false, "description": "true を指定すると、失敗またはキャンセルされたジョブを除外します。", "schema": { "type": "boolean" } }, { "name": "liked", "in": "query", "required": false, "description": "true を指定すると、ワークスペースでお気に入りに登録された成果物を 1 件以上持つジョブを取得します。", "schema": { "type": "boolean" } }, { "name": "created_after", "in": "query", "required": false, "description": "指定した日時以降に作成されたジョブを取得します。", "schema": { "type": "string", "format": "date-time" } }, { "name": "created_before", "in": "query", "required": false, "description": "指定した日時以前に作成されたジョブを取得します。", "schema": { "type": "string", "format": "date-time" } }, { "name": "starting_after", "in": "query", "required": false, "description": "前のページの next_cursor。省略すると新しいジョブから取得します。", "schema": { "minLength": 1, "type": "string" } } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "新しい順のジョブ一覧。next_cursor がある場合は starting_after に渡して続きを取得します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "JobsListResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "jobs" ], "properties": { "jobs": { "type": "array", "description": "条件に一致した生成ジョブの一覧。", "items": { "allOf": [ { "name": "Job", "type": "object", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, { "type": "object", "properties": { "liked": { "type": "boolean", "description": "ワークスペースでお気に入りに登録された成果物が 1 件以上あるかどうか。" } } } ] } }, "next_cursor": { "type": "string", "description": "次のページを取得するためのカーソル。ジョブ一覧では starting_after に渡します。" } } } } }, "example": { "data": { "jobs": [ { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "image_generation", "status": "queued", "model": "gpt-image-2", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": null, "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "gpt-image-2", "prompt": "白い背景の上に置いた青い陶器の花瓶", "aspect_ratio": "1:1", "mode": "async" } } ] } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/jobs?limit=20&status=completed' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/jobs?limit=20&status=completed", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/jobs?limit=20&status=completed', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-get-job --- title: ジョブを取得 description: ジョブを取得。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-get-job markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-get-job.md --- # ジョブを取得 ジョブを取得。 ```http GET /v1/jobs/{id} ``` Server: https://api.orchestor.io Operation ID: `getCreativeJob` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "id", "in": "path", "required": true, "description": "操作対象のリソース ID。同じワークスペースに属するものを指定します。", "schema": { "type": "string" }, "example": "job_7513b52d-3669-4ffe-b317-8b02000715eb" } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブの入力、時刻、結果、エラー、料金精算、Webhook 配信の詳細。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "JobResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "job" ], "properties": { "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } }, "linked_resource": { "type": "null", "description": "このジョブに紐づく別リソース。画像・動画の共通ジョブでは null。" } } } } }, "example": { "data": { "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "image_generation", "status": "completed", "model": "gpt-image-2", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": "2026-11-06T00:00:00Z", "completed_at": "2026-11-06T00:00:00Z", "canceled_at": null, "result": { "artifacts": [ { "id": "artf_6f1d0c2b9a8e4f7d", "type": "image", "url": "https://media.orchestor.io/artifacts/artf_6f1d0c2b9a8e4f7d/image.png", "content_type": "image/png", "size_bytes": 482113, "width": 1024, "height": 1024, "duration_ms": null } ] }, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "gpt-image-2", "prompt": "白い背景の上に置いた青い陶器の花瓶", "aspect_ratio": "1:1", "mode": "async" } }, "linked_resource": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-list-job-events --- title: ジョブのイベントを一覧表示 description: ジョブのイベントを一覧表示。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-list-job-events markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-list-job-events.md --- # ジョブのイベントを一覧表示 ジョブのイベントを一覧表示。 ```http GET /v1/jobs/{id}/events ``` Server: https://api.orchestor.io Operation ID: `listCreativeJobEvents` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "id", "in": "path", "required": true, "description": "操作対象のリソース ID。同じワークスペースに属するものを指定します。", "schema": { "type": "string" }, "example": "job_7513b52d-3669-4ffe-b317-8b02000715eb" }, { "name": "limit", "in": "query", "required": false, "description": "1 ページで取得する件数。上限と既定値はスキーマを参照してください。", "schema": { "minimum": 1, "maximum": 100, "type": "integer" } } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブの受付、生成、終端、Webhook 配信の履歴を時系列で返します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "JobEventsResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job_id", "events" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job_id": { "type": "string", "description": "状態・結果・イベントを取得する生成ジョブの ID。" }, "events": { "type": "array", "description": "ジョブの状態遷移や配信試行を時系列で並べた記録。", "items": { "name": "JobEvent", "type": "object", "required": [ "id", "type", "source", "status", "message", "created_at", "data" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "job.created", "job.queued", "job.started", "generation.submitted", "generation.status_error", "job.completed", "job.failed", "job.canceled", "webhook.delivery" ] }, "source": { "type": "string", "description": "イベントの発生元。orchestor はジョブ処理、webhook は通知の配信です。", "enumValues": [ "orchestor", "webhook" ] }, "status": { "type": "string", "description": "対象リソースの現在の処理状態。", "enumValues": [ "info", "pending", "processing", "succeeded", "failed", "canceled", "retrying" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "additionalProperties": true } } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "events": [ { "id": "evt_6f1d0c2b", "type": "job.queued", "source": "orchestor", "status": "pending", "message": "生成の受付が完了しました。", "created_at": "2026-11-06T00:00:00Z", "data": {} } ] } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-get-job-result --- title: ジョブの結果を取得 description: 完了後に結果を取得します。未完了は job_not_completed、失敗は job_failed、取消済みは job_canceled として 409 を返します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-get-job-result markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-get-job-result.md --- # ジョブの結果を取得 完了後に結果を取得します。未完了は job_not_completed、失敗は job_failed、取消済みは job_canceled として 409 を返します。 ```http GET /v1/jobs/{id}/result ``` Server: https://api.orchestor.io Operation ID: `getCreativeJobResult` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "id", "in": "path", "required": true, "description": "操作対象のリソース ID。同じワークスペースに属するものを指定します。", "schema": { "type": "string" }, "example": "job_7513b52d-3669-4ffe-b317-8b02000715eb" } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "成功したジョブの成果物。result.artifacts の URL から各ファイルをダウンロードできます。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "JobResultResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job_id", "status", "result", "linked_resource", "job" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job_id": { "type": "string", "description": "状態・結果・イベントを取得する生成ジョブの ID。" }, "status": { "type": "string", "description": "対象リソースの現在の処理状態。", "enumValues": [ "COMPLETED" ] }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "linked_resource": { "type": "null", "description": "このジョブに紐づく別リソース。画像・動画の共通ジョブでは null。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "status": "COMPLETED", "result": { "artifacts": [ { "id": "artf_6f1d0c2b9a8e4f7d", "type": "image", "url": "https://media.orchestor.io/artifacts/artf_6f1d0c2b9a8e4f7d/image.png", "content_type": "image/png", "size_bytes": 482113, "width": 1024, "height": 1024, "duration_ms": null } ] }, "linked_resource": null, "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "image_generation", "status": "completed", "model": "gpt-image-2", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": "2026-11-06T00:00:00Z", "completed_at": "2026-11-06T00:00:00Z", "canceled_at": null, "result": { "artifacts": [ { "id": "artf_6f1d0c2b9a8e4f7d", "type": "image", "url": "https://media.orchestor.io/artifacts/artf_6f1d0c2b9a8e4f7d/image.png", "content_type": "image/png", "size_bytes": 482113, "width": 1024, "height": 1024, "duration_ms": null } ] }, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "gpt-image-2", "prompt": "白い背景の上に置いた青い陶器の花瓶", "aspect_ratio": "1:1", "mode": "async" } } } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-get-job-status --- title: ジョブの状態を取得 description: ジョブの状態を取得。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-get-job-status markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/get-get-job-status.md --- # ジョブの状態を取得 ジョブの状態を取得。 ```http GET /v1/jobs/{id}/status ``` Server: https://api.orchestor.io Operation ID: `getCreativeJobStatus` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "id", "in": "path", "required": true, "description": "操作対象のリソース ID。同じワークスペースに属するものを指定します。", "schema": { "type": "string" }, "example": "job_7513b52d-3669-4ffe-b317-8b02000715eb" } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "進行状況と次の操作。terminal が true なら状態確認を終了し、result_ready が true のとき result_url を取得します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } }, { "name": "x-orchestor-poll-after", "in": "header", "required": false, "description": "次のジョブ状態取得までの待機秒数。", "schema": { "minimum": 0, "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "JobStatusResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job_id", "status", "orchestor_status", "status_url", "result_url", "events_url", "cancel_url", "cancelable", "next_action", "next_poll_after_seconds", "recommended_poll_interval_seconds", "retry_after_seconds", "result_ready", "terminal", "queue", "queue_position", "logs_available" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job_id": { "type": "string", "description": "状態・結果・イベントを取得する生成ジョブの ID。" }, "status": { "type": "string", "description": "進行状況の大文字表記。orchestor_status に対応し、COMPLETED、FAILED、CANCELED は終端状態です。", "enumValues": [ "IN_QUEUE", "IN_PROGRESS", "COMPLETED", "FAILED", "CANCELED" ] }, "orchestor_status": { "type": "string", "description": "共通ジョブの小文字の状態。status の大文字表記と同じ進行状況を表します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "events_url": { "type": "string", "format": "uri", "description": "ジョブの状態遷移と配信履歴を取得する URL。" }, "cancel_url": { "type": "string", "nullable": true, "format": "uri", "description": "生成開始前に取り消すための POST 先。取り消せない場合は null。" }, "cancelable": { "type": "boolean", "description": "現在このジョブを取り消せるかどうか。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "poll_status", "fetch_result", "inspect_events" ] }, "next_poll_after_seconds": { "type": "integer", "nullable": true, "description": "次の状態取得まで待つ秒数。終端状態では null。" }, "recommended_poll_interval_seconds": { "type": "integer", "nullable": true, "description": "継続して状態を取得する場合の推奨間隔。単位は秒。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "result_ready": { "type": "boolean", "description": "成果物を result_url から取得できるかどうか。" }, "terminal": { "type": "boolean", "description": "成功・失敗・取消のいずれかで処理が終了したかどうか。" }, "queue": { "type": "object", "description": "ジョブの待機順、再開予定、実行環境の状態。", "required": [ "state", "reason", "position", "available_at", "retry_after_seconds", "runtime" ], "properties": { "state": { "type": "string", "description": "対象の現在の状態。キューでは待機・延期・実行などを区別します。", "enumValues": [ "waiting", "deferred", "runtime_unavailable", "processing", "completed", "failed", "canceled" ] }, "reason": { "type": "string", "description": "この状態になった理由。" }, "position": { "type": "integer", "nullable": true, "description": "表示位置。字幕では top、center、bottom。キューでは待機順の位置です。" }, "available_at": { "type": "string", "format": "date-time", "description": "延期されたジョブが実行可能になる予定日時。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "runtime": { "type": "object", "description": "生成の受付と実行に必要な実行環境の状態。", "required": [ "job_ledger_configured", "worker_configured", "worker_heartbeat" ], "properties": { "job_ledger_configured": { "type": "boolean", "description": "ジョブの状態を記録する保存先が設定されているかどうか。" }, "worker_configured": { "type": "boolean", "description": "ジョブを実行するワーカーが設定されているかどうか。" }, "worker_heartbeat": { "type": "object", "description": "ワーカーからの直近の稼働通知。", "required": [ "status", "last_seen_at", "stale_after_seconds" ], "properties": { "status": { "type": "string", "description": "進行状況の大文字表記。orchestor_status に対応し、COMPLETED、FAILED、CANCELED は終端状態です。", "enumValues": [ "fresh", "stale", "missing" ] }, "last_seen_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後にワーカーの稼働通知を受け取った日時。" }, "stale_after_seconds": { "type": "integer", "description": "稼働通知が古いと判断するまでの秒数。" } } } } } } }, "queue_position": { "type": "integer", "nullable": true, "description": "待機列の位置。位置が確定しない場合は null。" }, "logs_available": { "type": "boolean", "description": "ジョブのイベント履歴を参照できるかどうか。" }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "status": "IN_QUEUE", "orchestor_status": "queued", "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "events_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/events", "cancel_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", "cancelable": true, "next_action": "poll_status", "next_poll_after_seconds": 2, "recommended_poll_interval_seconds": 2, "retry_after_seconds": null, "result_ready": false, "terminal": false, "queue": { "state": "waiting", "reason": "キューで待機中です。", "position": null, "available_at": "2026-11-06T00:00:00Z", "retry_after_seconds": null, "runtime": { "job_ledger_configured": true, "worker_configured": true, "worker_heartbeat": { "status": "fresh", "last_seen_at": "2026-11-06T00:00:00Z", "stale_after_seconds": 60 } } }, "queue_position": null, "logs_available": true } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/post-cancel-job --- title: ジョブをキャンセル description: 生成開始前だけキャンセルできます。開始済みは 409 job_generation_already_started を返します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/post-cancel-job markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/post-cancel-job.md --- # ジョブをキャンセル 生成開始前だけキャンセルできます。開始済みは 409 job_generation_already_started を返します。 ```http POST /v1/jobs/{id}/cancel ``` Server: https://api.orchestor.io Operation ID: `cancelCreativeJob` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "id", "in": "path", "required": true, "description": "操作対象のリソース ID。同じワークスペースに属するものを指定します。", "schema": { "type": "string" }, "example": "job_7513b52d-3669-4ffe-b317-8b02000715eb" } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "取消結果と更新済みのジョブ。canceled が true なら生成開始前の取消が完了しています。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "JobCancelResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "request_id", "job_id", "status", "canceled", "idempotency_hit", "status_url", "result_url", "cancellation", "job" ], "properties": { "request_id": { "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "job_id": { "type": "string", "description": "状態・結果・イベントを取得する生成ジョブの ID。" }, "status": { "type": "string", "description": "対象リソースの現在の処理状態。", "enumValues": [ "CANCELED" ] }, "canceled": { "type": "boolean", "description": "生成開始前の取消が完了したかどうか。" }, "idempotency_hit": { "type": "boolean", "description": "同じ冪等性キーと入力に対応する既存ジョブを返したかどうか。" }, "status_url": { "type": "string", "format": "uri", "description": "このジョブの状態を GET で確認する URL。" }, "result_url": { "type": "string", "format": "uri", "description": "完了後の成果物を GET で取得する URL。" }, "cancellation": { "type": "object", "description": "取消の対応可否と実行結果。", "required": [ "supported", "requested", "message" ], "properties": { "supported": { "type": "boolean", "description": "このジョブが取消に対応しているかどうか。" }, "requested": { "type": "boolean", "description": "取消要求を受け付けたかどうか。" }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" } } }, "job": { "name": "Job", "type": "object", "description": "生成ジョブの入力、状態、時刻、結果をまとめた情報。", "required": [ "id", "type", "status", "model", "idempotency_key", "communication_mode", "created_at", "updated_at", "started_at", "completed_at", "canceled_at", "result", "error", "usage_summary", "webhook_delivery" ], "properties": { "id": { "type": "string", "description": "状態・結果・取消・通知の照合に使う生成ジョブ ID。" }, "type": { "type": "string", "description": "生成種別。テキスト生成では text です。" }, "status": { "type": "string", "description": "queued は待機中、processing は生成中。completed、failed、canceled で処理が終了します。", "enumValues": [ "queued", "processing", "completed", "failed", "canceled" ] }, "model": { "type": "string", "nullable": true, "description": "モデルカタログの ID。モデルが受け付ける入力と制約は対応するカタログ行で確認します。" }, "idempotency_key": { "type": "string", "nullable": true, "description": "生成の重複を防ぐため送信時に指定したキー。未指定なら null。" }, "communication_mode": { "type": "string", "description": "生成送信時に選択した応答方式。", "enumValues": [ "async", "sync", "subscribe", "webhook" ] }, "created_at": { "type": "string", "format": "date-time", "description": "このリソースを作成した日時。ISO 8601 形式。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" }, "started_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成を開始した日時。未開始なら null。" }, "completed_at": { "type": "string", "nullable": true, "format": "date-time", "description": "生成が完了した日時。未完了なら null。" }, "canceled_at": { "type": "string", "nullable": true, "format": "date-time", "description": "取消が完了した日時。取り消していなければ null。" }, "result": { "name": "JobResultPayload", "type": "object", "nullable": true, "description": "生成された成果物。処理中や失敗時は null。", "properties": { "video_analysis": { "name": "VideoAnalysisResult", "type": "object", "properties": { "video": { "type": "object", "required": [ "duration_seconds" ], "properties": { "duration_seconds": { "minimum": 0, "type": "number" }, "width": { "minimum": 1, "type": "integer" }, "height": { "minimum": 1, "type": "integer" }, "fps": { "minimum": 0, "type": "number" }, "size_bytes": { "minimum": 0, "type": "integer" } } }, "summary": { "type": "string" }, "scenes": { "type": "array", "items": { "name": "VideoAnalysisScene", "type": "object", "required": [ "index", "start_seconds", "end_seconds", "duration_seconds", "summary", "visual", "shot_type", "camera_motion", "on_screen_text", "audio", "keyframe_url", "confidence" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "配列内の順番を0から数えた値。" }, "start_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン開始までの秒数。" }, "end_seconds": { "minimum": 0, "type": "number", "description": "動画の先頭からシーン終了までの秒数。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "対象となるメディアまたは区間の長さを秒で指定・取得します。" }, "summary": { "maxLength": 400, "type": "string", "description": "動画またはシーンの内容を短く説明します。" }, "visual": { "maxLength": 1200, "type": "string", "description": "シーンに映る被写体や動作を説明します。" }, "shot_type": { "type": "string", "nullable": true, "description": "被写体との距離や構図の分類。判定できなければ null。", "enumValues": [ "extreme_close_up", "close_up", "medium", "wide", "establishing", "product_insert", "text_card", "screen_recording", "other", null ] }, "camera_motion": { "type": "string", "nullable": true, "description": "パンや追従などカメラの動きの分類。", "enumValues": [ "static", "handheld_static", "pan", "tilt", "push_in", "pull_out", "tracking", "whip", "other", null ] }, "people": { "type": "array", "description": "People visible in the scene.", "items": { "type": "string" } }, "objects": { "type": "array", "description": "Objects visible in the scene.", "items": { "type": "string" } }, "on_screen_text": { "type": "array", "description": "シーン内で読めた文字列。", "items": { "type": "string" } }, "audio": { "type": "object", "nullable": true, "description": "切り出し時は音声の保持・削除を選び、分析結果では検出した音声情報を返します。", "required": [ "speech", "has_speech", "has_music" ], "properties": { "speech": { "type": "string", "nullable": true, "description": "検出した発話、または有料文字起こしを許可する設定。" }, "has_speech": { "type": "boolean", "description": "発話を検出した場合に true。" }, "has_music": { "type": "boolean", "description": "音楽を検出した場合に true。" } } }, "keyframe_url": { "type": "string", "nullable": true, "format": "uri", "description": "シーンを代表する画像の取得先。" }, "keyframes": { "type": "array", "description": "シーン内の各秒付近で抽出した代表画像。取得に失敗した時点の URL は null。", "items": { "type": "object", "required": [ "t", "url" ], "properties": { "t": { "minimum": 0, "type": "number", "description": "動画または構成の先頭から画像が示す時点までの秒数。" }, "url": { "type": "string", "nullable": true, "format": "uri", "description": "保存済みファイルを取得する HTTPS URL。取得できないフレームでは null。" } } } }, "confidence": { "minimum": 0, "maximum": 1, "type": "number", "nullable": true, "description": "解析結果の確信度。0〜1で返し、不明な場合は null。" } } } }, "analysis": { "type": "string" } } }, "artifacts": { "type": "array", "description": "生成した画像・動画・音声・テキスト・文字起こしの成果物。生成テキストは type が text の成果物に含まれます。", "items": { "name": "Artifact", "type": "object", "required": [ "id", "type", "url", "content_type" ], "properties": { "id": { "type": "string", "description": "取得・更新時に指定する、このリソースの一意な識別子。" }, "public_artifact_id": { "type": "string", "description": "生成メディアを外部で照合する不透明な ID。値から所有者や保存先を推測しないでください。" }, "project_id": { "type": "string", "description": "ファイル台帳に記録されていない成果物の移動先となるプロジェクトの ID。" }, "stage": { "type": "string", "description": "first_frame・pose_frame・scene_preview など、成果物が生成工程のどの段階で作られたかを示します。" }, "type": { "type": "string", "description": "対象の種類。ジョブでは生成種別、成果物ではメディア種別を示します。", "enumValues": [ "image", "video", "audio", "model", "file", "text" ] }, "text": { "type": "string", "description": "type が text の成果物の本文。" }, "url": { "type": "string", "format": "uri", "description": "対象ファイルの HTTPS URL、または生成テキストの data URL。" }, "content_type": { "type": "string", "nullable": true, "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "size_bytes": { "type": "integer", "nullable": true, "description": "ファイルの正確なサイズ。単位はバイト。" }, "width": { "type": "integer", "nullable": true, "description": "画像またはフレームの幅。単位はピクセル。" }, "height": { "type": "integer", "nullable": true, "description": "画像またはフレームの高さ。単位はピクセル。" }, "duration_ms": { "type": "integer", "nullable": true, "description": "動画または音声の再生時間。単位はミリ秒。" }, "checksum_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "nullable": true, "description": "ファイルの SHA-256。取得したバイト列の整合性確認に使用する 64 桁の小文字16進数。" } } } }, "kind": { "type": "string", "description": "タイムラインの結果種別は timeline_audio、timeline_compose、timeline_render です。" }, "duration_seconds": { "type": "number", "description": "タイムラインの出力時間を秒で示します。" }, "segment_count": { "type": "integer", "description": "レンダーに含まれる映像区間の数です。" }, "billable_minutes": { "type": "integer", "description": "レンダーの出力時間を分単位で切り上げた値です。" }, "warnings": { "type": "array", "description": "タイムライン処理で検出した調整や制約です。", "items": { "name": "TimelineWarning", "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "入力修正や再試行の判断に使う警告の識別コードです。" }, "segment_index": { "type": "integer", "description": "警告の対象となる映像区間の位置です。" }, "message": { "type": "string", "description": "警告が発生した理由です。" }, "context": { "type": "object", "description": "警告が発生した条件を補足する値です。", "additionalProperties": true } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "生成入力が受理済み原稿と一致したことを示す、サーバー発行の証明。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "検証または結果取得の対象となる生成ジョブの ID。" }, "script_revision_id": { "type": "string", "description": "受理済み原稿の版を指定する ID。同じ認証文脈で取得した値を使います。" }, "sentence_ids": { "type": "array", "description": "原稿内の文を示す ID の配列。生成入力では重複させず、連続した原稿順に指定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿を NFC と LF に正規化して文へ分割する規則の版。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "実際に読み上げへ渡した文章の SHA-256。受理した原稿との一致確認に使います。" }, "input_integrity": { "type": "string", "description": "受理済み原稿との結び付きをサーバーが検証した結果。利用者が自己申告する値ではありません。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "generation_config": { "type": "object", "nullable": true, "description": "モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。", "properties": { "volume": { "type": "number", "description": "音量の倍率。1が元の音量です。モデルごとの範囲内で指定します。" }, "speed": { "type": "number", "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "emotion": { "type": "string", "description": "読み上げの感情。モデルの対応一覧にある値を指定します。" } }, "additionalProperties": true }, "speed": { "type": "string", "nullable": true, "description": "読み上げ速度。generation_config では数値倍率、直下では旧形式の slow・normal・fast です。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "language_code": { "type": "string", "nullable": true, "description": "文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。" }, "language_probability": { "type": "number", "nullable": true, "description": "検出した言語の確信度。取得できない場合は null です。" }, "words": { "type": "array", "description": "開始時刻順の単語と秒単位の時刻。TTS の入力では true でこれらの出力を要求します。", "items": { "type": "object", "properties": { "word": { "type": "string", "description": "文字起こしされた単語またはトークン。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "type": { "type": "string", "description": "単語や空白など、返されたトークンの分類。" } }, "additionalProperties": true } }, "words_truncated": { "type": "boolean", "description": "単語配列が結果のサイズ上限で省略された場合に true を返します。全文と単語時刻は JSON 成果物に含まれます。" }, "words_total": { "type": "integer", "description": "切り詰める前の単語件数。words_truncated と併せて返します。" }, "segments": { "type": "array", "description": "順番に並ぶ文区間。隣接する区間の境界を共有し、時刻から必要な範囲を切り出せます。", "items": { "type": "object", "properties": { "index": { "type": "integer", "description": "文区間の順番。0から数えます。" }, "text": { "type": "string", "description": "文字起こしの文章。文区間ではその区間の文章を返します。" }, "start": { "type": "number", "description": "音声の先頭から区間開始までの秒数。" }, "end": { "type": "number", "description": "音声の先頭から区間終了までの秒数。" }, "audio_url": { "type": "string", "format": "uri", "description": "タイムラインで切り出した音声区間の取得先 URL です。" }, "duration_seconds": { "type": "number", "description": "処理対象または生成する音声の秒数。STT の申告値は料金を決めず、音楽では対応モデルだけが受け付けます。" } }, "additionalProperties": true } }, "audio_url": { "type": "string", "format": "uri", "description": "生成音声の取得先 URL。TTS、音楽、声の変換で返します。" }, "video_url": { "type": "string", "format": "uri", "description": "声の変換や吹替後の動画の取得先 URL。" }, "model_id": { "type": "string", "description": "実際に音声を生成したエンジンの ID。ジョブの model と区別します。" }, "voice": { "type": "object", "description": "使用する声の指定。モデルの voice_family に一致する一覧から ID を選びます。", "properties": { "mode": { "type": "string", "description": "声の ID を指定する方式。現在は id のみを受け付けます。", "default": "id", "enumValues": [ "id" ] }, "id": { "minLength": 1, "maxLength": 128, "type": "string", "description": "生成要求の voice.id に指定する声の ID。表示名ではなく一覧の値をそのまま使います。" } }, "additionalProperties": false }, "language": { "type": "string", "description": "読み上げる言語の BCP-47 または ISO 639 コード。日本語なら ja を明示します。" }, "output_format": { "type": "object", "description": "出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。", "properties": { "container": { "type": "string", "description": "音声ファイルのコンテナ。文ごとの音声切り出しには wav または raw を使います。", "enumValues": [ "mp3", "wav", "raw" ] }, "sample_rate": { "type": "integer", "description": "音声のサンプルレート。単位は Hz。モデルが対応する値を選びます。", "enumValues": [ 8000, 16000, 22050, 24000, 32000, 44100, 48000 ] }, "bit_rate": { "type": "integer", "description": "MP3 の毎秒ビット数。MP3 の既定形式を変更するときに指定します。", "enumValues": [ 32000, 64000, 96000, 128000, 192000 ] }, "encoding": { "type": "string", "description": "wav または raw で使用する PCM の符号化形式。", "enumValues": [ "pcm_f32le", "pcm_s16le", "pcm_mulaw", "pcm_alaw" ] } }, "additionalProperties": false }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } } }, "additionalProperties": true }, "error": { "name": "JobError", "type": "object", "nullable": true, "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "category": { "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。", "enumValues": [ "validation", "auth", "quota", "queue", "generation_unavailable", "generation_rejected", "generation_timeout", "runtime_unavailable", "worker_timeout", "internal" ] }, "stage": { "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。", "enumValues": [ "validation", "queue", "usage_reservation", "generation_submit", "generation_processing", "usage_settlement", "webhook_delivery", "cancellation", "internal" ] }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "type": "object", "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。", "properties": { "alignment_reason": { "type": "string", "description": "音声と文章の時刻合わせに失敗した理由。", "enumValues": [ "invalid_alignment_payload", "empty_aligned_words", "invalid_stt_span", "overlapping_stt_spans", "non_monotonic_timings", "script_coverage_mismatch" ] }, "script_word_count": { "minimum": 0, "type": "integer", "description": "時刻合わせ対象の原稿に含まれる単語数。" }, "stt_word_count": { "minimum": 0, "type": "integer", "description": "音声認識で得られた単語数。" }, "ffmpeg_error": { "type": "string", "description": "メディア処理中のエラーの説明。機密情報を除いた内容です。" }, "provider_error_type": { "type": "string", "description": "モデル提供元のエラー分類。" }, "provider_error_message": { "type": "string", "description": "モデル提供元のエラーから公開可能な範囲を取り出した説明。" }, "input_field": { "type": "string", "description": "問題のある入力フィールドのパス。" }, "segment_index": { "minimum": 0, "type": "integer", "description": "問題が起きた区間の 0 始まりの位置。" }, "source_slot": { "type": "string", "description": "問題がある入力メディアのスロット名。" }, "source_status": { "type": "integer", "description": "入力ファイルの取得先が返した HTTP ステータス。" }, "source_host": { "type": "string", "description": "入力ファイルの取得先ホスト名。認証情報を含めません。" } }, "additionalProperties": false } } }, "usage_summary": { "name": "JobUsageSummary", "type": "object", "nullable": true, "description": "ジョブの予約、確定、返金、解放した利用量。", "required": [ "status", "reserved_credits", "captured_credits", "refunded_credits", "released_credits", "final", "updated_at" ], "properties": { "status": { "type": "string", "description": "料金の精算状態。reserved は予約中、captured は確定、refunded は返金済み。", "enumValues": [ "reserved", "captured", "refunded" ] }, "reserved_credits": { "minimum": 0, "type": "number", "description": "受付時に予約したクレジット。" }, "captured_credits": { "minimum": 0, "type": "number", "description": "完了により消費が確定したクレジット。" }, "refunded_credits": { "minimum": 0, "type": "number", "description": "失敗や取消により返したクレジット。" }, "released_credits": { "minimum": 0, "type": "number", "description": "未使用の予約を解放したクレジット。" }, "reserved_usd_cents": { "minimum": 0, "type": "integer", "description": "予約した料金。単位は USD セント。" }, "captured_usd_cents": { "minimum": 0, "type": "integer", "description": "消費が確定した料金。単位は USD セント。" }, "refunded_usd_cents": { "minimum": 0, "type": "integer", "description": "返金した料金。単位は USD セント。" }, "released_usd_cents": { "minimum": 0, "type": "integer", "description": "未使用の予約から解放した料金。単位は USD セント。" }, "final": { "type": "boolean", "description": "料金の精算が確定し、今後変更しないかどうか。" }, "updated_at": { "type": "string", "format": "date-time", "description": "状態を最後に更新した日時。ISO 8601 形式。" } } }, "webhook_delivery": { "name": "WebhookDelivery", "type": "object", "nullable": true, "description": "終端イベントの配信先、試行回数、直近の応答。", "required": [ "url", "event_type", "status", "attempts", "max_attempts", "next_attempt_at", "last_attempt_at", "delivered_at", "last_status_code", "last_error", "signature_version", "signing_secret_fingerprint" ], "properties": { "url": { "type": "string", "nullable": true, "format": "uri", "description": "対象ファイルまたは通知先の HTTPS URL。" }, "event_type": { "type": "string", "nullable": true, "description": "配信した通知の種類。", "enumValues": [ "job.completed", "job.failed", "job.canceled", null ] }, "status": { "type": "string", "description": "通知の配信状況。exhausted は試行回数の上限に達した状態で、ジョブ自体の成否とは別です。", "enumValues": [ "pending", "delivering", "delivered", "retrying", "failed", "exhausted" ] }, "attempts": { "type": "integer", "description": "これまでに行った配信の試行回数。" }, "max_attempts": { "type": "integer", "description": "配信を試みる回数の上限。終端通知は最大 8 回です。" }, "next_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "再配信を予定している日時。予定がなければ null。" }, "last_attempt_at": { "type": "string", "nullable": true, "format": "date-time", "description": "最後に配信を試みた日時。未試行なら null。" }, "delivered_at": { "type": "string", "nullable": true, "format": "date-time", "description": "受信先が 2xx で受領した日時。未配信なら null。" }, "last_status_code": { "type": "integer", "nullable": true, "description": "直近の配信先の HTTP ステータス。応答がなければ null。" }, "last_error": { "type": "string", "nullable": true, "description": "直近の配信で発生したエラー。問題がなければ null。" }, "signature_version": { "type": "string", "description": "通知署名の形式。v1 は Standard Webhooks の webhook-signature(.. の HMAC-SHA256 を Base64 で表した値)です。同じ通知に orchestor-v1 の署名も付けます。" }, "signing_secret_fingerprint": { "type": "string", "nullable": true, "description": "使用した署名シークレットを区別する指紋。シークレット自体ではありません。" }, "manual_redeliveries": { "minimum": 0, "type": "integer", "description": "利用者が手動で再配信を依頼した回数。" } } }, "input": { "type": "object", "description": "生成に使用した入力。ジョブの再現や送信内容の確認に使います。", "additionalProperties": true }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "type": "object", "nullable": true, "description": "背景を文章または写真で指定します。", "required": [ "type", "status", "preview_image_url" ], "properties": { "type": { "type": "string", "description": "この要素の形式を選ぶ識別子。選んだ形式の必須フィールドを併せて指定します。", "enumValues": [ "prompt", "photo", "none" ] }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "scene_previews": { "type": "array", "nullable": true, "description": "各シーンの構図を確認する静止画一覧です。", "items": { "name": "AvatarVideoScenePreview", "type": "object", "required": [ "index", "status", "preview_image_url", "scene" ], "properties": { "index": { "minimum": 0, "type": "integer", "description": "順序付きシーンの中でこの要素が占める位置です。" }, "id": { "type": "string", "description": "この要素を後で参照・取得するときに使う識別子です。" }, "status": { "type": "string", "description": "現在の準備・処理状態。利用する前に ready または completed になったことを確認します。", "enumValues": [ "queued", "processing", "ready", "failed", "canceled" ] }, "preview_image_url": { "type": "string", "nullable": true, "format": "uri", "description": "準備済みの代表静止画 URL。まだ使える画像がない場合は null です。" }, "scene": { "name": "AvatarVideoScenePreviewReference", "type": "object", "description": "背景を文章または写真で指定します。", "required": [ "type" ], "properties": { "type": { "type": "string", "description": "prompt は文章、photo は写真、props は人物属性を使う入力形式。none は背景指定がない結果を表します。列挙値の範囲で選びます。", "enumValues": [ "prompt", "photo", "none" ] }, "image_url": { "type": "string", "format": "uri", "description": "参照する静止画の取得可能な公開 HTTPS URL。人物 ID・ハンドルとの併用はできません。" } }, "additionalProperties": false }, "avatar_handle": { "type": "string", "description": "再利用する人物のハンドル。先頭の @ を除き小文字で保存します。英数字・ピリオド・アンダースコアを使い、区切り記号の先頭・末尾・連続使用は避けます。" }, "start_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの開始時刻を秒で示します。" }, "end_time_seconds": { "minimum": 0, "type": "number", "description": "このシーンの終了時刻を秒で示します。" }, "duration_seconds": { "minimum": 0, "type": "number", "description": "出力や料金予約の基準になる長さを秒で指定します。各操作の上限以内の値を使います。" } }, "additionalProperties": false } }, "transcript_receipt": { "type": "object", "description": "原稿と音声の対応関係を確認するための検証結果です。", "required": [ "job_id", "script_revision_id", "sentence_ids", "canonicalization_version", "submitted_transcript_sha256", "input_integrity" ], "properties": { "job_id": { "type": "string", "description": "進行状況の照会に使う関連ジョブの ID です。" }, "script_revision_id": { "type": "string", "description": "音声に使った受理済み原稿の版を特定します。" }, "sentence_ids": { "type": "array", "description": "その音声に含まれる原稿中の文を順番に特定します。", "items": { "type": "string" } }, "canonicalization_version": { "type": "string", "description": "原稿の比較前に適用した正規化方式の版です。", "enumValues": [ "nfc-lf-sentence-v1" ] }, "submitted_transcript_sha256": { "pattern": "^[a-f0-9]{64}$", "type": "string", "description": "送信原稿を比較するための SHA256 値です。" }, "input_integrity": { "type": "string", "description": "送信した原稿の一致を確認するための検証情報です。", "enumValues": [ "source_bound" ] } }, "additionalProperties": false }, "auth_source": { "type": "string", "nullable": true, "description": "ジョブの認証経路を表す分類。資格情報の値は含みません。", "enumValues": [ "api_key", null ] } } } } } } }, "example": { "data": { "request_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "job_id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "status": "CANCELED", "canceled": true, "idempotency_hit": false, "status_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/result", "cancellation": { "supported": true, "requested": true, "message": "生成開始前に取り消しました。" }, "job": { "id": "job_7513b52d-3669-4ffe-b317-8b02000715eb", "type": "image_generation", "status": "canceled", "model": "gpt-image-2", "idempotency_key": "9816bc88-9791-43a1-86c2-876dc7c544e8", "communication_mode": "async", "created_at": "2026-11-06T00:00:00Z", "updated_at": "2026-11-06T00:00:00Z", "started_at": null, "completed_at": null, "canceled_at": "2026-11-06T00:00:00Z", "result": null, "error": null, "usage_summary": null, "webhook_delivery": null, "input": { "model": "gpt-image-2", "prompt": "白い背景の上に置いた青い陶器の花瓶", "aspect_ratio": "1:1", "mode": "async" } } } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 409 ```json { "statusCode": "409", "description": "ジョブの状態または冪等キーが要求と競合しています。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "idempotency_conflict", "message": "同じ冪等性キーで入力が変わっています。別の生成なら新しいキーを使用してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "idempotency_conflict", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel", { method: "POST", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'POST', 'https://api.orchestor.io/v1/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/post-restore-job --- title: 削除したジョブを復元 description: 削除から 30 日未満のジョブを履歴に戻します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/post-restore-job markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/post-restore-job.md --- # 削除したジョブを復元 削除から 30 日未満のジョブを履歴に戻します。 ```http POST /v1/jobs/{id}/restore ``` Server: https://api.orchestor.io Operation ID: `restoreCreativeJob` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "id", "in": "path", "required": true, "description": "同じワークスペース内のジョブ ID。", "schema": { "type": "string" } } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブを履歴に復元しました。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "JobRestoreResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "job_id", "status" ], "properties": { "job_id": { "type": "string" }, "status": { "type": "string", "enumValues": [ "restored" ] } } } } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/delete-trash-job --- title: 出力のないジョブを削除 description: 失敗またはキャンセル済みで出力アセットがないジョブを履歴から削除します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/delete-trash-job markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/jobs/delete-trash-job.md --- # 出力のないジョブを削除 失敗またはキャンセル済みで出力アセットがないジョブを履歴から削除します。 ```http DELETE /v1/jobs/{id} ``` Server: https://api.orchestor.io Operation ID: `trashCreativeJob` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters ```json [ { "name": "id", "in": "path", "required": true, "description": "同じワークスペース内のジョブ ID。", "schema": { "type": "string" } } ] ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "ジョブを履歴から削除しました。", "headers": [], "content": [ { "contentType": "application/json", "schema": { "name": "JobTrashResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "job_id", "status" ], "properties": { "job_id": { "type": "string" }, "status": { "type": "string", "enumValues": [ "trashed" ] } } } } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/files/post-create-upload-url --- title: アップロード URL を発行 description: 最大 2 GiB のファイルを送るための署名付き URL を発行します。upload_headers を付けて 15 分以内に upload_url に PUT します。 content_type を省略すると filename の拡張子から判定します。画像、動画、音声は生成入力として使えます。 zip、tar、gz、tgz、pdf、docx、xlsx、pptx、csv、txt、md、json、js、ts、py、html、css は一般ファイルとして保存します。 一般ファイルの url はワークスペース認証付きの永続ダウンロード URL です。一般ファイルを生成入力に指定すると 400 を返します。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/files/post-create-upload-url markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/files/post-create-upload-url.md --- # アップロード URL を発行 最大 2 GiB のファイルを送るための署名付き URL を発行します。upload_headers を付けて 15 分以内に upload_url に PUT します。 content_type を省略すると filename の拡張子から判定します。画像、動画、音声は生成入力として使えます。 zip、tar、gz、tgz、pdf、docx、xlsx、pptx、csv、txt、md、json、js、ts、py、html、css は一般ファイルとして保存します。 一般ファイルの url はワークスペース認証付きの永続ダウンロード URL です。一般ファイルを生成入力に指定すると 400 を返します。 ```http POST /v1/files/generate-upload-url ``` Server: https://api.orchestor.io Operation ID: `createCreativeUploadUrl` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ] ] ``` ## Parameters No parameters. ## Request body ```json { "description": "以下の入力を JSON で送信します。モデル固有の項目はカタログの対応条件も確認してください。", "required": true, "content": [ { "contentType": "application/json", "schema": { "type": "object", "required": [ "size_bytes" ], "properties": { "content_type": { "minLength": 1, "type": "string", "description": "ファイルの MIME タイプ。省略する場合は対応する拡張子を含む filename が必要です。" }, "size_bytes": { "minimum": 1, "maximum": 2147483648, "type": "integer", "description": "ファイルの正確なサイズ。単位はバイト。" }, "filename": { "minLength": 1, "maxLength": 255, "type": "string", "description": "元ファイルの名前。1〜255 文字。content_type を省略する場合は必須です。" } }, "additionalProperties": true }, "example": { "content_type": "image/png", "size_bytes": 482113 } } ] } ``` ## Responses ### 200 ```json { "statusCode": "200", "description": "アップロード先、ファイルの種類、読み取り用 URL。upload_headers を変更せず upload_url に PUT してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "public_url", "upload_url", "upload_method", "upload_headers", "content_type", "expires_at", "asset_id", "media_id", "kind" ], "properties": { "public_url": { "type": "string", "description": "7 日間有効な署名付き読み取り URL。kind が media の場合は生成入力に使えます。" }, "upload_url": { "type": "string", "description": "ファイルのバイト列を送信する署名付き URL。秘密値として扱い、API キーを送らないでください。" }, "upload_method": { "type": "string", "description": "署名付き URL への送信に使う HTTP メソッド。PUT を使用します。", "enumValues": [ "PUT" ] }, "upload_headers": { "type": "object", "description": "ファイル送信時にそのまま付けるヘッダー。", "additionalProperties": { "type": "string" } }, "content_type": { "type": "string", "description": "ファイルの MIME タイプ。例は image/png、video/mp4。" }, "expires_at": { "type": "string", "description": "署名付きアップロード URL が失効する日時。発行から 15 分以内に送信してください。" }, "asset_id": { "type": "string", "description": "アップロードしたファイルを識別する ID。" }, "media_id": { "type": "string", "format": "uuid", "description": "アップロード完了後、kind が media の場合に medias や対応するメディア ID 欄へ渡す ID。" }, "kind": { "type": "string", "description": "生成入力に使えるメディアか、ダウンロード用の一般ファイルかを示します。", "enumValues": [ "media", "general" ] }, "url": { "type": "string", "format": "uri", "description": "kind が general の場合に返す永続ダウンロード URL。ファイルを所有するワークスペースの認証が必要です。" } }, "additionalProperties": true } } }, "example": { "data": { "public_url": "https://media.orchestor.io/assets/asset_6f1d0c2b9a8e4f7d/source.png", "upload_url": "https://storage.example.com/upload/example?signature=EXAMPLE_ONLY", "upload_method": "PUT", "upload_headers": { "content-type": "image/png" }, "content_type": "image/png", "expires_at": "2026-11-06T00:15:00Z", "asset_id": "asset_6f1d0c2b9a8e4f7d", "media_id": "7513b52d-3669-4ffe-b317-8b02000715eb", "kind": "media" } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 413 ```json { "statusCode": "413", "description": "リクエスト本体またはアップロードがサイズ上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "payload_too_large", "message": "リクエスト本体がサイズ上限を超えました。本体を小さくし、ファイルのバイト列は upload_url へ送信してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "payload_too_large", "next_action": "fix_input" } } } ] } ``` ### 415 ```json { "statusCode": "415", "description": "Content-Type に application/json を指定してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unsupported_media_type", "message": "未対応の Content-Type です。application/json を指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "unsupported_media_type", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/files/generate-upload-url' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{"content_type": "image/png", "size_bytes": 482113}' ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/files/generate-upload-url", { method: "POST", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`, "Content-Type": "application/json"}, body: JSON.stringify({"content_type": "image/png", "size_bytes": 482113}), }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'POST', 'https://api.orchestor.io/v1/files/generate-upload-url', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}", 'Content-Type': 'application/json'}, json={'content_type': 'image/png', 'size_bytes': 482113}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/webhooks/get-get-webhook-signing-secret --- title: Webhook 署名シークレットを取得 description: Webhook 検証用の whsec_ 署名シークレットの世代と指紋を取得します。シークレットはワークスペースごとに 1 つで、作成後の最初の取得とローテーションの応答だけが secret を全文で返し、以降の取得では null を返します。値を失った場合はローテーションします。シークレットをログへ出力しないでください。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/webhooks/get-get-webhook-signing-secret markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/webhooks/get-get-webhook-signing-secret.md --- # Webhook 署名シークレットを取得 Webhook 検証用の whsec_ 署名シークレットの世代と指紋を取得します。シークレットはワークスペースごとに 1 つで、作成後の最初の取得とローテーションの応答だけが secret を全文で返し、以降の取得では null を返します。値を失った場合はローテーションします。シークレットをログへ出力しないでください。 ```http GET /v1/webhooks/signing-secret ``` Server: https://api.orchestor.io Operation ID: `getCreativeWebhookSigningSecret` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters No parameters. ## Responses ### 200 ```json { "statusCode": "200", "description": "署名検証用シークレットと世代情報。secret はサーバー側で保管し、ローテーション時は rotation の旧世代有効期限を確認します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "WebhookSigningSecretResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "scope", "version", "fingerprint", "secret" ], "properties": { "scope": { "type": "string", "description": "署名シークレットが適用されるワークスペースの範囲。" }, "version": { "type": "integer", "description": "署名シークレットの世代番号。" }, "fingerprint": { "type": "string", "description": "署名シークレットを識別する指紋。値をログに残す際は secret の代わりに使います。" }, "secret": { "type": "string", "nullable": true, "description": "通知の署名検証に使う whsec_ で始まる秘密値。作成後の最初の取得だけが返し、以降は null です。サーバーで保管し、ログやクライアントに出さないでください。" }, "rotation": { "name": "WebhookSigningRotation", "type": "object", "nullable": true, "description": "ローテーション中の旧シークレットの世代と有効期限。", "required": [ "previous_version", "previous_fingerprint", "previous_valid_until" ], "properties": { "previous_version": { "type": "integer", "nullable": true, "description": "併用できる旧シークレットの世代。旧世代がなければ null。" }, "previous_fingerprint": { "type": "string", "nullable": true, "description": "併用できる旧シークレットの指紋。旧世代がなければ null。" }, "previous_valid_until": { "type": "string", "nullable": true, "format": "date-time", "description": "旧シークレットの有効期限。期限後は新しい世代だけで検証します。" } } } } } } }, "example": { "data": { "scope": "workspace", "version": 1, "fingerprint": "sha256:0123456789abcdef", "secret": "" } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request GET 'https://api.orchestor.io/v1/webhooks/signing-secret' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/webhooks/signing-secret", { method: "GET", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'GET', 'https://api.orchestor.io/v1/webhooks/signing-secret', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md) --- Source: https://orchestor.io/ja/docs/rest-api/endpoint-reference/webhooks/post-rotate-webhook-signing-secret --- title: Webhook 署名シークレットをローテーション description: 新しい whsec_ 署名シークレットを発行し、全文を一度だけ返します。旧シークレットは 24 時間後の rotation.previous_valid_until まで併用され、その間の配信は新旧両方で署名します。期限までに受信側を新しいシークレットへ切り替えます。期限内に再度ローテーションすると、直前のシークレットだけが併用対象になります。 canonical_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/webhooks/post-rotate-webhook-signing-secret markdown_url: https://orchestor.io/ja/docs/rest-api/endpoint-reference/webhooks/post-rotate-webhook-signing-secret.md --- # Webhook 署名シークレットをローテーション 新しい whsec_ 署名シークレットを発行し、全文を一度だけ返します。旧シークレットは 24 時間後の rotation.previous_valid_until まで併用され、その間の配信は新旧両方で署名します。期限までに受信側を新しいシークレットへ切り替えます。期限内に再度ローテーションすると、直前のシークレットだけが併用対象になります。 ```http POST /v1/webhooks/signing-secret/rotate ``` Server: https://api.orchestor.io Operation ID: `rotateCreativeWebhookSigningSecret` ## Authentication ```json [ [ { "key": "bearerAuth", "type": "http", "description": "外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。", "scheme": "bearer", "scopes": [] } ], [ { "key": "apiKey", "type": "apiKey", "description": "外部 API キー。bearerAuth と同時に送ると 401 です。", "name": "x-api-key", "in": "header", "scopes": [] } ], [ { "key": "session_cookie", "type": "apiKey", "description": "自社 App の同一 origin セッション。", "name": "wos-session", "in": "cookie", "scopes": [] } ] ] ``` ## Parameters No parameters. ## Responses ### 200 ```json { "statusCode": "200", "description": "署名検証用シークレットと世代情報。secret はサーバー側で保管し、ローテーション時は rotation の旧世代有効期限を確認します。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "WebhookSigningSecretRotateResponse", "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "description": "この操作が返す結果。形状は以下の子フィールドを参照してください。", "required": [ "scope", "version", "fingerprint", "secret", "rotation" ], "properties": { "scope": { "type": "string", "description": "署名シークレットが適用されるワークスペースの範囲。" }, "version": { "type": "integer", "description": "署名シークレットの世代番号。" }, "fingerprint": { "type": "string", "description": "署名シークレットを識別する指紋。値をログに残す際は secret の代わりに使います。" }, "secret": { "type": "string", "description": "通知の署名検証に使う秘密値。サーバーで保管し、ログやクライアントに出さないでください。" }, "rotation": { "name": "WebhookSigningRotation", "type": "object", "nullable": true, "description": "ローテーション中の旧シークレットの世代と有効期限。", "required": [ "previous_version", "previous_fingerprint", "previous_valid_until" ], "properties": { "previous_version": { "type": "integer", "nullable": true, "description": "併用できる旧シークレットの世代。旧世代がなければ null。" }, "previous_fingerprint": { "type": "string", "nullable": true, "description": "併用できる旧シークレットの指紋。旧世代がなければ null。" }, "previous_valid_until": { "type": "string", "nullable": true, "format": "date-time", "description": "旧シークレットの有効期限。期限後は新しい世代だけで検証します。" } } } } } } }, "example": { "data": { "scope": "workspace", "version": 1, "fingerprint": "sha256:0123456789abcdef", "secret": "", "rotation": null } } } ] } ``` ### 400 ```json { "statusCode": "400", "description": "入力が不正です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "invalid_request", "message": "入力が不正です。必須項目、型、範囲を確認して修正してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "invalid_request", "next_action": "fix_input" } } } ] } ``` ### 401 ```json { "statusCode": "401", "description": "認証が必要です。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "unauthorized", "message": "認証が必要です。有効な API キーと認証ヘッダーを確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "authentication", "stage": "authentication", "retryable": false, "retry_after_seconds": null, "public_reason": "unauthorized", "next_action": "authenticate" } } } ] } ``` ### 403 ```json { "statusCode": "403", "description": "API キーの権限または利用上限により要求が拒否されました。従量課金の USD 残高が生成料金に足りない場合は not_enough_credits を返し、ジョブと予約を作りません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "insufficient_scope", "message": "API キーの権限が不足しています。必要な権限を持つ API キーを指定してください。", "request_id": "req_00000000000000000000000000000000", "category": "authorization", "stage": "authorization", "retryable": false, "retry_after_seconds": null, "public_reason": "insufficient_scope", "next_action": "authenticate" } } } ] } ``` ### 404 ```json { "statusCode": "404", "description": "対象が見つかりません。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "not_found", "message": "対象が見つかりません。ルート、モデル、ジョブとワークスペースの所属を確認してください。", "request_id": "req_00000000000000000000000000000000", "category": "validation", "stage": "validation", "retryable": false, "retry_after_seconds": null, "public_reason": "not_found", "next_action": "fix_input" } } } ] } ``` ### 429 ```json { "statusCode": "429", "description": "リクエスト数または生成キューの上限を超えました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "queue_full", "message": "受付枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "admission", "retryable": true, "retry_after_seconds": 30, "public_reason": "queue_full", "next_action": "retry_later" } } } ] } ``` ### 500 ```json { "statusCode": "500", "description": "処理中に内部エラーが発生しました。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "internal_error", "message": "処理中に内部エラーが発生しました。待機後にバックオフして再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "internal", "stage": "processing", "retryable": true, "retry_after_seconds": 30, "public_reason": "internal_error", "next_action": "retry_later" } } } ] } ``` ### 502 ```json { "statusCode": "502", "description": "モデル提供元への送信に失敗しました。retryable を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_submission_failed", "message": "モデル提供元への送信に失敗しました。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "provider", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_submission_failed", "next_action": "retry_later" } } } ] } ``` ### 503 ```json { "statusCode": "503", "description": "サービスまたはモデルが一時的に利用できません。retry-after を確認してください。", "headers": [ { "name": "x-orchestor-request-id", "in": "header", "required": false, "description": "HTTP リクエストの相関 ID。ジョブの request_id とは別の値。", "schema": { "type": "string" } }, { "name": "ratelimit-limit", "in": "header", "required": false, "description": "現在の期間で許可されるリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-remaining", "in": "header", "required": false, "description": "現在の期間で残っているリクエスト数。", "schema": { "type": "integer" } }, { "name": "ratelimit-reset", "in": "header", "required": false, "description": "制限がリセットされるまでの秒数。", "schema": { "type": "integer" } }, { "name": "retry-after", "in": "header", "required": false, "description": "再試行までの待機秒数。", "schema": { "type": "integer" } } ], "content": [ { "contentType": "application/json", "schema": { "name": "ErrorEnvelope", "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "description": "失敗理由と再試行に必要な情報。失敗していなければ null。", "required": [ "code", "message", "request_id", "category", "stage", "retryable", "retry_after_seconds", "public_reason", "next_action" ], "properties": { "code": { "name": "CreativeErrorCode", "type": "string", "description": "失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。", "enumValues": [ "bad_request", "invalid_request", "unknown_parameter", "unauthorized", "session_not_accepted", "insufficient_funds", "not_enough_credits", "api_key_spend_limit_exceeded", "insufficient_scope", "open_key_route_not_allowed", "open_key_required", "not_found", "project_not_found", "canvas_template_not_found", "canvas_share_not_found", "canvas_share_passphrase_required", "idempotency_conflict", "draft_expired", "job_not_completed", "job_failed", "job_canceled", "job_generation_already_started", "job_not_cancelable", "webhook_not_configured", "job_not_terminal", "asset_upload_incomplete", "top_up_in_dashboard", "payload_too_large", "asset_too_large", "unsupported_media_type", "queue_full", "rate_limited", "provider_rate_limited", "internal_error", "billing_in_dashboard", "provider_submission_failed", "provider_unavailable", "content_moderated", "input_rejected", "provider_capacity_exceeded", "provider_not_configured", "database_busy", "deploy_draining", "overloaded", "replica_not_ready", "api_key_auth_unavailable", "asset_storage_unavailable", "video_analysis_failed" ] }, "message": { "type": "string", "description": "利用者に表示できる処理結果または失敗理由の説明。" }, "request_id": { "pattern": "^req_[a-f0-9]{32}$", "type": "string", "description": "この生成または HTTP 要求を追跡する ID。HTTP の相関 ID とジョブ ID は別に記録します。" }, "category": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力、認証、課金、生成など、失敗原因の分類。" }, "stage": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "入力検証、受付、生成、決済など、失敗が発生した段階。" }, "retryable": { "type": "boolean", "description": "入力を変えずに後から再試行できるかどうか。" }, "retry_after_seconds": { "type": "integer", "nullable": true, "description": "同じ要求を再試行するまで待つ秒数。再試行不要なら null。" }, "public_reason": { "pattern": "^[a-z0-9_]+$", "type": "string", "description": "利用者に公開できる失敗理由の識別子。" }, "next_action": { "type": "string", "description": "次に必要な操作。値に従って入力修正、待機、状態確認、結果取得などを行います。", "enumValues": [ "fix_input", "authenticate", "add_funds", "retry_later", "poll_status", "inspect_events", "contact_support" ] }, "details": { "description": "失敗原因を調べるための補足情報。内容はエラーコードごとに異なります。" } } } } }, "example": { "error": { "code": "provider_capacity_exceeded", "message": "モデルの処理枠が埋まっています。retry-after 後に同じ入力と冪等性キーで再試行してください。", "request_id": "req_00000000000000000000000000000000", "category": "capacity", "stage": "submission", "retryable": true, "retry_after_seconds": 30, "public_reason": "provider_capacity_exceeded", "next_action": "retry_later" } } } ] } ``` ## Examples ```cURL curl --request POST 'https://api.orchestor.io/v1/webhooks/signing-secret/rotate' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY" ``` ```JavaScript // Node.js 24 以上のサーバー側で実行します。 const response = await fetch("https://api.orchestor.io/v1/webhooks/signing-secret/rotate", { method: "POST", headers: {"Authorization": `Bearer ${process.env.ORCHESTOR_API_KEY}`}, }); if (!response.ok) throw new Error(`HTTP ${response.status}`); const result = await response.json(); console.log(result); ``` ```Python import os import requests response = requests.request( 'POST', 'https://api.orchestor.io/v1/webhooks/signing-secret/rotate', headers={'Authorization': f"Bearer {os.environ['ORCHESTOR_API_KEY']}"}, timeout=60, ) response.raise_for_status() print(response.json()) ``` --- - [Documentation index](https://orchestor.io/ja/docs/llms.txt) - [Documentation sitemap](https://orchestor.io/docs/sitemap.md)