メインコンテンツへスキップ
POST
/
generate
/
k
/
flux2-flex-image-to-image
Flux 2 Flex 画像から画像生成
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/flux2-flex-image-to-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input_urls": [
    "https://example.com/image1.png",
    "https://example.com/image2.png"
  ],
  "prompt": "Replace the can in image 2 with the can from image 1",
  "aspect_ratio": "auto",
  "resolution": "1K"
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Flux2 Flex モデルを使用して画像から画像を生成します。

承認

Authorization
string
header
必須

API トークンを使用して認証してください

ボディ

application/json

Task parameters

input_urls
string[]
必須

入力画像 URL リスト(必須、1-8枚)

Required array length: 1 - 8 elements
:
[
"https://example.com/image1.png",
"https://example.com/image2.png"
]
prompt
string
必須

プロンプト(必須、3-5000文字)

Required string length: 3 - 5000
:

"Replace the can in image 2 with the can from image 1"

aspect_ratio
enum<string>
デフォルト:auto

アスペクト比(任意、デフォルト auto)

利用可能なオプション:
1:1,
4:3,
3:4,
16:9,
9:16,
3:2,
2:3,
auto
:

"auto"

resolution
enum<string>
デフォルト:1K

解像度(任意、デフォルト 1K)

利用可能なオプション:
1K,
2K
:

"1K"

レスポンス

OK

task_id
string
必須

Task ID

:

"01234567-89ab-cdef-0123-456789abcdef"