ジョブ
ジョブをキャンセル
生成開始前だけキャンセルできます。開始済みは 409 job_generation_already_started を返します。
POST
/v1/creative/jobs/{id}/cancel
curl --request POST 'https://api.orchestor.io/v1/creative/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/cancel' \ --header "Authorization: Bearer $ORCHESTOR_API_KEY"{ "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/creative/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/creative/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" } } }}認証
次のいずれかの条件を満たしてください。
bearerAuthx-api-keySession cookie
認証の詳細
bearer
Authorization
外部 API キー。session は受け付けません。apiKey と同時に送ると 401 です。
レスポンス
application/json
取消結果と更新済みのジョブ。canceled が true なら生成開始前の取消が完了しています。
ヘッダー
{ "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/creative/jobs/job_7513b52d-3669-4ffe-b317-8b02000715eb/status", "result_url": "https://api.orchestor.io/v1/creative/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" } } }}子属性を表示
子属性を表示
子属性を表示
子属性を表示
子属性を表示
子属性を表示
子属性を表示
子属性を表示
子属性を表示
モデルが capabilities.settings に公開している音量・速度・感情の設定だけを指定します。
子属性を表示
出力音声の形式。モデルの capabilities.output_formats にある組み合わせを指定します。
- 追加プロパティ
- 許可しない
子属性を表示
子属性を表示
子属性を表示
背景を文章または写真で指定します。
- 追加プロパティ
- 許可しない
子属性を表示
失敗原因を識別する機械処理向けコード。message の文字列で分岐しないでください。
許可される値
bad_requestinvalid_requestunknown_parameterunauthorizedsession_not_acceptedinsufficient_fundsnot_enough_creditsapi_key_spend_limit_exceededinsufficient_scopeopen_key_route_not_allowedopen_key_requirednot_foundproject_not_foundcanvas_template_not_foundcanvas_share_not_foundcanvas_share_passphrase_requiredidempotency_conflictdraft_expiredjob_not_completedjob_failedjob_canceledjob_generation_already_startedjob_not_cancelablewebhook_not_configuredjob_not_terminalasset_upload_incompletetop_up_in_dashboardpayload_too_largeasset_too_largeunsupported_media_typequeue_fullrate_limitedprovider_rate_limitedinternal_errorbilling_in_dashboardprovider_submission_failedprovider_capacity_exceededprovider_not_configureddatabase_busydeploy_drainingoverloadedreplica_not_readyapi_key_auth_unavailableasset_storage_unavailablevideo_analysis_failed