Мазмұнға өту

MAI Image 2.5 Pro (Text to Image)

Интеграциялау

Модель идентификаторы microsoft/mai-image-2.5-pro
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/microsoft/mai-image-2.5-pro?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Осы сұрау: ≈0,332 $ 332 API кредиті Осы бетте іске қосу

API кілтін алу
Microsoft Мәтіннен кескінге #photorealism#typography#illustration#commercial

Microsoft ұсынған Pro мәтіннен кескін моделі: типографиясы басым, дизайнға дайын кескіндерді бірнеше форматта жасайды

Microsoft · Кескін

Алғашқы нәтижеңіз осында пайда болады

Төменде сұрау құрып, оны API кілтіңізбен іске қосыңыз. Шығыстар сақтау орнымызға көшіріліп, мәңгі немесе 7 күн тегін сақталады.

Сұрау жасау

Басқару элементтері модель схемасынан жасалады. Оларды өзгерткен сайын код пен баға жаңартылады.

•міндетті 88 / 5000

Кескін жасауға арналған мәтіндік нұсқаулар.

aspect_ratio әдепкі auto

Шығыс кескінінің пропорциялары; "auto" таңдалса, модель оларды нұсқаудан өзі анықтайды.

num_images әдепкі 1

Генерацияға сұралған кескіндер саны.

Қосымша output_format
output_format әдепкі png

Нәтижедегі кескіннің файл пішімі.

POST /run/microsoft/mai-image-2.5-pro?wait=20 бағасы → 0,332 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/microsoft/mai-image-2.5-pro?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Осы сұрауды іске қосу

Кілтіңіз осы браузерде қалады: ол тек Doitong API-ге жіберіледі және Remember параметрін белгілеcеңіз ғана localStorage ішінде сақталады. API кілтін алу

MAI Image 2.5 Pro (Text to Image) туралы

Ұзындығы 5000 таңбаға дейінгі мәтіндік нұсқаудан кескіндер жасайды. Бір шақыруда 1–4 кескін береді; `aspect_ratio` мәндері auto, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2 және 2:3 болуы мүмкін. Шығыс jpeg, png немесе webp түрінде беріледі. Фотореалистік, иллюстрациялық және кескін ішіндегі мәтіні бар дизайндарға қолайлы.

Параметрлер

Канондық атауды немесе төл атауды жіберіңіз, екеуін қатар жібермеңіз. Канондық атаулар

АтауыТүрі ӘдепкіРұқсат етілген Сипаттама
promptміндетті
Түріstring
≤ 5 000 таңба≥ 3 таңба
Кескін жасауға арналған мәтіндік нұсқаулар.
num_imagesміндетті емес num_outputs
Түріinteger
Әдепкі1
1 – 4
Генерацияға сұралған кескіндер саны.
aspect_ratioміндетті емес
Түріenum
Әдепкіauto
auto1:14:33:416:99:163:22:3
Шығыс кескінінің пропорциялары; "auto" таңдалса, модель оларды нұсқаудан өзі анықтайды.
output_formatміндетті емес
Түріenum
Әдепкіpng
jpegpngwebp
Нәтижедегі кескіннің файл пішімі.
міндетті Канондық атау, бұл да қабылданады

Шығыс

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "microsoft/mai-image-2.5-pro",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 332,
    "usd": "0.332",
    "charged": 332,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "description": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Файлдарыңыз — таңдауыңызӘр outputs[].url — сақтау орнымыздағы көшірме: мәңгі (әр GB-ай үшін ақылы) немесе аккаунт параметрі не ?storage= арқылы 7 күн тегін сақталады.
Әр модельдегі пішім бірдейtype, url, content_type, width, height және duration — кескіндерге, бейнеге және аудиоға ортақ. output — модельдің өз нәтижелер нысаны.
Шығыс өрістері
images
array of object {url, content_type, file_name, file_size, width, height}Модель жасаған кескіндер.
description
stringЖасалған кескіндерге қоса берілетін сипаттама.

Қосымша модельдер: Мәтіннен кескінге

AI агенттеріне: бұл беттің Markdown нұсқасы мына жерде: https://doitong.com/kk/developers/models/microsoft/mai-image-2.5-pro.md. Барлық модельдер мен нұсқаулықтар: https://doitong.com/developers/llms.txt