コンテンツへスキップ

Recraft V4 Styles Pro Text to Vector

統合

モデルID recraft/v4/style/pro/text-to-vector
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/recraft/v4/style/pro/text-to-vector?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエスト: $0.125 125 APIクレジット · ≈ ₽13.32 このページで実行

APIキーを取得
Recraft テキストから画像 #stylized#transform#editing

スタイル ID または参照画像から一貫したカスタムスタイルを維持する Pro V4 ベクター生成

Recraft · 画像

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須 88 / 10000
image_size デフォルト square_hd

以前作成したV4カスタムスタイルの識別子。

詳細設定 images · style_match · enable_safety_checker · colors · background_color
image_urls
ファイルをドロップ、または · 10まで

PNG、JPG、WEBP形式の画像をURLで指定するスタイル参照を1–10個入力します。

style_match

生成時にカスタムスタイルへ従う度合いの上書き値。

デフォルト []

優先する色を含む配列。

生成画像の背景に使用する優先色。

POST /run/recraft/v4/style/pro/text-to-vector?wait=20 見積もり → $0.125
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/recraft/v4/style/pro/text-to-vector?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエストを実行

キーはこのブラウザ内に保持されます。Doitong APIにのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

Recraft V4 Styles Pro Text to Vectorについて

保存済みの`style_id`、または`image_urls`内の参照画像1~10枚を使用して、一貫したスタイルのベクター画像を生成します。`style_match`はpreciseまたはflexibleです。その他の入力として、最大10,000文字の`prompt`、`image_size`、`colors`、`background_color`を指定します。画像と使用したスタイルを返します。

パラメータ

正式名称またはネイティブ名のいずれか一方を送信してください。両方は送信しないでください。 正式名称

名前型 デフォルト許可される値 説明
prompt必須
型string
≤ 10,000文字
image_size任意
型object
デフォルトsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
colors任意
型object[]
デフォルト[]
優先する色を含む配列。
colors[].r任意
型integer
デフォルト0
0 – 255
赤成分の値。
colors[].g任意
型integer
デフォルト0
0 – 255
緑成分の値。
colors[].b任意
型integer
デフォルト0
0 – 255
青成分の値。
background_color任意
型object
生成画像の背景に使用する優先色。
background_color.r任意
型integer
デフォルト0
0 – 255
赤成分の値。
background_color.g任意
型integer
デフォルト0
0 – 255
緑成分の値。
background_color.b任意
型integer
デフォルト0
0 – 255
青成分の値。
enable_safety_checker任意
型boolean
デフォルトtrue
安全性チェックの切り替え。オフにするにはアカウント認証が必要です。認証がない場合、設定に関係なくすべてのリクエストがチェックされます。trueでチェッカーを有効にします。
style_id任意
型string | null
以前作成したV4カスタムスタイルの識別子。
image_urls任意 images
型url[] · image
≤ 10項目
PNG、JPG、WEBP形式の画像をURLで指定するスタイル参照を1–10個入力します。
style_match任意
型enum
preciseflexible
生成時にカスタムスタイルへ従う度合いの上書き値。
必須 正式名称(こちらも使用可能)

ファイルパラメータには、公開されたhttps:// URL、10 MBまでのdata: URI、またはアップロードしたファイルのfile_urlを指定します。 ファイル

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v4/style/pro/text-to-vector",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 125,
    "usd": "0.125",
    "charged": 125,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    ],
    "style_id": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
images
array of object {url, content_type, file_name, file_size}
style_id
string | nullこの生成で適用または新規作成するカスタムスタイル。

その他のモデル: テキストから画像

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/recraft/v4/style/pro/text-to-vector.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt