出力解像度
公開 endpoint スキーマから 1k をサポートしています。
curl -X POST https://runapi.ai/api/v1/flux_2/remix_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-max-remix-image",
"prompt": "宇宙飛行士が猫を抱いている写真のようなスタジオポートレートを生成してください。ドラマチックなリムライティングで、細部まで表現してください。"
}'
import { Flux2Client } from "@runapi.ai/flux-2";
const client = new Flux2Client();
const result = await client.remixImage.run({
model: "flux-2-max-remix-image",
prompt: "宇宙飛行士が猫を抱いている写真のようなスタジオポートレートを生成してください。ドラマチックなリムライティングで、細部まで表現してください。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/flux_2/remix_image",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"flux-2-max-remix-image","prompt":"宇宙飛行士が猫を抱いている写真のようなスタジオポートレートを生成してください。ドラマチックなリムライティングで、細部まで表現してください。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/flux_2/remix_image");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'flux-2-max-remix-image',
'prompt' => '宇宙飛行士が猫を抱いている写真のようなスタジオポートレートを生成してください。ドラマチックなリムライティングで、細部まで表現してください。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.remixImage().run({"model":"flux-2-max-remix-image","prompt":"宇宙飛行士が猫を抱いている写真のようなスタジオポートレートを生成してください。ドラマチックなリムライティングで、細部まで表現してください。"});
task.waitForResult();
require "runapi/flux_2"
client = RunApi::Flux2::Client.new
result = client.remix_image.run(
model: "flux-2-max-remix-image",
prompt: "宇宙飛行士が猫を抱いている写真のようなスタジオポートレートを生成してください。ドラマチックなリムライティングで、細部まで表現してください。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.remixImage.Run({"model":"flux-2-max-remix-image","prompt":"宇宙飛行士が猫を抱いている写真のようなスタジオポートレートを生成してください。ドラマチックなリムライティングで、細部まで表現してください。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model flux-2-max-remix-image \
--endpoint remix_image \
--wait
6 個のバージョンを利用可能
モデルを選んで、数秒で生成できます。
モデルを選んで、数秒で生成できます。
| プロバイダー | Black Forest Labs |
| モデル ID | flux-2-max-remix-image |
| モダリティ | Image |
| タスク種別 | Asynchronous |
| API エンドポイント | /api/v1/flux_2/remix_image |
| 請求単位 | call |
| 入力パラメータ | aspect_ratio, callback_url, model, output_count, output_resolution, prompt, source_image_urls |
| 最大解像度 | 1k |
| アスペクト比 | 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3 |
| カタログ状態 | 稼働中 |
無料で登録し、ダッシュボードから flux-2-max-remix-image 用の API キーを作成します。
/api/v1/flux_2/remix_image に flux-2-max-remix-image のモデル ID とパラメータを指定して POST リクエストを送信します。
タスクをポーリングするかコールバックに従って、完了した flux-2-max-remix-image の結果を取得します。
公開 endpoint スキーマから 1k をサポートしています。
aspect_ratio, output_count, output_resolution, prompt, source_image_urls を含む 5 個のドキュメント済みパラメータを設定できます。
1 個の公開 endpoint を提供しています: remix_image。
非同期タスクはコールバック URL を受け付け、完了通知を送信します。
promptImage editing instruction.
aspect_ratioOutput aspect ratio. (1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3)
callback_urlWebhook URL for async notifications.
output_countNumber of images to generate. (1)
output_resolutionOutput resolution. (1k)
source_image_urlsExactly one public HTTP(S) source image URL.
テキスト prompt からビジュアルアセットを作成します。
prompt に沿って既存画像を変換します。
SDK で再現可能な生成を行います。
quickstart に表示されるモデル ID を渡してください。
はい。呼び出しまたは単位ごとの従量課金です。