Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
Alibaba · Qwen Image

qwen-image-2.0 API

Generate images from text or reference images with qwen-image-2.0 on APISea.

إنشاء الصورالصورمهمة غير متزامنة
معرّف النموذج
qwen-image-2.0

تسعير API لنموذج qwen-image-2.0

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

الخيارAPISeaرسميوفّر
افتراضيافتراضي$0.022$0.035−37%

الأسعار لكل صورة.

ما هو qwen-image-2.0؟

Alibaba’s Qwen Image model qwen-image-2.0 is the standard version, designed to balance image quality and performance. On APISea, it supports text-to-image generation and image-to-image workflows using reference image URLs. Developers can use it to build image creation tools, produce visual concepts, or generate variations from an existing image. Controls include seven aspect ratios, 1K and 2K resolution tiers, a negative prompt, and a requested image count from one to six.

Submit a required text prompt to the image generation endpoint with your APISea key. Requests run asynchronously: submission returns a task ID, which you poll to retrieve results. Reference images must use publicly accessible URLs. APISea Default pricing is $0.022 per image, about 37% below the provider list price of $0.035 per image. Billing applies only to successfully generated images, with no charge for failures.

أبرز مزايا qwen-image-2.0

Text and Image Inputs

Generate images from a text description or supply reference image URLs for image-to-image generation.

Ratio and Resolution Controls

Choose from seven aspect ratios and 1K or 2K resolution tiers. Defaults are square 1:1 and 1K.

Up to Six Images

Request one to six images with the n parameter. Use negative_prompt to describe content you do not want to appear.

Asynchronous Task Workflow

Submission returns a task ID for subsequent polling. Generated images are mirrored to the platform CDN for long-term availability.

كيفية استدعاء API الخاص بـ qwen-image-2.0 في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/images/generations مع "model": "qwen-image-2.0" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    تتضمن الاستجابة task_id. أرسل طلبات GET /v1/tasks/{task_id} دوريًا حتى تصبح الحالة completed، ثم نزّل روابط النتائج.

curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "qwen-image-2.0",
    "prompt": "A cute orange cat napping in the sunshine"
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوب—Model name
nsfw_checkbooleanاختياريfalseWhether to run content moderation before submitting the image task.
promptstringمطلوب—Text description for image generation, up to 800 characters
sizestringاختياري1:1Image aspect ratio
resolutionstringاختياري1KResolution tier
nintegerاختياري1Number of images to generate
negative_promptstringاختياري—Negative prompt (content you don't want to appear), up to 500 characters
image_urlsarrayاختياري—Reference image URL array (image-to-image mode)

ما الذي يمكنك إنشاؤه باستخدام qwen-image-2.0

Visual Concept Tools

Build a prompt-driven workspace where teams generate image concepts and request multiple candidates in one submission.

Reference-Based Variations

Let users supply a publicly accessible reference image URL and a text description to guide image-to-image generation.

Multi-Format Content Creation

Create images for square, landscape, and vertical layouts by selecting the appropriate aspect ratio.

Queued Image Production

Integrate image generation into background jobs that submit tasks, poll for completion, and retrieve generated image URLs.

نصائح للحصول على نتائج أفضل

  • 01

    Keep Prompts Within Bounds

    Keep prompt text to 800 characters or fewer and negative_prompt text to 500 characters or fewer. Use the negative prompt for content you want excluded.

  • 02

    Set Both Output Controls

    Set size for the aspect ratio and resolution for the tier. A 16:9 request defaults to 1280×720 at 1K; selecting 2K produces 2048×1152.

  • 03

    Budget by Image Count

    Set n between 1 and 6 based on how many outputs you need. At APISea Default pricing, each successfully generated image costs $0.022 per image.

  • 04

    Poll After Submission

    Submit to the image generation endpoint, save the returned task_id, and poll /v1/tasks/{task_id} for results rather than expecting images in the submission response.

القيود ومعلومات مهمة

  • Generation is asynchronous and requires polling for results.

  • Each request supports at most six images, with prompts limited to 800 characters and negative prompts to 500 characters.

  • Reference images must use publicly accessible URLs; base64 input is not supported.

الأسئلة الشائعة حول API الخاص بـ qwen-image-2.0

How much does qwen-image-2.0 cost on APISea?

APISea Default pricing is $0.022 per image, about 37% below the provider list price of $0.035 per image. Only successfully generated images are billed; failures are not charged.

How do I call qwen-image-2.0 through the API?

Send a POST request to https://api.apisea.ai/v1/images/generations with Bearer Token authentication, model set to qwen-image-2.0, and a required prompt. Save the returned task_id and poll /v1/tasks/{task_id} to retrieve results.

Which image generation parameters are supported?

Supported controls include prompt, negative_prompt, size, resolution, n, image_urls, and nsfw_check. Defaults are 1:1 aspect ratio, 1K resolution, one image, and moderation disabled; enabling nsfw_check reviews prompts and input images before submission.

What are the resolution and input limits?

The model supports 1K and 2K tiers across seven aspect ratios, with one to six images per request. Prompts allow up to 800 characters and negative prompts up to 500 characters; reference images require publicly accessible URLs, not base64.

Can I use generated images commercially?

Commercial use is subject to the provider's terms. Review Alibaba's applicable terms before using generated images in commercial products or campaigns.

How does qwen-image-2.0 compare with qwen-image-2.0-pro?

qwen-image-2.0 is the standard version, described as balancing quality and performance. qwen-image-2.0-pro is described as offering stronger text rendering and more refined realistic textures; both support up to six images per request.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام qwen-image-2.0

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.