flux-2-dev - API لـمصر، بالجنيه المصري
مباشرBrand-new Flux2 Dev introduces a faster, more modular architecture for next-generation image generation pipelines. It delivers improved performance, cleaner control APIs, and a significantly more flexible development workflow for custom inference setups.
Modality
image
المنطقة
US
Weights
Weights مفتوحة
منشور
13 سبتمبر 2026
الأسعار
السعر
1.05 ج.م لكل صورة 1024p
يُبلغ المزوّد عن المبلغ الفعلي المخصوم مع كل استجابة.
- السعر لكل وحدة صورة لا لكل صورة: الوحدة الواحدة صورة 1024p بـ 50 خطوة، والطلب الافتراضي يكلّف 1.05 ج.م.
- سعر الوحدة لدى المزوّد (0.5881 ج.م) محسوب على 28 خطوة، ويعمل الـ Model افتراضيًا بـ 50 خطوة.
- التكلفة = سعر الوحدة × (العرض / 1024) × (الارتفاع / 1024) × (الخطوات / 28). الصور الأصغر أرخص، والصور الأكبر والخطوات الأكثر أغلى.
- يُبلغ المزوّد عن التكلفة الدقيقة مع كل رد، وهي ما تدفعه.
استخدمه عبر واجهة API
يعمل flux-2-dev مع أي SDK متوافقة مع OpenAI: وجّه الـ Base URL إلى https://backend.sovereigneg.com/v1 واستخدم مفتاح API الخاص بك من SovereignEG.
تشغيل خدمات الذكاء الاصطناعي
POST /v1/images/generations — متوافق مع OpenAI: استخدم seg-sdk الخاص بنا، أو أي OpenAI SDK كبديل مباشر.
import base64
from seg import SEG # pip install seg-sdk
client = SEG(api_key="YOUR_API_KEY")
response = client.images.generate(
model="flux-2-dev",
prompt='Aerial night photo of the floodlit Giza pyramids under a starry sky, an Egyptian flag spread on the sand, and a glowing "SovereignEG" wordmark in a clean geometric typeface across the sky',
)
with open("image.png", "wb") as f:
f.write(base64.b64decode(response.data[0].b64_json))import base64
from openai import OpenAI
client = OpenAI(
base_url="https://backend.sovereigneg.com/v1",
api_key="YOUR_API_KEY",
)
response = client.images.generate(
model="flux-2-dev",
prompt='Aerial night photo of the floodlit Giza pyramids under a starry sky, an Egyptian flag spread on the sand, and a glowing "SovereignEG" wordmark in a clean geometric typeface across the sky',
)
with open("image.png", "wb") as f:
f.write(base64.b64decode(response.data[0].b64_json))import fs from "node:fs"
import OpenAI from "openai"
const client = new OpenAI({
baseURL: "https://backend.sovereigneg.com/v1",
apiKey: "YOUR_API_KEY",
})
const response = await client.images.generate({
model: "flux-2-dev",
prompt: 'Aerial night photo of the floodlit Giza pyramids under a starry sky, an Egyptian flag spread on the sand, and a glowing "SovereignEG" wordmark in a clean geometric typeface across the sky',
})
fs.writeFileSync("image.png", Buffer.from(response.data[0].b64_json, "base64"))curl https://backend.sovereigneg.com/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-dev",
"prompt": "Aerial night photo of the floodlit Giza pyramids under a starry sky, an Egyptian flag spread on the sand, and a glowing \"SovereignEG\" wordmark in a clean geometric typeface across the sky"
}'الأسئلة الشائعة
أين يُستضاف flux-2-dev؟
يُخدَم flux-2-dev من US (مستضاف في الولايات المتحدة).
هل flux-2-dev Model بـ Weights مفتوحة؟
نعم، flux-2-dev هو Model بـ Weights مفتوحة. وتستدعيه عبر واجهة API من SovereignEG مثل أي Model آخر في الكتالوج، مع محاسبة لكل Token بالجنيه المصري.
كيف أستخدم flux-2-dev عبر واجهة API؟
flux-2-dev متاح عبر واجهة API من SovereignEG المتوافقة مع OpenAI: وجّه الـ Base URL في الـ SDK لديك إلى https://backend.sovereigneg.com/v1، واستدعِ Endpoint /v1/images/generations مع Model ID flux-2-dev ومفتاح API الخاص بك.