Skip to content

モデルマーケットプレイス Replicate

  • 2025.01.05 このサイトは現在、選択されたReplicateモデルをサポートしています
  • 動画音楽画像生成リップシンクなどをサポート

価格と課金

  • 価格はReplicateの為替レート2.5に基づいています
  • 例:公式価格 $0.1 USD/リクエスト = 0.25 CNY/リクエスト = 2500 クレジット/リクエスト
  • 課金:動画はリクエストごと、画像は画像ごとに課金されます

サポートされているモデル

  • 公式サイトでより興味深いモデルを見つけた場合は、管理者に連絡して追加してもらってください
モデル価格(USD)説明
black-forest-labs/flux-kontext-pro0.04画像生成
black-forest-labs/flux-kontext-max0.08画像生成
black-forest-labs/flux-schnell0.003画像生成
black-forest-labs/flux-dev0.025画像生成
black-forest-labs/flux-pro0.055画像生成
black-forest-labs/flux-1.1-pro0.04画像生成
black-forest-labs/flux-1.1-pro-ultra0.06画像生成
black-forest-labs/flux-kontext-dev0.025画像生成
stability-ai/stable-diffusion0.0034画像生成(バージョン)
stability-ai/sdxl0.0063画像生成(バージョン)
stability-ai/stable-diffusion-inpainting0.0021画像生成(バージョン)
stability-ai/stable-diffusion-img2img0.0093画像生成(バージョン)
minimax/video-010.50動画
minimax/video-01-live0.50動画
lucataco/flux-schnell-lora0.0060画像生成(バージョン)
lucataco/flux-dev-lora0.038画像生成(バージョン)
recraft-ai/recraft-v3-svg0.08画像生成
recraft-ai/recraft-v30.04画像生成
recraft-ai/recraft-remove-background0.01画像生成
recraft-ai/recraft-vectorize0.01画像生成
recraft-ai/recraft-creative-upscale0.3画像生成
recraft-ai/recraft-crisp-upscale0.006画像生成
recraft-ai/recraft-20b-svg0.044画像生成
recraft-ai/recraft-20b0.022画像生成
ideogram-ai/ideogram-v2-turbo0.05画像生成
lucataco/animate-diff0.092画像生成(バージョン)
andreasjansson/stable-diffusion-animation0.13画像生成(バージョン)
sujaykhandekar/object-removal0.0097被写体除去、背景保持
cjwbw/rembg0.0049背景除去
google/veo-30.75/秒Google動画
google/veo-20.5/秒Google動画
riffusion/riffusion0.034Riffusion音楽(バージョン)
kwaivgi/kling-v2.5-turbo-pro0.07/秒Kling動画
kwaivgi/kling-v2.00.28/秒Kling動画
kwaivgi/kling-v1.6-pro0.095/秒Kling動画
kwaivgi/kling-v1.6-standard0.05/秒Kling動画
kwaivgi/kling-lip-sync0.014/秒Kling動画
wavespeedai/wan-2.1-i2v-480p0.09/秒動画
wavespeedai/wan-2.1-t2v-480p0.07/秒動画
wavespeedai/wan-2.1-i2v-720p0.25/秒動画
wavespeedai/wan-2.1-t2v-720p0.24/秒動画
openai/gpt-image-10.001/画像画像生成
prunaai/vace-14b0.6動画(バージョン)
lucataco/remove-bg0.00055背景除去(バージョン)
flux-kontext-apps/multi-image-kontext-pro0.04画像生成
flux-kontext-apps/multi-image-kontext-max0.08画像生成
google/imagen-40.04画像生成
google/imagen-4-ultra0.06画像生成
google/imagen-4-fast0.02画像生成
black-forest-labs/flux-fill-pro0.05画像生成
black-forest-labs/flux-fill-dev0.04画像生成
minimax/hailuo-2.30.28/718p/6秒動画
minimax/hailuo-020.27/718p/6秒動画
  • バージョン参照テーブル

    モデルversion
    stability-ai/stable-diffusionac732df83cea7fff18b8472768c88ad041fa750ff7682a21affe81863cbe77e4
    stability-ai/sdxl7762fd07cf82c948538e41f63f77d685e02b063e37e496e96eefd46c929f9bdc
    stability-ai/stable-diffusion-inpainting95b7223104132402a9ae91cc677285bc5eb997834bd2349fa486f53910fd68b3
    stability-ai/stable-diffusion-img2img15a3689ee13b0d2616e98820eca31d4c3abcd36672df6afce5cb6feb1d66087d
    lucataco/flux-dev-lora091495765fa5ef2725a175a57b276ec30dc9d39c22d30410f2ede68a3eab66b3
    lucataco/flux-schnell-lora2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574
    lucataco/animate-diffbeecf59c4aee8d81bf04f0381033dfa10dc16e845b4ae00d281e2fa377e48a9f
    andreasjansson/stable-diffusion-animationca1f5e306e5721e19c473e0d094e6603f0456fe759c10715fcd6c1b79242d4a5
    riffusion/riffusion8cf61ea6c56afd61d8f5b9ffd14d7c216c0a93844ce2d82ac1c9ecc9c7f24e05
    prunaai/vace-14bbbafc615de3e3903470a335f94294810ced166309adcba307ac8692113a7b273
    lucataco/remove-bg95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1

Replicate API

  • 公式の https://api.replicate.comhttps://api.openai-hk.com/replicate に置き換えます
  • 入力、出力、リクエスト形式は公式APIと同一です

1. タスク作成 — パスメソッド

post https://api.openai-hk.com/replicate/v1/models/black-forest-labs/flux-schnell/predictions

shell
curl --request POST \
  --url https://api.openai-hk.com/replicate/v1/models/black-forest-labs/flux-schnell/predictions \
  --header 'Authorization: Bearer hk-you-key' \
  --header 'Content-Type: application/json' \
  --data '{
    "input": {
      "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
      "go_fast": true,
      "megapixels": "1",
      "num_outputs": 1,
      "aspect_ratio": "1:1",
      "output_format": "jpg",
      "output_quality": 80,
      "num_inference_steps": 4
    }
  }'
curl --request POST \
  --url https://api.openai-hk.com/replicate/v1/models/black-forest-labs/flux-schnell/predictions \
  --header 'Authorization: Bearer hk-you-key' \
  --header 'Content-Type: application/json' \
  --data '{
    "input": {
      "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
      "go_fast": true,
      "megapixels": "1",
      "num_outputs": 1,
      "aspect_ratio": "1:1",
      "output_format": "jpg",
      "output_quality": 80,
      "num_inference_steps": 4
    }
  }'

レスポンスボディ — id は次のクエリステップのタスクIDです

json
{
  "id": "qpt5jq1fssrmc0cmd5hvy31mdg",
  "model": "black-forest-labs/flux-schnell",
  "version": "dp-4d0bcc010b3049749a251855f12800be",
  "input": {
    "aspect_ratio": "1:1",
    "go_fast": true,
    "megapixels": "1",
    "num_inference_steps": 4,
    "num_outputs": 1,
    "output_format": "jpg",
    "output_quality": 80,
    "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)"
  },
  "logs": "",
  "output": null,
  "data_removed": false,
  "error": null,
  "status": "starting",
  "created_at": "2025-01-15T09:54:55.566Z",
  "urls": {
    "cancel": "https://api.replicate.com/v1/predictions/qpt5jq1fssrmc0cmd5hvy31mdg/cancel",
    "get": "https://api.replicate.com/v1/predictions/qpt5jq1fssrmc0cmd5hvy31mdg",
    "stream": "https://stream.replicate.com/v1/files/bcwr-gvuc2rokjozhlaxh6dcvk6tvhh2ymt4egnnpxvmtqql57angyfsq"
  }
}
{
  "id": "qpt5jq1fssrmc0cmd5hvy31mdg",
  "model": "black-forest-labs/flux-schnell",
  "version": "dp-4d0bcc010b3049749a251855f12800be",
  "input": {
    "aspect_ratio": "1:1",
    "go_fast": true,
    "megapixels": "1",
    "num_inference_steps": 4,
    "num_outputs": 1,
    "output_format": "jpg",
    "output_quality": 80,
    "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)"
  },
  "logs": "",
  "output": null,
  "data_removed": false,
  "error": null,
  "status": "starting",
  "created_at": "2025-01-15T09:54:55.566Z",
  "urls": {
    "cancel": "https://api.replicate.com/v1/predictions/qpt5jq1fssrmc0cmd5hvy31mdg/cancel",
    "get": "https://api.replicate.com/v1/predictions/qpt5jq1fssrmc0cmd5hvy31mdg",
    "stream": "https://stream.replicate.com/v1/files/bcwr-gvuc2rokjozhlaxh6dcvk6tvhh2ymt4egnnpxvmtqql57angyfsq"
  }
}

2. タスク作成 — バージョンメソッド

  • lucataco/flux-schnell-lora を例として使用

  • リファレンスドキュメント:https://replicate.com/lucataco/flux-schnell-lora?input=http

  • リファレンスドキュメントから、バージョンは 2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574 です

  • curlリクエスト

shell
curl --request POST \
  --url https://api.openai-hk.com/replicate/v1/predictions \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{
    "version": "2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574",
    "input": {
      "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
      "hf_lora": "alvdansen/frosting_lane_flux",
      "lora_scale": 0.8,
      "num_outputs": 1,
      "aspect_ratio": "1:1",
      "output_format": "webp",
      "output_quality": 80,
      "prompt_strength": 0.8,
      "num_inference_steps": 4
    }
  }'
curl --request POST \
  --url https://api.openai-hk.com/replicate/v1/predictions \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{
    "version": "2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574",
    "input": {
      "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
      "hf_lora": "alvdansen/frosting_lane_flux",
      "lora_scale": 0.8,
      "num_outputs": 1,
      "aspect_ratio": "1:1",
      "output_format": "webp",
      "output_quality": 80,
      "prompt_strength": 0.8,
      "num_inference_steps": 4
    }
  }'

レスポンスボディ形式は上記と同じです

json
{
  "id": "w5h20n0m6nrj40cmd50vw5vv28",
  "model": "lucataco/flux-schnell-lora",
  "version": "2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574",
  "input": {
    "aspect_ratio": "1:1",
    "hf_lora": "alvdansen/frosting_lane_flux",
    "lora_scale": 0.8,
    "num_inference_steps": 4,
    "num_outputs": 1,
    "output_format": "webp",
    "output_quality": 80,
    "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
    "prompt_strength": 0.8
  },
  "logs": "",
  "output": null,
  "data_removed": false,
  "error": null,
  "status": "starting",
  "created_at": "2025-01-15T09:17:40.277Z",
  "urls": {
    "cancel": "https://api.replicate.com/v1/predictions/w5h20n0m6nrj40cmd50vw5vv28/cancel",
    "get": "https://api.replicate.com/v1/predictions/w5h20n0m6nrj40cmd50vw5vv28",
    "stream": "https://stream.replicate.com/v1/files/qoxq-cx45qfaeignw3k7eadaigndgsgh3i7ebmxquakponlvepga6genq"
  }
}
{
  "id": "w5h20n0m6nrj40cmd50vw5vv28",
  "model": "lucataco/flux-schnell-lora",
  "version": "2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574",
  "input": {
    "aspect_ratio": "1:1",
    "hf_lora": "alvdansen/frosting_lane_flux",
    "lora_scale": 0.8,
    "num_inference_steps": 4,
    "num_outputs": 1,
    "output_format": "webp",
    "output_quality": 80,
    "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
    "prompt_strength": 0.8
  },
  "logs": "",
  "output": null,
  "data_removed": false,
  "error": null,
  "status": "starting",
  "created_at": "2025-01-15T09:17:40.277Z",
  "urls": {
    "cancel": "https://api.replicate.com/v1/predictions/w5h20n0m6nrj40cmd50vw5vv28/cancel",
    "get": "https://api.replicate.com/v1/predictions/w5h20n0m6nrj40cmd50vw5vv28",
    "stream": "https://stream.replicate.com/v1/files/qoxq-cx45qfaeignw3k7eadaigndgsgh3i7ebmxquakponlvepga6genq"
  }
}

3. タスク取得

  • 上記の作成ステップから取得したタスクIDを使用します
  • 結果はキーフィールド output にあります
  • 注意:レスポンスとリンクされたファイルには有効期限があります

get https://api.openai-hk.com/replicate/v1/predictions/{id}

shell
curl --request GET \
  --url https://api.openai-hk.com/replicate/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114 \
  --header 'Authorization: Bearer hk-you-key' \
  --header 'Content-Type: application/json'
curl --request GET \
  --url https://api.openai-hk.com/replicate/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114 \
  --header 'Authorization: Bearer hk-you-key' \
  --header 'Content-Type: application/json'

レスポンスボディ

json
{
  "id": "ctdwaehfz1rm80cmd5nsjd8114",
  "model": "black-forest-labs/flux-schnell",
  "version": "dp-4d0bcc010b3049749a251855f12800be",
  "input": {
    "aspect_ratio": "1:1",
    "go_fast": true,
    "megapixels": "1",
    "num_inference_steps": 4,
    "num_outputs": 1,
    "output_format": "jpg",
    "output_quality": 80,
    "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)"
  },
  "logs": "Using seed: 62182\nrunning quantized prediction\nUsing seed: 62182\n  0%|          | 0/4 [00:00<?, ?it/s]\n 75%|███████▌  | 3/4 [00:00<00:00, 15.38it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.43it/s]\nTotal safe images: 1 out of 1\n",
  "output": [
    "https://replicate.delivery/xezq/RoEhEdyl8PoIGFFPg46TU4Svj24i1NDVYmzehJfqLuX9nTFUA/out-0.jpg"
  ],
  "data_removed": false,
  "error": null,
  "status": "succeeded",
  "created_at": "2025-01-15T10:03:39.896Z",
  "started_at": "2025-01-15T10:03:40.584470194Z",
  "completed_at": "2025-01-15T10:03:41.142386377Z",
  "urls": {
    "cancel": "https://api.replicate.com/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114/cancel",
    "get": "https://api.replicate.com/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114",
    "stream": "https://stream.replicate.com/v1/files/bcwr-q57vie7wuzg3wxv2hvpajgmzqzmxe67kqddednevutmrpdcft6xq"
  },
  "metrics": {
    "image_count": 1,
    "predict_time": 0.557916184
  }
}
{
  "id": "ctdwaehfz1rm80cmd5nsjd8114",
  "model": "black-forest-labs/flux-schnell",
  "version": "dp-4d0bcc010b3049749a251855f12800be",
  "input": {
    "aspect_ratio": "1:1",
    "go_fast": true,
    "megapixels": "1",
    "num_inference_steps": 4,
    "num_outputs": 1,
    "output_format": "jpg",
    "output_quality": 80,
    "prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension,  is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)"
  },
  "logs": "Using seed: 62182\nrunning quantized prediction\nUsing seed: 62182\n  0%|          | 0/4 [00:00<?, ?it/s]\n 75%|███████▌  | 3/4 [00:00<00:00, 15.38it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.43it/s]\nTotal safe images: 1 out of 1\n",
  "output": [
    "https://replicate.delivery/xezq/RoEhEdyl8PoIGFFPg46TU4Svj24i1NDVYmzehJfqLuX9nTFUA/out-0.jpg"
  ],
  "data_removed": false,
  "error": null,
  "status": "succeeded",
  "created_at": "2025-01-15T10:03:39.896Z",
  "started_at": "2025-01-15T10:03:40.584470194Z",
  "completed_at": "2025-01-15T10:03:41.142386377Z",
  "urls": {
    "cancel": "https://api.replicate.com/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114/cancel",
    "get": "https://api.replicate.com/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114",
    "stream": "https://stream.replicate.com/v1/files/bcwr-q57vie7wuzg3wxv2hvpajgmzqzmxe67kqddednevutmrpdcft6xq"
  },
  "metrics": {
    "image_count": 1,
    "predict_time": 0.557916184
  }
}

レスポンスボディのキーフィールドの説明

フィールドタイプ説明
inputobject入力
outputstring or []stringコンテンツ出力URL
statusstringステータス:starting processing succeeded failed