公式ドキュメント: https://api.bhl.ml/scalar#tag/tasks/POST/v1/flux-pro
公式ドキュメントを確認してください。すべてのパラメータは公式ドキュメントと一致しています。
公式価格: https://docs.bfl.ml/pricing/
価格:(公式と同じ)
[flux-pro-1.1-ultra] 0.06 PTC/image
[flux-pro-1.1] 0.04 PTC/image
[flux-pro] 0.05 PTC/image
[flux-dev] 0.025 PTC/image
[flux-pro-1.0-fill] 0.05 PTC/image
[flux-pro-1.0-canny] 0.05 PTC/image
[flux-pro-1.0-depth] 0.05 PTC/image
[flux-pro-1.1-ultra-finetuned] 0.07 PTC/image
[flux-pro-1.0-finetuned] 0.06 PTC/image
[[flux-pro-1.0-depth-finetuned] 0.06 PTC/image
flux-pro-1.0-canny-finetuned] 0.06 PTC/image
[flux-pro-1.0-fill-finetuned] 0.06 PTC/image Request
Example:Bearer {{YOUR_API_KEY}}
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 samples
curl --location --request POST 'https://api.302.ai/flux/v1/' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--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 has_nsfw_concepts
array[boolean]
required{
"images": [
{
"url": "string",
"width": 0,
"height": 0,
"content_type": "string"
}
],
"timings": {},
"seed": 0,
"has_nsfw_concepts": [
true
],
"prompt": "string"
}
Modified at 2025-01-23 03:19:22