Мазмұнға өту

Wan · v2.2 5b · Text to Image

Интеграциялау

Модель идентификаторы wan/v2.2-5b/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.com/v1/run/wan/v2.2-5b/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Осы сұрау: 0,016 $ 16 API кредиті Осы бетте іске қосу

API кілтін алу

Алдын ала орнатылған алты өлшемі, PNG немесе JPEG шығысы және реттелетін семплинг қадамдары бар ықшам 5B text-to-image моделі

Doitong-та жасалған

Doitong қауымдастығы Wan v22 арқылы жасаған жария жұмыстары. Промптты бір рет басу арқылы қайта пайдаланыңыз.

Көрсетілген жария жұмыстар: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... Бейне

Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video must feel like a real spontaneous phone...

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone vide... Бейне

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video...

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with na... Бейне

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with natural acting, realistic lighting and believable facial expressions. All dialogue is spoken naturally in French. **SCENE 1 — EXPENSIVE RESTAURANT, EVENING — 0–5 sec** A young man in his late 20s is...

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... Бейне

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, c... Бейне

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, cinematic Christmas short film, high-quality realistic 3D animation. REFERENCE IMAGE — DASHA_001 Use the uploaded image as the exact character reference for Dasha. Preserve her recognizable face,...

Сұрау жасау

Басқару элементтері модель схемасынан жасалады. Оларды өзгерткен сайын код пен баға жаңартылады.

•міндетті

Генерацияланған кескінді бағыттайтын мәтіндік нұсқаулар.

image_size әдепкі square_hd

Генерацияланған кескін өлшемдері.

Қосымша negative_prompt · image_format · num_inference_steps · guidance_scale · shift · seed · enable_safety_checker · enable_output_safety_checker · enable_prompt_expansion
әдепкі

Бейне генерациясы кезінде қолданылатын теріс нұсқау.

image_format әдепкі jpeg

Нәтиже кескінінің файл пішімі.

әдепкі 40

Іріктеу қадамдарының саны; сан артқан сайын өңдеу уақыты ұзарып, сапа жақсарады.

әдепкі 3.5

Жіктеуішсіз нұсқау күші; масштаб артқан сайын ықтимал сапа жоғалуын нұсқауға жақынырақ сәйкестікке айырбастайды.

әдепкі 2

Кескін shift параметрі, рұқсат етілген ауқымы 1.0–10.0.

Генерацияны қайта өндіруге мүмкіндік беретін seed. None мәнін орнатсаңыз, seed кездейсоқ таңдалады.

POST /run/wan/v2.2-5b/text-to-image?wait=20 бағасы → 0,016 $
# 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/wan/v2.2-5b/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Осы сұрауды іске қосу

Кілтіңіз осы браузерде қалады: ол тек Doitong API-ге жіберіледі және Remember параметрін белгілеcеңіз ғана localStorage ішінде сақталады. API кілтін алу

Wan · v2.2 5b · Text to Image туралы

Мәтіндік `prompt` арқылы статикалық кескін генерациялайды. square_hd, portrait_16_9 немесе landscape_4_3 сияқты `image_size` өлшемін таңдап, `image_format` арқылы png немесе jpeg пішімін таңдаңыз. Сэмплингті `num_inference_steps` (2-ден 50-ге дейін), `guidance_scale` (1-ден 10-ға дейін) және `shift` арқылы реттеуге болады, сондай-ақ `negative_prompt` пен қосымша нұсқауды кеңейту қолжетімді.

Параметрлер

АтауыТүрі ӘдепкіРұқсат етілген Сипаттама
promptміндетті
Түріstring
Генерацияланған кескінді бағыттайтын мәтіндік нұсқаулар.
negative_promptміндетті емес
Түріstring
Әдепкі
Бейне генерациясы кезінде қолданылатын теріс нұсқау.
seedміндетті емес
Түріinteger | null
Генерацияны қайта өндіруге мүмкіндік беретін seed. None мәнін орнатсаңыз, seed кездейсоқ таңдалады.
num_inference_stepsміндетті емес
Түріinteger
Әдепкі40
2 – 50
Іріктеу қадамдарының саны; сан артқан сайын өңдеу уақыты ұзарып, сапа жақсарады.
enable_safety_checkerміндетті емес
Түріboolean
Әдепкіfalse
Өңдеуге дейінгі кіріс қауіпсіздігін тексеруін тек рұқсаты бар есептік жазбалар өшіре алады. Рұқсатсыз сұраулар әрқашан тексеріледі; әйтпесе true мәні тексеруді қосады.
enable_output_safety_checkerміндетті емес
Түріboolean
Әдепкіfalse
Генерацияланған бейненің қауіпсіздік тексеруін басқарады; true мәні генерациядан кейінгі тексеруді қосады.
enable_prompt_expansionміндетті емес
Түріboolean
Әдепкіfalse
Үлкен тіл моделіне нұсқауды мәліметтермен толықтыруға рұқсат береді. Бұл кеңейту нұсқаудың мағынасын өзгертпейді.
guidance_scaleміндетті емес
Түріnumber
Әдепкі3.5
1 – 10
Жіктеуішсіз нұсқау күші; масштаб артқан сайын ықтимал сапа жоғалуын нұсқауға жақынырақ сәйкестікке айырбастайды.
shiftміндетті емес
Түріnumber
Әдепкі2
1 – 10
Кескін shift параметрі, рұқсат етілген ауқымы 1.0–10.0.
image_sizeміндетті емес
Түріobject
Әдепкіsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Генерацияланған кескін өлшемдері.
image_formatміндетті емес
Түріenum
Әдепкіjpeg
pngjpeg
Нәтиже кескінінің файл пішімі.
міндетті

Шығыс

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.2-5b/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": 16,
    "usd": "0.016",
    "charged": 16,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "image": {
      "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
    },
    "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Файлдарыңыз — таңдауыңызӘр outputs[].url — сақтау орнымыздағы көшірме: мәңгі (әр GB-ай үшін ақылы) немесе аккаунт параметрі не ?storage= арқылы 7 күн тегін сақталады.
Әр модельдегі пішім бірдейtype, url, content_type, width, height және duration — кескіндерге, бейнеге және аудиоға ортақ. output — модельдің өз нәтижелер нысаны.
Шығыс өрістері
image
object {url, content_type, file_name, file_size}Генерация нәтижесінде жасалған кескін файлы.
seed
integerГенерация кезінде қолданылатын seed мәні.

Қосымша модельдер: Мәтіннен кескінге

AI агенттеріне: бұл беттің Markdown нұсқасы мына жерде: https://doitong.com/kk/developers/models/wan/v2.2-5b/text-to-image.md. Барлық модельдер мен нұсқаулықтар: https://doitong.com/developers/llms.txt