Zum Inhalt springen

MAI Image 2.5 Pro (Edit)

Integrieren

Modell-ID microsoft/mai-image-2.5-pro/edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/microsoft/mai-image-2.5-pro/edit?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Diese Anfrage: ≈0,179 $ 179 API-Credits · ≈ 18,74 ₽ Auf dieser Seite ausführen

API-Schlüssel abrufen
Microsoft Bildbearbeitung #image-editing#typography#photorealism#controllable-editing

Pro-Bearbeitungsmodell, das ein einzelnes Bild anhand einer Anweisung ändert und Layout sowie Text beibehält

Microsoft · Bild

Dein erstes Ergebnis erscheint hier

Erstelle unten eine Anfrage und führe sie mit deinem API-Schlüssel aus. Ausgaben werden in unseren Speicher kopiert und dauerhaft oder 7 Tage kostenlos aufbewahrt.

Anfrage erstellen

Die Steuerelemente werden aus dem Modellschema generiert. Code und Preis werden aktualisiert, während du sie änderst.

•erforderlich 88 / 5000

Bearbeitungsanweisungen für das übergebene Bild oder die übergebenen Bilder.

aspect_ratio Standard auto

Seitenverhältnis des Ausgabebilds; "auto" folgt entweder den Proportionen der Eingabe oder lässt das Modell wählen.

num_images Standard 1

Für die Generierung angeforderte Bildanzahl.

Erweitert image · output_format
image_url Standard
Datei ablegen oder

Zu bearbeitendes Bild, als einzelne http(s)-URL oder data:-URL übergeben.

output_format Standard png

Dateiformat des resultierenden Bilds.

POST /run/microsoft/mai-image-2.5-pro/edit?wait=20 Preis → 0,179 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/microsoft/mai-image-2.5-pro/edit?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Diese Anfrage ausführen

Dein Schlüssel bleibt in diesem Browser: Er wird nur an die Doitong API gesendet und nur gespeichert (localStorage), wenn du „Merken“ aktivierst. API-Schlüssel abrufen

Über MAI Image 2.5 Pro (Edit)

Bearbeitet ein Referenzbild anhand einer Textanweisung mit bis zu 5000 Zeichen. Stellen Sie über `image_url` ein Bild als http(s)- oder Data-URL bereit. Ziel ist es, Komposition, Typografie und Identität beizubehalten. Geben Sie 1 bis 4 Bilder zurück, wählen Sie ein Seitenverhältnis oder auto, um das Eingabeformat zu übernehmen, und wählen Sie jpeg, png oder webp als Ausgabeformat.

Parameter

Sende entweder den kanonischen Namen oder den nativen Namen, nicht beide. Kanonische Namen

NameTyp StandardZulässig Beschreibung
prompterforderlich
Typstring
≤ 5.000 Zeichen≥ 3 Zeichen
Bearbeitungsanweisungen für das übergebene Bild oder die übergebenen Bilder.
num_imagesoptional num_outputs
Typinteger
Standard1
1 – 4
Für die Generierung angeforderte Bildanzahl.
aspect_ratiooptional
Typenum
Standardauto
auto1:14:33:416:99:163:22:3
Seitenverhältnis des Ausgabebilds; "auto" folgt entweder den Proportionen der Eingabe oder lässt das Modell wählen.
output_formatoptional
Typenum
Standardpng
jpegpngwebp
Dateiformat des resultierenden Bilds.
image_urloptional image
Typurl · image
Standard
Zu bearbeitendes Bild, als einzelne http(s)-URL oder data:-URL übergeben.
erforderlich Kanonischer Name, ebenfalls akzeptiert

Dateiparameter akzeptieren eine öffentliche https://-URL, eine data:-URI bis 10 MB oder die file_url eines Uploads. Dateien

Ausgabe

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "microsoft/mai-image-2.5-pro/edit",
  "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": 179,
    "usd": "0.179",
    "charged": 179,
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Deine Dateien, deine EntscheidungJede outputs[].url ist eine Kopie in unserem Speicher: dauerhaft aufbewahrt (Abrechnung pro GB-Monat) oder 7 Tage kostenlos – je nach Kontoeinstellung oder ?storage=.
Gleiche Struktur bei jedem Modelltype, url, content_type, width, height und duration – für Bilder, Video und Audio gleichermaßen. output ist das Ergebnisobjekt des Modells.
Ausgabefelder
images
array of object {url, content_type, file_name, file_size, width, height}Aus der Bearbeitung resultierende Bilder.
description
stringBeschreibung zu den generierten Bildern.

Weitere Modelle: Bildbearbeitung

Für KI-Agenten: Diese Seite ist als Markdown verfügbar unter https://doitong.com/de/developers/models/microsoft/mai-image-2.5-pro/edit.md. Alle Modelle und Anleitungen: https://doitong.com/developers/llms.txt