← スキル一覧に戻る

flux-image
by olivenet-iot
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: flux-image description: FLUX.2 Pro gorsel uretimi. Use when generating AI images for posts.
FLUX.2 Pro Image Generation
Quick Reference
| Fonksiyon | Amac |
|---|---|
| generate_image_flux() | Gorsel uret |
| get_credits() | Kredi sorgula |
Kullanim
from app.flux_helper import generate_image_flux
result = await generate_image_flux(
prompt="Professional IoT sensor, modern tech style",
width=1024,
height=1024,
output_format="png"
)
if result["success"]:
image_path = result["image_path"]
Parametreler
| Param | Default | Aciklama |
|---|---|---|
| prompt | required | Ingilizce prompt |
| width | 1024 | Genislik (px) |
| height | 1024 | Yukseklik (px) |
| output_format | "png" | png veya jpeg |
| max_wait_seconds | 120 | Timeout |
API Akisi
1. POST /flux-2-pro -> task_id al
2. GET /get_result?id=task_id (polling, 2s aralik)
3. Status: Ready -> image URL indir
4. Dosyaya kaydet -> image_path don
Return Format
# Basarili
{
"success": True,
"image_path": "/opt/olivenet-social-bot/outputs/flux_20241225_123456.png",
"duration": 45.2,
"file_size": 1234567,
"cost": 4.0 # credits
}
# Hata
{
"success": False,
"error": "Content Moderated"
}
Status Degerleri
| Status | Anlam |
|---|---|
| Ready | Basarili, image URL mevcut |
| Error | Genel hata |
| Content Moderated | Icerik engellendi |
| Request Moderated | Istek engellendi |
Prompt Tips
- Ingilizce yaz
- Detayli sahne aciklamasi
- Stil belirt: "professional", "photorealistic", "modern tech"
- IoT/teknoloji icin: sensor, dashboard, LED, cable, industrial
Ornek Prompt
Professional IoT sensor device mounted on greenhouse wall,
green LED indicator blinking, modern agricultural technology,
morning sunlight, shallow depth of field, photorealistic
Environment
BFL_API_KEY=your_black_forest_labs_api_key
Dosya
app/flux_helper.py
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です