Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

Recraft のロゴ

Recraft V4.1 Utility Pro

テキストから画像 • Recraft

Markdown で表示Agent セットアップ
  • サードパーティ
  • ゼロデータ保持

Recraft V4.1 Utility Pro は、制作や印刷など幅広い用途向けに 2048px 以上の高解像度画像を生成する汎用モデルです。

モデル情報
利用規約とライセンスリンク
詳細情報リンク
ゼロデータ保持はい
料金Cloudflare ダッシュボードで料金を見る

使い方

const response = await env.AI.run(
  'recraft/recraftv4-1-utility-pro',
  {
    prompt:
      'A detailed illustrated map of an imaginary fantasy island with labeled landmarks, mountains, and forests',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "recraft/recraftv4-1-utility-pro",
  "input": {
    "prompt": "A detailed illustrated map of an imaginary fantasy island with labeled landmarks, mountains, and forests"
  }
}'
印刷向けイラスト
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-1-utility-pro/print-ready-illustration.png"
  },
  "state": "Completed"
}

大判アート — 大きなキャンバスの汎用画像です
const response = await env.AI.run(
  'recraft/recraftv4-1-utility-pro',
  {
    prompt:
      'A wide panoramic landscape of rolling green hills with a river winding through the valley under a bright blue sky',
    size: '2048x2048',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "recraft/recraftv4-1-utility-pro",
  "input": {
    "prompt": "A wide panoramic landscape of rolling green hills with a river winding through the valley under a bright blue sky",
    "size": "2048x2048"
  }
}'
大判アート
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-1-utility-pro/large-format-art.png"
  },
  "state": "Completed"
}
マーケティング素材 — 色を制御した高解像度のマーケティングビジュアルです
const response = await env.AI.run(
  'recraft/recraftv4-1-utility-pro',
  {
    prompt: 'A clean, modern banner illustration of a smartphone displaying a productivity app',
    controls: {
      background_color: { rgb: [250, 250, 255] },
      colors: [{ rgb: [100, 200, 150] }, { rgb: [20, 20, 60] }],
    },
    size: '2048x2048',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "recraft/recraftv4-1-utility-pro",
  "input": {
    "prompt": "A clean, modern banner illustration of a smartphone displaying a productivity app",
    "controls": {
      "background_color": {
        "rgb": [
          250,
          250,
          255
        ]
      },
      "colors": [
        {
          "rgb": [
            100,
            200,
            150
          ]
        },
        {
          "rgb": [
            20,
            20,
            60
          ]
        }
      ]
    },
    "size": "2048x2048"
  }
}'
マーケティング素材
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-1-utility-pro/marketing-asset.png"
  },
  "state": "Completed"
}
技術図 — 高解像度の技術図またはインフォグラフィックイラストです
const response = await env.AI.run(
  'recraft/recraftv4-1-utility-pro',
  {
    prompt:
      'A clean technical diagram showing the layers of a cloud computing architecture with labeled tiers',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "recraft/recraftv4-1-utility-pro",
  "input": {
    "prompt": "A clean technical diagram showing the layers of a cloud computing architecture with labeled tiers"
  }
}'
技術図
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/recraft__recraftv4-1-utility-pro/technical-diagram.png"
  },
  "state": "Completed"
}

パラメーター

prompt
string必須
size
string
style
string
substyle
string
image
string

API スキーマ(Raw)

Input
Output

役に立ちましたか?