Мазмұнға өту

Wan · v2.7 · Text to Image

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

Модель идентификаторы wan/v2.7/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.7/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,03 $ 30 API кредиті Осы бетте іске қосу

API кілтін алу
Alibaba Мәтіннен кескінге #wan#text-to-image#image-generation

Wan 2.7 мәтіннен кескін жасайтын стандартты модель, әр сұрауға бес кескінге дейін және таңдалатын шығыс форматы бар

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

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

Көрсетілген жария жұмыстар: 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,...

Сұрау жасау

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

•міндетті 88 / 2000

Күтілетін шығыстың сипаттамасы, қытай немесе ағылшын тілінде жазылады.

image_size әдепкі square_hd

Шығыс кескінінің өлшемдері.

num_images әдепкі 1

Генерацияланатын кескіндер саны, 1-ден 5-ке дейін.

Қосымша negative_prompt · output_format · seed · enable_safety_checker
0 / 500

Нәтижедегі кескіннен алып тасталатын мазмұн, ең көбі 500 таңба.

output_format әдепкі jpeg

Шығыс кескіндерінің файл форматы.

Қайта өндіруге болатын нәтижелерді беретін кездейсоқ seed, 0-ден 2147483647-ге дейін.

POST /run/wan/v2.7/text-to-image?wait=20 бағасы → 0,03 $
# 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.7/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.7 · Text to Image туралы

Қытай немесе ағылшын тіліндегі 2000 таңбаға дейінгі мәтіндік `prompt` негізінде кескіндер жасайды. Алты `image_size` пресетінің бірін таңдаңыз, `num_images` арқылы 1-5 кескін жасаңыз және `output_format` арқылы jpeg, png немесе webp таңдаңыз. 500 таңбаға дейінгі `negative_prompt` пен `seed` қолдау табады.

Параметрлер

Канондық атауды немесе төл атауды жіберіңіз, екеуін қатар жібермеңіз. Канондық атаулар

АтауыТүрі ӘдепкіРұқсат етілген Сипаттама
promptміндетті
Түріstring
≤ 2 000 таңба
Күтілетін шығыстың сипаттамасы, қытай немесе ағылшын тілінде жазылады.
negative_promptміндетті емес
Түріstring | null
Әдепкі
≤ 500 таңба
Нәтижедегі кескіннен алып тасталатын мазмұн, ең көбі 500 таңба.
image_sizeміндетті емес
Түріobject
Әдепкіsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Шығыс кескінінің өлшемдері.
num_imagesміндетті емес num_outputs
Түріinteger
Әдепкі1
1 – 5
Генерацияланатын кескіндер саны, 1-ден 5-ке дейін.
seedміндетті емес
Түріinteger | null
Қайта өндіруге болатын нәтижелерді беретін кездейсоқ seed, 0-ден 2147483647-ге дейін.
enable_safety_checkerміндетті емес
Түріboolean
Әдепкіtrue
Кіріс пен шығысты модерациялау әр сұрауда міндетті түрде орындалады, егер есептік жазба иесіне оны өшіруге рұқсат беріліп, опция сөндірілмесе.
output_formatміндетті емес
Түріenum
Әдепкіjpeg
jpegpngwebp
Шығыс кескіндерінің файл форматы.
міндетті Канондық атау, бұл да қабылданады

Шығыс

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.7/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": 30,
    "usd": "0.03",
    "charged": 30,
    "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
      }
    ],
    "generated_text": "string",
    "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 — модельдің өз нәтижелер нысаны.
Шығыс өрістері
images
array of object {url, content_type, file_name, file_size}Генерация нәтижесінде алынған кескіндер.
generated_text
string | nullМодель жасаған және оның жауабына қосылған қосымша мәтін.
seed
integerГенерация кезінде қолданылатын seed мәні.

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

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