Skip to content
ეს გვერდი ჯერ თქვენს ენაზე ხელმისაწვდომი არ არის და ინგლისურად არის ნაჩვენები.
Microsoft · MAI Image

mai-image-2.7 API

Generate, edit, and compose images with Microsoft's high-quality mai-image-2.7 on APISea.

სურათების გენერაციასურათიასინქრონული ამოცანა
მოდელის ID
mai-image-2.7

mai-image-2.7 API-ის ფასები

ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.

Token-ის ტიპიAPISeaოფიციალურიდაზოგვა
შემავალი ტექსტი 1M token-ზე$4.40$5.00−12%
ქეშირებული შემავალი ტექსტი 1M token-ზე$0$0—
შემავალი სურათი 1M token-ზე$7.04$8.00−12%
ქეშირებული შემავალი სურათი 1M token-ზე$0$0—
გამავალი ტექსტი 1M token-ზე$0$0—
გამავალი სურათი 1M token-ზე$29.92$34.00−12%

გამომავალი მონაცემების სავარაუდო ღირებულება

პარამეტრიAPISeaოფიციალური
1K≈ $0.0308$0.035
2K≈ $0.1232$0.14

რა არის mai-image-2.7?

mai-image-2.7 is Microsoft's high-quality model in the MAI Image family, available on APISea for text-to-image generation, single-image editing, and multi-image composition. Supply a text prompt to create an image, or provide up to five reference images with editing or composition instructions. Prompts support English and Chinese. For text-to-image requests, choose an aspect ratio with a 1K or 2K resolution tier, or specify pixel dimensions within the documented constraints.

Requests run asynchronously: submit a generation request, receive a task ID, and query it afterward. Each request produces one image. APISea uses token-based, pay-as-you-go billing and charges only for successful requests. Estimated image costs are about $0.0308 per image at 1K and about $0.1232 per image at 2K, rather than fixed per-image fees. The default configuration is about 12% below the provider list price.

mai-image-2.7-ის მთავარი მახასიათებლები

Three Image Workflows

Generate images from text, edit a single reference image, or compose multiple references. Supply up to five reference images through image_urls.

Flexible Output Sizing

For text-to-image, combine an aspect ratio with a 1K or 2K resolution tier, or specify exact pixel dimensions. Explicit width and height override size and resolution.

Asynchronous Task Processing

The generation endpoint returns a task ID for subsequent queries. Build your integration around task submission and status checks.

Optional Input Moderation

Set nsfw_check to true to review prompts and input images with omni-moderation-latest before submission. It is disabled by default.

როგორ გამოვიძახოთ mai-image-2.7 API 4 ნაბიჯში

  1. 01

    მიიღეთ API გასაღები

    შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.

  2. 02

    დააყენეთ საბაზისო URL

    თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.

  3. 03

    გაგზავნეთ მოთხოვნა

    გამოიძახეთ POST /v1/images/generations პარამეტრებით "model": "mai-image-2.7" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  4. 04

    დაამუშავეთ პასუხი

    პასუხი შეიცავს task_id-ს. მოითხოვეთ GET /v1/tasks/{task_id} განმეორებით, სანამ სტატუსი completed გახდება, შემდეგ კი ჩამოტვირთეთ შედეგის URL-ებიდან.

მოთხოვნის მაგალითები

დოკუმენტაცია: MAI-Image-2.7 Image Generation
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.7",
    "prompt": "A university campus poster at dusk, photorealistic style, cinematic lighting",
    "size": "16:9",
    "resolution": "2K"
  }'

პარამეტრები

პარამეტრიტიპისავალდებულონაგულისხმევიაღწერა
modelstringსავალდებულოmai-image-2.7Image generation model name
nsfw_checkbooleanარასავალდებულოfalseWhether to run content moderation before submitting the image task.
promptstringსავალდებულო—Text description or editing instructions for the image
nintegerარასავალდებულო1Number of images to generate
sizestringარასავალდებულო1:1Image aspect ratio or pixel dimensions, applies to text-to-image only
resolutionstringარასავალდებულო1KOutput resolution tier, applies only when `size` is an aspect ratio
widthintegerარასავალდებულო—Exact pixel width, must be provided together with `height`
heightintegerარასავალდებულო—Exact pixel height, must be provided together with `width`; same constraints as `width`
image_urlsarrayარასავალდებულო—Array of reference images; when provided, the request runs in image-to-image mode
backgroundstringარასავალდებულო—Background type

რისი შექმნა შეგიძლიათ mai-image-2.7-ით

Marketing Asset Generation

Build a prompt-driven workflow for campaign images, selecting landscape, portrait, or square output ratios for different placements.

Reference Image Editing

Let users submit one reference image with instructions describing the changes they want.

Multi-Image Composition

Create a composition workflow that accepts up to five reference images and a prompt describing how to combine them.

Creative Production Queues

Build an image-generation queue that submits separate tasks for multiple assets and tracks each returned task ID.

რჩევები უკეთესი შედეგებისთვის

  • 01

    Write Detailed Prompts

    Describe the intended image or edits clearly in English or Chinese. Keep prompts nonempty and within the 20,000-character limit.

  • 02

    Choose Resolution Deliberately

    Estimated costs are about $0.0308 per image at 1K and about $0.1232 per image at 2K. Use the tier appropriate to your output needs; billing is token-based.

  • 03

    Validate Pixel Dimensions

    When setting width and height, provide both, keep each at least 768, and keep total pixels at or below 4,194,304. Dimensions are rounded down to multiples of 32.

  • 04

    Track Separate Tasks

    Set n to 1 and submit separate requests for multiple images. Store each task ID and query it afterward rather than expecting an immediate image response.

შეზღუდვები და გასათვალისწინებელი საკითხები

  • Generation is asynchronous and limited to one image per request.

  • Prompts are limited to 20,000 characters, and image-to-image requests accept up to five references.

  • The size value auto and the 4K resolution tier are unsupported.

mai-image-2.7 API-ის ხშირად დასმული კითხვები

How much does mai-image-2.7 cost on APISea?

Estimated costs are about $0.0308 per image at 1K and about $0.1232 per image at 2K, with token-based billing. The default configuration is about 12% below the provider list price, and APISea bills only successful requests.

How do I call mai-image-2.7 through the API?

Send a POST request to https://api.apisea.ai/v1/images/generations with Bearer Token authentication, model set to mai-image-2.7, and a required prompt. The response returns a task ID for subsequent queries.

Does mai-image-2.7 support image editing?

Yes. Provide one reference through image_urls for single-image editing, or up to five references for multi-image composition, along with your instructions in prompt.

Which output sizes and resolutions are supported?

Text-to-image supports integer aspect ratios from 1:4 to 4:1 with 1K or 2K tiers, or explicit pixel dimensions. Explicit dimensions must each be at least 768, total no more than 4,194,304 pixels, and are rounded down to multiples of 32.

How does mai-image-2.7 compare with mai-image-2.7-flash?

mai-image-2.7 is the high-quality version for workflows where image quality matters most. mai-image-2.7-flash offers faster speed and lower cost with slightly lower image quality; both have identical capabilities and parameters.

Can I use mai-image-2.7 images commercially?

Commercial use is subject to the provider's terms. Review the applicable terms for your intended use before deploying generated images.

მსგავსი მოდელები

Microsoftსურათი

mai-image-2.6

სურათების გენერაცია
≈ $0.0352 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Microsoftსურათი

mai-image-2.6-flash

სურათების გენერაცია
≈ $0.0176 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Microsoftსურათი

mai-image-2.7-flash

სურათების გენერაცია
≈ $0.00968 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Alibabaსურათი

qwen-image-2.0

სურათების გენერაცია
$0.022 თითო სურათზე
ოფიციალურ ფასზე 37%-ით ნაკლები
Alibabaსურათი

qwen-image-2.0-pro

სურათების გენერაცია
$0.055 თითო სურათზე
ოფიციალურ ფასზე 27%-ით ნაკლები
Alibabaსურათი

qwen-image-3.0

სურათების გენერაცია
$0.02263 თითო სურათზე
ოფიციალურ ფასზე 9%-ით ნაკლები
Alibabaსურათი

qwen-image-3.0-pro

სურათების გენერაცია
$0.03143 თითო სურათზე
ოფიციალურ ფასზე 10%-ით ნაკლები
Alibabaსურათი

wan2.7-image

სურათების გენერაცია
$0.02376 თითო სურათზე
ოფიციალურ ფასზე 15%-ით ნაკლები
არჩევანი: 250+ მოდელი · მინიმალური შევსება $50

დაიწყეთ mai-image-2.7-ით შექმნა

ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.