Dža ko lil

Hidream O1 Image

Integriruj

Modelosko id hidream-o1-image
# 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/hidream-o1-image?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"

Kava mangipen: $0.01 10 API krediti Phir les kate

Lel API klidin
HiDream Teksto ko Kip Referencaki inputura

Purno-kramengo HiDream tekstosko-džangluno savo vi lel opcionalne referencijake fotografije redakciake vaj subjektoski personalizaciake

HiDream · Kip

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul

Tekstoske instrukcie pala kipeski keripe vaj editipe, vaj pala subjektosar personalizacia.

image_size standardno {"height":1024,"width...

Rezultatoske dimenzie le aproksimativno limitosa 2048 × 2048 piksel; sako mangli dimenzia si tikarni dži o majpasuno multiple e 32-esko.

num_images standardno 1

Ginu kipongoro savo te kerel.

Lučhe images · output_format · num_inference_steps · guidance_scale · seed · enable_safety_checker · keep_original_aspect
reference_image_urls standardno []
Čhiv jekh fajl, vaj

Referencake kipa pala editipe (jekh kipo) vaj subjektosar personalizacia (buter kipa); muk len avri pala teksto-pala-kipo keripe.

output_format standardno png

Fajlo-formato e rezultato kipoqo.

standardno 50

Ginu e denoising-krokengoro.

standardno 5

Skala pala classifier-free guidance; standardno si 5.0 pala o pherdo modelo.

Random semeno savo kerel e keripe te šaj pale kerel pes.

POST /run/hidream-o1-image?wait=20 hesab → $0.01
# 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/hidream-o1-image?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"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Hidream O1 Image

Kerel kipa andar jekh `prompt`, e opcionalne `reference_image_urls`-enca: ništa vaš čisto tekstosar-kipo, jekh vaš edit, vaj but vaš subjektosko personalizacija. Standardno si 50 denoising paso thaj lidžaripe scale 5. O rezultatura džan maj-upre kaj 2048x2048, e 1 dži 4 kiponca pe mangipen ande png, jpeg vaj webp.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
Tekstoske instrukcie pala kipeski keripe vaj editipe, vaj pala subjektosar personalizacia.
reference_image_urlsopcionalno images
Tipurl[] · image
standardno[]
Referencake kipa pala editipe (jekh kipo) vaj subjektosar personalizacia (buter kipa); muk len avri pala teksto-pala-kipo keripe.
image_sizeopcionalno
Tipobject
standardno{"height":1024,"width":1024}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Rezultatoske dimenzie le aproksimativno limitosa 2048 × 2048 piksel; sako mangli dimenzia si tikarni dži o majpasuno multiple e 32-esko.
num_inference_stepsopcionalno
Tipinteger
standardno50
1 – 50
Ginu e denoising-krokengoro.
guidance_scaleopcionalno
Tipnumber
standardno5
0 – 20
Skala pala classifier-free guidance; standardno si 5.0 pala o pherdo modelo.
seedopcionalno
Tipinteger | null
Random semeno savo kerel e keripe te šaj pale kerel pes.
num_imagesopcionalno num_outputs
Tipinteger
standardno1
1 – 4
Ginu kipongoro savo te kerel.
output_formatopcionalno
Tipenum
standardnopng
jpegpngwebp
Fajlo-formato e rezultato kipoqo.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Kontrolil, kana kerde kipa avena safety-kontrolasa.
keep_original_aspectopcionalno
Tipboolean
standardnofalse
Aspect-ratio rakhlipe pala jekhe-referencaske keripe: o rezultato lel e referencake proporcie numa kana si dino eksakto jekh kipo.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "hidream-o1-image",
  "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,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string",
    "timings": {}
  },
  "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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
images
array of object {url, content_type, file_name, file_size, width, height}Kipo kerdine generiripeça.
seed
integerSeed-valoro aplikovano ko generiripe.
has_nsfw_concepts
array of booleanStatus e safety-checkerosko pala sako kerdo kipo.
prompt
stringPromptos savo si upotreblime vaš rezultatoski keripe.
timings
objectČasake merimata pala o keripe.

Bute modeli: Teksto ko Kip

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/hidream-o1-image.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt