APIとMCPでクリエイティブを生成する

Claude Code、MCP、REST API、SDK、またはCLIを使って、Point11 Creative Studioでブランドに沿った広告クリエイティブ、動画、プレゼン資料を生成します。

概要#

Point11 Creative Studioは、Brand Kitを使用してブランドに沿った広告クリエイティブ、動画、プレゼン資料、ランディングページを生成し、顧客のデジタルツインで直接テストします。MCP経由でClaude Codeから対話的に実行することも、スコープ付きAPIキー(alpha:read、alpha:write)、TypeScript SDK(@point11/sdk)、またはPoint11 CLI(npx point11)を使ってCIやスクリプトからヘッドレスで実行することもできます。

クイックスタート#

Point11 MCPサーバー(creative_studio_workflowプロンプトとスキルを含む)にClaude Codeを接続します。

bash
claude mcp add --transport http point11 https://point11.ai/api/mcp

または、Point11 CLIを使ってターミナルから実行します。

bash
npx point11 agent setup
npx point11 login
npx point11 studio projects --json

ライブのStudioプランのクレジットとクレジット料金はGET https://point11.ai/api/v1/public/pricingで確認できます。StudioとAlphaのOpenAPIスライスのみを確認する場合は(APIキーまたはサインインのうえ)GET https://point11.ai/openapi.json?product=alphaをご覧ください。

1. Brand KitとStudioの料金を確認する#

ラウンドを開始する前に、組織のBrand Kit、利用可能なクリエイティブモデル、およびStudioのクレジット利用枠を読み取ります。

bash
curl https://point11.ai/api/v1/alpha/creative-brands \
  -H "Authorization: Bearer $POINT11_API_KEY"

curl https://point11.ai/api/v1/alpha/studio-pricing \
  -H "Authorization: Bearer $POINT11_API_KEY"

Claude Codeでは、"brand kits"または"studio pricing"を指定してfind_toolsを呼び出し、次にrun_read_toolを呼び出します。

2. クリエイティブプロジェクトを作成し、クレジットを見積もる#

クリエイティブブリーフと任意のBrand Kitを指定してStudioプロジェクトを作成し、支出前にそのラウンドのクレジットコストを見積もります。

bash
curl https://point11.ai/api/v1/alpha/creative-projects/create \
  -H "Authorization: Bearer $POINT11_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"title": "Q4 Launch Ads", "brief": "Four high-contrast Instagram feed ads highlighting instant setup."}'

GET /api/v1/alpha/creative-rounds/estimateでクレジットを見積もり、明示的なbudgetUsdの上限を指定して生成ラウンドを開始します(APIキーでは必須。100 StudioクレジットはAI API支出1ドルに相当します)。

bash
curl https://point11.ai/api/v1/alpha/creative-rounds/create \
  -H "Authorization: Bearer $POINT11_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"projectId": "<projectId>", "prompt": "Generate 4 Instagram feed ad variants", "budgetUsd": "4.00"}'

組織に追加の残高やStudioプランが必要な場合、Point11はチェックアウトURLとともに402を返します(Claude CodeではMCP URLエリシテーション経由でインライン表示され、CLIではそのまま出力されるため、同じIdempotency-Keyのままチャージして再試行できます)。

3. 進行状況を追跡し、アセットを書き出し、Digital Twinsでテストする#

GET /api/v1/alpha/creative-rounds/progressまたはGET /api/v1/platform/runs-v2/{runId}でラウンドの進行状況を追跡します(Accept: text/event-streamで更新をストリーミングすることもできます)。完了後の操作は次のとおりです。

  • GET /api/v1/alpha/creative-project-files/downloadで個別ファイルをダウンロードします。
  • GET /api/v1/alpha/creative-projects/exportでフルパッケージをエクスポートします。
  • POST /api/v1/research/study-attachments/import-studio-project-v3を使って、勝ち残ったクリエイティブをDigital Twinクリエイティブテストに直接インポートします。詳しくはAPIでクリエイティブをテストするをご覧ください。