qwen-imageافتراضيAlibaba Qwen Image API — كيفية الاتصال والدفع
Alibaba Qwen Image — توليد الصور وتحريرها (الإصداران V1 وV2).
مقارنة القنوات
آخر 7 أيام
| القناة | السعر |
|---|---|
Pixel qwen-imageافتراضي | يبدأ من $0.037333 per image |
أنشئ النتيجة التي تحتاج إليها
qwen-imageما هو Alibaba Qwen Image
Alibaba Qwen Image — توليد الصور وتحريرها (الإصداران V1 وV2).
ملخص العقد
- الإدخال
- text, image
- الإخراج
- image
- الوضع
- غير متزامن (مهمة + استعلام دوري)
- الاستعلام عن الحالة
- كل 3 ثوانٍ · حتى 90 ثانية
نقاط القوة
- التسعير: لكل صورة
- المدخلات: نص، صورة
- 5 خيارات قابلة للتهيئة
- مفتاح API واحد لتوليد الوسائط
أين يُستخدم
- رسوم توضيحية للمقالات ووسائل التواصل الاجتماعي
- صور المنتجات
- اللافتات والأغلفة
- نماذج أولية للتصميم
عقد API
تتم عملية الإنشاء بشكل غير متزامن: أنشئ مهمة، ثم استعلم عن حالتها حتى تكتمل.
- إنشاء مهمة
- POST /api/media/generate
- التحقق من الحالة
- GET /api/media/jobs/{jobId}
- الإدخال
- text, image
- الإخراج
- image
- الاستعلام الدوري
- كل 3 ثوانٍ · حتى 90 ثانية
- المصادقة
- Authorization: Bearer sk-pv-…
مثال على طلب
مرّر مفتاحك في ترويسة Bearer. تُرجع API jobId للاستعلام عن الحالة.
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"qwen-image","prompt":"a beautiful landscape","opts":{"version":"v2","mode":"text-to-image","aspect_ratio":"1:1"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "qwen-image",
"prompt": "a beautiful landscape",
"opts": {
"version": "v2",
"mode": "text-to-image",
"aspect_ratio": "1:1"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);معلمات طلب API
معلمات الطلبات إلى Alibaba Qwen Image عبر GetVibe API.
promptمطلوبimage_urlaspect_ratioversionmodenegative_promptstrengthguidanceseednum_inference_stepsaccelerationimage_file_idimage_base64| المعلمة | النوع | القيم | الافتراضي | السعر |
|---|---|---|---|---|
promptمطلوب | text | text description | required | — |
image_url | URL | Public image URL | — | — |
aspect_ratio | option selection | 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4 | 1:1 | Included in the base price |
version | option selection | V2 (default) · V1 | V2 | Included in the base price |
mode | option selection | Generation (default) · Image-to-Image | التوليد | Included in the base price |
negative_prompt | text / number | any value | — | Included in the base price |
strength | text / number | any value | — | Included in the base price |
guidance | text / number | any value | — | Included in the base price |
seed | text / number | any value | — | Included in the base price |
num_inference_steps | option selection | 30 (default) (default) · 20 · 40 · 50 | 30 (default) | Included in the base price |
acceleration | option selection | None (default) · Regular · High | None | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
الطلب: POST https://getvibeapi.com/api/media/generate. الأسعار بالدولار الأمريكي.
سعر Alibaba Qwen Image
تكلفة Alibaba Qwen Image: من $0.037333 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي، وتظهر التكلفة النهائية في استجابة API (priceRub). الدفع بالدولار الأمريكي، دون اشتراكات.
تكلفة الطلب الافتراضي
عند عدم إرسال أي معلمات، يستخدم الطلب هذه القيم: Model version — V2, Mode — Generation, Frame format — 1:1, Inference steps (V1) — 30 (default). تبلغ تكلفة هذا الطلب $0.037333.
القنوات والأسعار لكل مجموعة من المعلمات
لكل قناة، سعر كل مجموعة من المعلمات. هذا هو المبلغ المحدد الذي تُحاسَب عليه عملية الإنشاء الناجحة، وهو الرقم نفسه الوارد في الجدول القابل للقراءة آليًا المرتبط أدناه.
Pixelqwen-imageيبدأ من $0.037333أسعار دقيقة
| الإصدار | V2 |
|---|---|
| Pixel | $0.037333 |
كل مجموعة بصيغة JSON: /api/media/price-table?model=qwen-image
README
يحتوي العقد القابل للقراءة آليًا لـ Alibaba Qwen Image على مخطط الطلب، والعمليات، والحدود، وأمثلة الاستطلاع والاستجابة.
# Alibaba Qwen Image
نموذج عام: qwen-image
إنشاء مهمة: POST /api/media/generate
التحقق من الحالة: GET /api/media/jobs/{jobId}
## معلمات الإدخال
- `prompt` (text): text description; افتراضي: required
- `image_url` (URL): Public image URL; افتراضي: —
- `aspect_ratio` (option selection): 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4; افتراضي: 1:1
- `version` (option selection): V2 (default) · V1; افتراضي: V2
- `mode` (option selection): Generation (default) · Image-to-Image; افتراضي: Generation
- `negative_prompt` (text / number): any value; افتراضي: —
- `strength` (text / number): any value; افتراضي: —
- `guidance` (text / number): any value; افتراضي: —
- `seed` (text / number): any value; افتراضي: —
- `num_inference_steps` (option selection): 30 (default) (default) · 20 · 40 · 50; افتراضي: 30 (default)
- `acceleration` (option selection): None (default) · Regular · High; افتراضي: None
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); افتراضي: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; افتراضي: —
## الأنواع العامة
- `qwen-image`: Pixelالأسئلة الشائعة حول واجهة برمجة تطبيقات Alibaba Qwen Image
كم تبلغ تكلفة Alibaba Qwen Image؟
سعر Alibaba Qwen Image: من $0.037333 per image. يُحتسب السعر ديناميكيًا وفق سعر الصرف الحالي.
هل يتوافق مع OpenAI SDK؟
نعم، واجهة برمجة التطبيقات متوافقة بالكامل مع OpenAI. ما عليك سوى تغيير base_url إلى https://getvibeapi.com/v1 وإضافة مفتاحك — وستبقى بقية الشفرة كما هي.
اربط Alibaba Qwen Image الآن
أنشئ حسابًا خلال دقيقة، وادفع حسب الاستخدام، واستفد من الشفرة الجاهزة أعلاه.
الحصول على مفتاح API