本文へ移動
使い方

ドキュメントを検索

検索はブラウザー内で行われ、入力した語句は送信・保存されません。認証情報は入力しないでください。

検索データを読み込み中…

Tab または矢印キーで移動 · Enter で開く · Esc で閉じる
ドキュメントを探す

アニメーション書き出しを作成

POST /animation-exportsの認証、フィールド、応答、エラー、安全な運用をソースから生成した参考資料です。

公開ベータAPI v1 · 1.4.0最終確認
このページの目次

操作

POST /animation-exports

operationId: create_animation_export_v1_animation_exports_post

有料の非同期タスクを開始します。先に見積もりと利用者の承認を得て、返されたIDを保存します。HTTP 202は受理を示し、完了ではありません。応答が不明な場合は同じIdempotency-Key、認証主体、不変の本文を再利用します。作成時には価格を再計算し、公開APIの見積もりは価格を固定しません。max_creditsとquote_idはAPI本文のフィールドではありません。Retry-Afterに従って状態確認し、失敗を含むすべての終状態で成果物を調べます。

認証と副作用

サーバー側のBearer APIキーを使います。必要な権限:animations:write

有料処理を作成します。送信前に承認を得てください。API見積もりは価格固定でもサーバー強制の上限でもありません。

パラメータ

パラメータ 位置 型 必須 制約/既定値 説明
Idempotency-Key header string はい minLength: 8; maxLength: 200 Persist once per logical operation; reuse with the same credential and unchanged body. Changing credentials changes the deduplication scope.

リクエスト本文 (application/json)

本文必須:true

フィールド 型 必須 既定値 制約 説明
export ExportOptions いいえ {"fps":null,"frame_count":24,"output_formats":["spritesheet"],"output_height":512,"output_width":512,"transparent":{"enabled":false},"unity":{"pivot":"bottom_center","pixels_per_unit":100}} — Output formats and processing settings.
metadata object いいえ {} — Simple scalar/null metadata; at most 4 KiB JSON, no credentials.
selection Selection いいえ {"duration_seconds":null,"mode":"full","start_seconds":0} — Source interval to export.
source_video_asset_id string はい — format: uuid Owned source video asset ID, not a task ID. Reuse an existing video to avoid generating motion again.

入れ子の全スキーマ:AnimationExportCreateRequest

リクエスト例

json
{
  "export": {
    "fps": 12,
    "output_formats": [
      "spritesheet",
      "spritesheet_json"
    ],
    "output_height": 512,
    "output_width": 512
  },
  "selection": {
    "duration_seconds": 2,
    "mode": "range",
    "start_seconds": 1
  },
  "source_video_asset_id": "00000000-0000-4000-8000-000000000003"
}

リクエスト例

json
{
  "export": {
    "frame_count": 24,
    "output_formats": [
      "frames_zip"
    ],
    "output_height": 512,
    "output_width": 512
  },
  "selection": {
    "mode": "full"
  },
  "source_video_asset_id": "00000000-0000-4000-8000-000000000003"
}

応答

HTTP 本文 説明
202 TaskResponse Accepted asynchronously; poll the task ID.
400 APIErrorEnvelope Invalid input; correct the request before retrying.
401 APIErrorEnvelope Missing, expired, or revoked API key.
402 APIErrorEnvelope Insufficient credits; do not automatically purchase.
403 APIErrorEnvelope Account eligibility, account status, or key scope does not allow this operation.
404 APIErrorEnvelope Resource is unavailable, not owned, or its signature is invalid/expired.
409 APIErrorEnvelope Idempotency conflict; only IDEMPOTENCY_IN_PROGRESS is retryable with the original request.
413 APIErrorEnvelope Request or decoded image exceeds the configured limit.
415 APIErrorEnvelope Use supported image media types.
422 APIErrorEnvelope Decoded image dimensions exceed the allowed size.
429 APIErrorEnvelope Account-wide rate or queue limit; wait for Retry-After.
500 APIErrorEnvelope Internal failure; preserve the task/key and retry only when marked retryable.
503 APIErrorEnvelope Service/provider unavailable; retry only when error.retryable is true.

応答ヘッダー

HTTP ヘッダー 型 説明
202 Retry-After integer Suggested wait in seconds; respect the server value and an overall deadline.
429 Retry-After integer Suggested wait in seconds; respect the server value and an overall deadline.
503 Retry-After integer Suggested wait in seconds; respect the server value and an overall deadline.

応答例

json
{
  "created_at": "2026-08-30T00:00:00Z",
  "credits": {
    "charged": 0,
    "held": 1,
    "quoted": 1
  },
  "error": null,
  "finished_at": null,
  "id": "00000000-0000-4000-8000-000000000002",
  "metadata": {},
  "normalized_input": {},
  "object": "animation_export",
  "outputs": [],
  "progress": 0,
  "stage": "queued",
  "started_at": null,
  "status": "queued"
}

関連ガイド

状態確認とダウンロード · エラーと安全な再試行

この記事は役に立ちましたか?

検索語句、コード、自由記述は収集しません。この設定はドキュメントの操作イベントのみを制御します。 プライバシーポリシー

お困りですか?サポートへ