Ir para o conteúdo

Wan · v2.7 · Pro · Text to Image

Integrar

ID do modelo wan/v2.7/pro/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/pro/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"

Esta solicitação: $ 0,075 75 créditos de API Executar nesta página

Obter chave de API
Alibaba Texto para imagem #wan#text-to-image#pro

Versão Pro de texto para imagem do Wan 2.7, retornando até cinco imagens por solicitação

Feito no Doitong

Trabalhos públicos feitos com Wan 27 pela comunidade Doitong. Reutilize um prompt com um clique.

Trabalhos públicos exibidos: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... Vídeo

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... Vídeo

**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... Vídeo

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... Vídeo

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... Vídeo

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,...

Criar uma solicitação

Os controles são gerados a partir do esquema do modelo. O código e o preço são atualizados conforme você os altera.

•obrigatório 88 / 2000

Descrição da saída pretendida, escrita em chinês ou inglês.

image_size padrão square_hd

Dimensões da imagem de saída.

num_images padrão 1

Quantidade de imagens geradas, de 1 a 5.

Avançado negative_prompt · output_format · seed · enable_safety_checker
0 / 500

Conteúdo a excluir da imagem resultante, limitado a 500 caracteres.

output_format padrão jpeg

Formato de arquivo das imagens de saída.

Seed aleatória que permite resultados reproduzíveis, variando de 0 a 2147483647.

POST /run/wan/v2.7/pro/text-to-image?wait=20 cotação → $ 0,075
# 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/pro/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"

Executar esta solicitação

Sua chave permanece neste navegador: ela é enviada somente à Doitong API e salva (localStorage) apenas se você marcar Lembrar. Obter uma chave de API

Sobre Wan · v2.7 · Pro · Text to Image

Gera imagens a partir de um `prompt` de texto de até 2000 caracteres, em chinês ou inglês. `num_images` varia de 1 a 5, `image_size` tem seis predefinições com square_hd como padrão, e `output_format` pode ser jpeg, png ou webp. Há suporte a um `negative_prompt` de até 500 caracteres e a um `seed`. A resposta também pode conter texto gerado opcional.

Parâmetros

Envie o nome canônico ou o nome nativo, não ambos. Nomes canônicos

NomeTipo PadrãoPermitido Descrição
promptobrigatório
Tipostring
≤ 2.000 caracteres
Descrição da saída pretendida, escrita em chinês ou inglês.
negative_promptopcional
Tipostring | null
Padrão
≤ 500 caracteres
Conteúdo a excluir da imagem resultante, limitado a 500 caracteres.
image_sizeopcional
Tipoobject
Padrãosquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensões da imagem de saída.
num_imagesopcional num_outputs
Tipointeger
Padrão1
1 – 5
Quantidade de imagens geradas, de 1 a 5.
seedopcional
Tipointeger | null
Seed aleatória que permite resultados reproduzíveis, variando de 0 a 2147483647.
enable_safety_checkeropcional
Tipoboolean
Padrãotrue
Moderação da entrada e da saída, aplicada a cada requisição, a menos que a conta esteja autorizada a desativá-la e a opção esteja desligada.
output_formatopcional
Tipoenum
Padrãojpeg
jpegpngwebp
Formato de arquivo das imagens de saída.
obrigatório Nome canônico, também aceito

Saída

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.7/pro/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": 75,
    "usd": "0.075",
    "charged": 75,
    "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"
  }
}
Seus arquivos, sua escolhaCada outputs[].url é uma cópia em nosso armazenamento: mantida para sempre (cobrada por GB-mês) ou por 7 dias gratuitamente, conforme a configuração da sua conta ou ?storage=.
Mesmo formato em todos os modelostype, url, content_type, width, height e duration, para imagens, vídeos e áudios. output é o próprio objeto de resultado do modelo.
Campos da saída
images
array of object {url, content_type, file_name, file_size}Imagens produzidas pela geração.
generated_text
string | nullTexto opcional produzido pelo modelo e incluído na resposta.
seed
integerValor de seed aplicado durante a geração.

Mais modelos: Texto para imagem

Para agentes de IA: esta página em Markdown está em https://doitong.com/pt-BR/developers/models/wan/v2.7/pro/text-to-image.md. Todos os modelos e guias: https://doitong.com/developers/llms.txt