Op den Inhalt sprangen

MiniMax (Hailuo AI) Text to Image

Integréieren

Modell-ID minimax/image-01
# 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/minimax/image-01?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"

Dës Ufro: 0,01 $ 10 API-Kreditter · ≈ 1,05 ₽ Op dëser Säit ausféieren

API-Schlëssel kréien
MiniMax Text zu Bild #stylized#realism

MiniMax Text-zu-Bild mat aacht Aspektverhältnisser, bis zu néng Biller pro Ufro an optionalem Prompt-Optimizer

MiniMax · Bild

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch 88 / 1500

Prompt-Text fir d'Bildgeneratioun, limitéiert op 1500 Zeechen.

aspect_ratio Standard 1:1

Verhältnis tëscht Breet an Héicht vum Output-Bild.

num_images Standard 1

Unzuel vun generéierte Biller, vun 1 bis 9.

Erweidert enable_safety_checker · prompt_optimizer
POST /run/minimax/image-01?wait=20 Präis → 0,01 $
# 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/minimax/image-01?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"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer MiniMax (Hailuo AI) Text to Image

Generéiert Biller aus engem `prompt` vu bis zu 1500 Zeechen. `aspect_ratio` ënnerstëtzt 1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16 an 21:9. `num_images` gëtt 1 bis 9 Biller pro Opruff zréck. `prompt_optimizer` kann de Prompt automatesch ëmschreiwen an ass par défaut ausgeschalt.

Parameteren

Schéck entweder den kanoneschen Numm oder den natierlechen Numm, net béid. Kanonesch Nimm

NummTyp StandardErlaabt Beschreiwung
enable_safety_checkeroptional
Typboolean
Standardtrue
D'Kontroll kann duerch false gelackert ginn, wann den Uruffer autoriséiert ass.
promptobligatoresch
Typstring
≤ 1.500 Zeechen
Prompt-Text fir d'Bildgeneratioun, limitéiert op 1500 Zeechen.
aspect_ratiooptional
Typenum
Standard1:1
1:116:94:33:22:33:49:1621:9
Verhältnis tëscht Breet an Héicht vum Output-Bild.
num_imagesoptional num_outputs
Typinteger
Standard1
1 – 9
Unzuel vun generéierte Biller, vun 1 bis 9.
prompt_optimizeroptional
Typboolean
Standardfalse
Aktivéierung vun der automatescher Prompt-Optimisatioun.
obligatoresch Kanoneschen Numm, och akzeptéiert

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "minimax/image-01",
  "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": 10,
    "usd": "0.01",
    "charged": 10,
    "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
      }
    ]
  },
  "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"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
images
array of object {url, content_type, file_name, file_size}Biller, déi vum Modell produzéiert ginn.

Méi Modeller: Text zu Bild

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/minimax/image-01.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt