mai-image-2.7-flash API
Generate, edit, and compose images with Microsoft's fast mai-image-2.7-flash model on APISea.
mai-image-2.7-flashmai-image-2.7-flash API-ის ფასები
ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.
| Token-ის ტიპი | APISea | ოფიციალური | დაზოგვა |
|---|---|---|---|
| შემავალი ტექსტი 1M token-ზე | $1.54 | $1.75 | −12% |
| ქეშირებული შემავალი ტექსტი 1M token-ზე | $0 | $0 | — |
| შემავალი სურათი 1M token-ზე | $2.20 | $2.50 | −12% |
| ქეშირებული შემავალი სურათი 1M token-ზე | $0 | $0 | — |
| გამავალი ტექსტი 1M token-ზე | $0 | $0 | — |
| გამავალი სურათი 1M token-ზე | $8.80 | $10.00 | −12% |
გამომავალი მონაცემების სავარაუდო ღირებულება
| პარამეტრი | APISea | ოფიციალური |
|---|---|---|
| 1K | ≈ $0.00968 | $0.011 |
| 2K | ≈ $0.03608 | $0.041 |
რა არის mai-image-2.7-flash?
Microsoft's mai-image-2.7-flash is the fast version of the MAI Image 2.7 image generation model, suited to workflows that prioritize speed and lower cost over the highest image quality. It supports text-to-image generation, single-image editing, and multi-image composition with up to five reference images. Provide a Chinese or English prompt describing the image or edit, then choose an aspect ratio and a 1K or 2K resolution tier for text-to-image output, or specify pixel dimensions directly.
On APISea, call the model through the image generations endpoint using your API key. Processing is asynchronous: the request returns a task ID for subsequent queries, with one image generated per request. Billing is token-based and pay-as-you-go, with estimated per-image costs of about $0.00968 at 1K and about $0.03608 at 2K. The default configuration is about 12% below the provider list price, and APISea bills only successful requests.
mai-image-2.7-flash-ის მთავარი მახასიათებლები
Three Image Workflows
Generate images from text, edit a single reference image, or compose an output from multiple references. Supply up to five reference images through image_urls.
Flexible Output Sizing
For text-to-image requests, combine size with a 1K or 2K resolution tier, or specify exact width and height. Explicit width and height override size and resolution.
Fast Sibling Model
The flash version offers faster speed and lower cost, with slightly lower image quality than mai-image-2.7. Both versions support identical capabilities and parameters.
Optional Input Moderation
Set nsfw_check to true to review prompts and input images with omni-moderation-latest before submission. It defaults to false.
როგორ გამოვიძახოთ mai-image-2.7-flash API 4 ნაბიჯში
- 01
მიიღეთ API გასაღები
შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.
- 02
დააყენეთ საბაზისო URL
თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.
- 03
გაგზავნეთ მოთხოვნა
გამოიძახეთ POST /v1/images/generations პარამეტრებით "model": "mai-image-2.7-flash" და ქვემოთ ჩამოთვლილი პარამეტრებით.
- 04
დაამუშავეთ პასუხი
პასუხი შეიცავს task_id-ს. მოითხოვეთ GET /v1/tasks/{task_id} განმეორებით, სანამ სტატუსი completed გახდება, შემდეგ კი ჩამოტვირთეთ შედეგის URL-ებიდან.
მოთხოვნის მაგალითები
დოკუმენტაცია: MAI-Image-2.7 Image Generationcurl --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-flash",
"prompt": "A university campus poster at dusk, photorealistic style, cinematic lighting",
"size": "16:9",
"resolution": "2K"
}'პარამეტრები
| პარამეტრი | ტიპი | სავალდებულო | ნაგულისხმევი | აღწერა |
|---|---|---|---|---|
model | string | სავალდებულო | mai-image-2.7 | Image generation model name |
nsfw_check | boolean | არასავალდებულო | false | Whether to run content moderation before submitting the image task. |
prompt | string | სავალდებულო | — | Text description or editing instructions for the image |
n | integer | არასავალდებულო | 1 | Number of images to generate |
size | string | არასავალდებულო | 1:1 | Image aspect ratio or pixel dimensions, applies to text-to-image only |
resolution | string | არასავალდებულო | 1K | Output resolution tier, applies only when `size` is an aspect ratio |
width | integer | არასავალდებულო | — | Exact pixel width, must be provided together with `height` |
height | integer | არასავალდებულო | — | Exact pixel height, must be provided together with `width`; same constraints as `width` |
image_urls | array | არასავალდებულო | — | Array of reference images; when provided, the request runs in image-to-image mode |
background | string | არასავალდებულო | — | Background type |
რისი შექმნა შეგიძლიათ mai-image-2.7-flash-ით
Creative Concept Iteration
Build a tool that generates individual visual concepts from detailed prompts, using the fast variant for repeated design exploration.
Reference Image Editing
Let users submit one reference image with instructions describing the changes they want to make.
Multi-Image Composition
Create a workflow that combines up to five reference images into a new composition guided by a text prompt.
Format-Specific Visuals
Generate visuals for square, portrait, or landscape placements using aspect-ratio controls or explicit pixel dimensions.
რჩევები უკეთესი შედეგებისთვის
- 01
Describe the Result
Write detailed Chinese or English prompts specifying the desired image or edit. Keep prompts nonempty and within 20,000 characters.
- 02
Choose Resolution Deliberately
Use 1K for lower estimated per-image cost and 2K when you need the larger output tier. Resolution is ignored when size specifies pixel dimensions.
- 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 Each Task
Store the returned task ID and query for the result after submission. For multiple images, submit separate tasks with n set to 1.
შეზღუდვები და გასათვალისწინებელი საკითხები
Generation is asynchronous and returns a task ID rather than an immediate image result.
Each request generates one image and accepts up to five reference images.
The 4K resolution tier and the size value auto are unsupported.
mai-image-2.7-flash API-ის ხშირად დასმული კითხვები
How much does mai-image-2.7-flash cost on APISea?
Estimated per-image pricing is about $0.00968 at 1K and about $0.03608 at 2K, with token-based billing rather than a fixed per-image charge. 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-flash 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-flash, and a required prompt. The asynchronous response returns a task ID for subsequent queries.
Does it support image editing and reference images?
Yes. Providing image_urls switches the request to image-to-image mode: use one reference for single-image editing or up to five for multi-image composition.
What output sizes and request limits are supported?
Text-to-image requests support aspect ratios from 1:4 to 4:1 with 1K or 2K tiers, or explicit pixel dimensions with each side at least 768 and total pixels no greater than 4,194,304. Only one image is generated per request, and prompts are limited to 20,000 characters.
How does mai-image-2.7-flash compare with mai-image-2.7?
mai-image-2.7-flash is the faster, lower-cost version with slightly lower image quality. mai-image-2.7 is the high-quality version; both have identical capabilities and parameters.
Can I use generated images commercially?
Commercial use is subject to the provider's terms. Review the applicable terms and any requirements for your input images before using outputs commercially.
მსგავსი მოდელები
mai-image-2.6
mai-image-2.6-flash
mai-image-2.7
qwen-image-2.0
qwen-image-2.0-pro
qwen-image-3.0
qwen-image-3.0-pro
wan2.7-image
დაიწყეთ mai-image-2.7-flash-ით შექმნა
ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.