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

mai-image-2.6-flash API

Generate, edit, and compose images with Microsoft's faster, lower-cost MAI Image model on APISea.

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

تسعير API لنموذج mai-image-2.6-flash

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

نوع الـ tokenAPISeaرسميوفّر
إدخال نصي لكل 1M رمز$1.54$1.75−12%
إدخال نصي مخزّن مؤقتًا لكل 1M رمز$0$0—
إدخال صورة لكل 1M رمز$2.20$2.50−12%
إدخال صورة مخزّنة مؤقتًا لكل 1M رمز$0$0—
إخراج نصي لكل 1M رمز$0$0—
إخراج صورة لكل 1M رمز$16.72$19.00−12%

التكلفة التقريبية لكل مخرج

الخيارAPISeaرسمي
1K≈ $0.0176$0.02
2K≈ $0.0396$0.045

ما هو mai-image-2.6-flash؟

Microsoft's mai-image-2.6-flash is the faster, lower-cost version of MAI-Image-2.6, with slightly lower image quality than the high-quality sibling. It supports text-to-image generation, single-image editing, and composition with up to five reference images. Prompts can be written in Chinese or English, and optional web grounding retrieves real-time information before generation. Each request produces one image; text-to-image controls include 1K or 2K resolution tiers, aspect ratios, exact pixel dimensions, and automatic aspect-ratio selection.

Call it through APISea's image generation endpoint using your APISea key. Requests run asynchronously, so retrieve the task ID and poll for the result. Billing is token-based and pay-as-you-go, with charges only for successful requests. Estimated per-image costs are about $0.0176 at 1K and about $0.0396 at 2K, rather than fixed per-image fees. The default configuration is about 12% below the provider list price.

أبرز مزايا mai-image-2.6-flash

Generation and Image Editing

Generate images from text or provide one reference image with editing instructions. Use up to five references for composition.

Flexible Output Controls

For text-to-image, choose 1K or 2K, specify an aspect ratio or exact pixel dimensions, or let the model choose the aspect ratio.

Optional Web Grounding

Enable web_grounding to retrieve real-time information before generation. This is useful for images involving real people, places, or events.

Faster Flash Version

Flash shares the high-quality version's capabilities and parameters, but is faster and lower-cost with slightly lower image quality.

كيفية استدعاء API الخاص بـ mai-image-2.6-flash في 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": "mai-image-2.6-flash" والمعلمات أدناه.

  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": "mai-image-2.6-flash",
    "prompt": "A photorealistic poster of a university campus at sunset, cinematic lighting",
    "size": "16:9",
    "resolution": "2K"
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوب—Model ID: `mai-image-2.6` or `mai-image-2.6-flash`.
nsfw_checkbooleanاختياريfalseWhether to run content moderation before submitting the image task.
promptstringمطلوب—Image description or editing instructions. Supports Chinese and English, up to approximately 32,000 tokens (not characters).
sizestringاختياري1:1Accepts an aspect ratio (such as `16:9`), pixel dimensions (such as `1536x1024`), or `auto`.
resolutionstringاختياري1KSupports `1K` and `2K`, including lowercase. Other tiers such as `4K` are unsupported and return HTTP 400.
widthintegerاختياري—Exact pixel width. Must be provided together with `height`. This pair takes precedence over `size` and `resolution` for text-to-image dimensions.
heightintegerاختياري—Exact pixel height. Must be provided together with `width` and follows the constraints above. Does not determine image-to-image output dimensions.
image_urlsstring[]اختياري—Reference image list, up to 5 images. Omit for text-to-image; provide one for single-image editing or multiple for composition.
auto_aspect_ratiobooleanاختياريfalseSet to `true` to let the model choose an aspect ratio based on the prompt, equivalent to `size: "auto"`.
web_groundingbooleanاختياريfalseSet to `true` to retrieve real-time information before generation, useful for images involving real people, places, or events.
nintegerاختياري1Only `1` is supported. Submit separate tasks for multiple images. Values above 1 return HTTP 400.

ما الذي يمكنك إنشاؤه باستخدام mai-image-2.6-flash

Creative concept exploration

Build a tool that turns Chinese or English briefs into visual concepts. Submit separate requests to explore multiple directions.

Instruction-based image edits

Let users upload a reference image and describe the changes they want. The model determines output dimensions from the reference.

Multi-reference composition

Combine up to five reference images with a written composition brief for a visual mockup workflow.

Grounded visual content

Enable web grounding in a content creation tool when prompts involve real people, places, or events and need current information.

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

  • 01

    Choose dimensions deliberately

    For text-to-image, combine size with resolution for aspect-ratio output, or supply width and height for exact dimensions. Exact dimensions must each be at least 768, total no more than 2,359,296 pixels, and should be multiples of 32.

  • 02

    Prepare accessible references

    Pass up to five images in image_urls using publicly accessible HTTP(S) URLs or Base64 Data URLs. Do not rely on size or resolution to control reference-based output dimensions.

  • 03

    Implement task polling

    Read the task ID from data[0].task_id after submission. Poll every 3–5 seconds with an overall wait timeout of 3 minutes, stopping when the status is completed or failed.

  • 04

    Budget by token usage

    Use about $0.0176 per image at 1K and about $0.0396 per image at 2K as estimates, not fixed fees. Requests are token-billed; 1K is the lower-cost estimated tier.

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

  • Only one image per request is supported; n above 1 and unsupported resolution tiers such as 4K return HTTP 400.

  • Prompts support approximately 32,000 tokens; the listed model limits are 65,536 input tokens and 2,304 output tokens.

  • Reference-based output is model-sized at about 1 million pixels with a similar aspect ratio; explicit dimension controls do not apply.

الأسئلة الشائعة حول API الخاص بـ mai-image-2.6-flash

How much does mai-image-2.6-flash cost on APISea?

Estimated per-image pricing is about $0.0176 at 1K and about $0.0396 at 2K, with token-based billing rather than a fixed image fee. The default configuration is about 12% below the provider list price, and APISea bills only successful requests.

How do I call mai-image-2.6-flash through APISea?

Send a POST request to https://api.apisea.ai/v1/images/generations with your APISea key in the Bearer authorization header, model set to mai-image-2.6-flash, and a required prompt. Retrieve data[0].task_id and query task status for the result.

Which image size parameters does it support?

Text-to-image supports size for aspect ratios, exact pixel dimensions, or auto, plus resolution tiers of 1K and 2K. A width and height pair takes precedence over size and resolution; these controls do not set image-to-image output dimensions.

Can it edit images or use multiple references?

Yes: provide one image in image_urls for single-image editing or up to five for composition. References can be publicly accessible HTTP(S) URLs or Base64 Data URLs; inaccessible URLs cause the task to fail.

How does Flash compare with mai-image-2.6?

mai-image-2.6-flash is faster and lower-cost, with slightly lower image quality. mai-image-2.6 is the high-quality version for quality-focused use cases; both share the same capabilities and parameters.

Can I use generated images commercially?

Commercial use is subject to the provider's terms. Review Microsoft's applicable terms for your intended use; the supplied model documentation does not establish commercial licensing rights.

نماذج ذات صلة

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

ابدأ التطوير باستخدام mai-image-2.6-flash

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