Op den Inhalt sprangen

Hunyuan Image · v3 · Text to Image

Integréieren

Modell-ID hunyuan-image/v3/text-to-image
# 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/hunyuan-image/v3/text-to-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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

API-Schlëssel kréien
Tencent Text zu Bild #text-to-image

Hunyuan Image 3.0 Text-zu-Bild mat negativem Prompt an enger méi héijer Standard-Guidance vun 7.5

Tencent · 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

Text-Prompt fir d'Bild-zu-Bild-Generatioun.

image_size Standard square_hd

Zildimensioune fir dat generéiert Bild.

num_images Standard 1

Ugefrote Bildzuel fir d'Generatioun.

Erweidert negative_prompt · output_format · num_inference_steps · guidance_scale · seed · enable_safety_checker · enable_prompt_expansion
Standard

Konzepter, déi am generéierte Bild verhënnert solle ginn, als negative Prompt geliwwert.

output_format Standard png

Dateiformat vum resultéierende Bild.

Standard 28

Unzuel vun den Denoising-Schrëtt.

Standard 7.5

Stäerkt vun der Prompt-Befollegung: erhéicht dëse Wäert, fir datt d'Modell dem Prompt méi streng follegt.

Seed fir Reproduzéierbarkeet; None léisst de System zoufälleg een auswielen, amplaz e vum Uruffer spezifizéierte Wäert ze benotzen.

POST /run/hunyuan-image/v3/text-to-image?wait=20 Präis → 0,10 $
# 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/hunyuan-image/v3/text-to-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.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 Hunyuan Image · v3 · Text to Image

Erstellt Biller aus engem `prompt` mat engem fakultativen `negative_prompt`. Par défaut ginn 28 Schrëtt benotzt (maximal 50) an e `guidance_scale` vun 7.5. `enable_prompt_expansion` ass par défaut ausgeschalt a benotzt bei Aktivéierung e Sproochmodell fir Detailer bäizefügen. Zeréckgi ginn 1 bis 4 Biller als png oder jpeg.

Parameteren

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

NummTyp StandardErlaabt Beschreiwung
promptobligatoresch
Typstring
Text-Prompt fir d'Bild-zu-Bild-Generatioun.
negative_promptoptional
Typstring
Standard
Konzepter, déi am generéierte Bild verhënnert solle ginn, als negative Prompt geliwwert.
image_sizeoptional
Typobject
Standardsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Zildimensioune fir dat generéiert Bild.
num_imagesoptional num_outputs
Typinteger
Standard1
1 – 4
Ugefrote Bildzuel fir d'Generatioun.
num_inference_stepsoptional
Typinteger
Standard28
1 – 50
Unzuel vun den Denoising-Schrëtt.
guidance_scaleoptional
Typnumber
Standard7.5
1 – 20
Stäerkt vun der Prompt-Befollegung: erhéicht dëse Wäert, fir datt d'Modell dem Prompt méi streng follegt.
seedoptional
Typinteger | null
Seed fir Reproduzéierbarkeet; None léisst de System zoufälleg een auswielen, amplaz e vum Uruffer spezifizéierte Wäert ze benotzen.
enable_safety_checkeroptional
Typboolean
Standardtrue
Sécherheetskontrollschalter, deem seng ausgeschalt Astellung d'Autorisatioun vum Kont erfuerdert. Ouni dës Autorisatioun gëtt all Ufro onofhängeg vun der Astellung kontrolléiert; true aktivéiert d'Kontroll.
output_formatoptional
Typenum
Standardpng
jpegpng
Dateiformat vum resultéierende Bild.
enable_prompt_expansionoptional
Typboolean
Standardfalse
Erlaabt engem Large Language Modell, de Prompt mat Detailer unzereecheren. Dës Erweiderung léisst d'Bedeitung vum Prompt onverännert.
obligatoresch Kanoneschen Numm, och akzeptéiert

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "hunyuan-image/v3/text-to-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": 100,
    "usd": "0.10",
    "charged": 100,
    "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
  },
  "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, width, height}Lëscht mat de generéierte Biller.
seed
integerBasis-Seed, dee bei der Generatioun benotzt gëtt.

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