Neidio i'r cynnwys

MiniMax (Hailuo AI) Text to Image

Integreiddio

ID y model 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"

Y cais hwn: $0.01 10 o gredydau API · ≈ ₽1.05 Ei redeg ar y dudalen hon

Cael allwedd API
MiniMax Testun i Ddelwedd #stylized#realism

MiniMax testun-i-ddelwedd gydag wyth cymhareb agwedd, hyd at naw delwedd fesul cais ac optimeiddiwr anogiad dewisol

MiniMax · Delwedd

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol 88 / 1500

Testun anogiad cynhyrchu delwedd, wedi'i gyfyngu i 1500 nod.

aspect_ratio rhagosodedig 1:1

Cymhareb lled-i-uchder y ddelwedd allbwn.

num_images rhagosodedig 1

Cyfrif cynhyrchu delweddau, o 1 i 9.

Uwch enable_safety_checker · prompt_optimizer
POST /run/minimax/image-01?wait=20 dyfynbris → $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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â MiniMax (Hailuo AI) Text to Image

Yn cynhyrchu delweddau o `prompt` o hyd at 1500 o nodau. Mae `aspect_ratio` yn cefnogi 1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16 a 21:9. Mae `num_images` yn dychwelyd 1 i 9 delwedd fesul galwad. Gall `prompt_optimizer` ailysgrifennu'r anogiad yn awtomatig ac mae wedi'i ddiffodd yn rhagosodedig.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigtrue
Gellir llacio'r sgrinio drwy osod false, ar yr amod bod y galwr wedi'i awdurdodi.
promptgofynnol
Mathstring
≤ 1,500 nod
Testun anogiad cynhyrchu delwedd, wedi'i gyfyngu i 1500 nod.
aspect_ratiodewisol
Mathenum
Rhagosodedig1:1
1:116:94:33:22:33:49:1621:9
Cymhareb lled-i-uchder y ddelwedd allbwn.
num_imagesdewisol num_outputs
Mathinteger
Rhagosodedig1
1 – 9
Cyfrif cynhyrchu delweddau, o 1 i 9.
prompt_optimizerdewisol
Mathboolean
Rhagosodedigfalse
Galluogi optimeiddio anogiadau'n awtomatig.
gofynnol Enw canonaidd, derbyniol hefyd

Allbwn

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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
images
array of object {url, content_type, file_name, file_size}Delweddau a gynhyrchir gan y model.

Mwy o fodelau: Testun i Ddelwedd

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/minimax/image-01.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt