インターフェース使用手順:
1.動画生成インターフェース(/flux/v1/flux-2-flex)を使用し、対応するパラメータを入力した後、タスクIDを取得する
2.クエリインターフェース(/flux/v1/get_result)を使用し、タスクIDを入力して結果を取得します。価格:0.06 PTC/百万画素(入力+出力画素) Request
Body Params application/json
{
"prompt": "ein fantastisches bild",
"width": 1024,
"height": 768,
"steps": 40,
"prompt_upsampling": false,
"seed": 42,
"guidance": 2.5,
"safety_tolerance": 2,
"interval": 2,
"output_format": "jpeg"
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/flux/v1/flux-2-flex' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "ein fantastisches bild",
"width": 1024,
"height": 768,
"steps": 40,
"prompt_upsampling": false,
"seed": 42,
"guidance": 2.5,
"safety_tolerance": 2,
"interval": 2,
"output_format": "jpeg"
}'
Responses
application/json {
"id": "string",
"polling_url": "string",
"cost": 0,
"input_mp": 0,
"output_mp": 0
}
Modified at 2025-11-28 06:51:03