{ "model_id": "alibaba/wan-2.6-image", "provider_id": "alibaba", "name": "Wan 2.6 Image", "description": "Alibaba's Wan 2.6 text-to-image model generating images from text prompts with optional negative prompts and customizable dimensions.", "task": "Text-to-Image", "tags": [ "Image Generation", "Negative Prompt" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per image": 0.03 }, "examples": [ { "name": "Simple Generation", "description": "Basic text-to-image generation", "input": { "prompt": "A golden retriever puppy playing in autumn leaves" }, "output": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/alibaba__wan-2.6-image/simple-generation.png" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://dashscope-463f.oss-accelerate.aliyuncs.com/1d/66/20260417/c057796c/32701268-BbftSa6r_189314ac1a36.png" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'alibaba/wan-2.6-image',\n { prompt: 'A golden retriever puppy playing in autumn leaves' },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/wan-2.6-image\",\n \"input\": {\n \"prompt\": \"A golden retriever puppy playing in autumn leaves\"\n }\n}'" } ] }, { "name": "Custom Dimensions", "description": "Specify image size in WxH format", "input": { "prompt": "A vast alien desert landscape with two suns setting on the horizon, ancient ruins in the foreground", "size": "1024x768" }, "output": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/alibaba__wan-2.6-image/custom-dimensions.png" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://dashscope-463f.oss-accelerate.aliyuncs.com/1d/35/20260417/c057796c/3257252-vy1GbNI6_bc223e38c5b4.png" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'alibaba/wan-2.6-image',\n {\n prompt:\n 'A vast alien desert landscape with two suns setting on the horizon, ancient ruins in the foreground',\n size: '1024x768',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/wan-2.6-image\",\n \"input\": {\n \"prompt\": \"A vast alien desert landscape with two suns setting on the horizon, ancient ruins in the foreground\",\n \"size\": \"1024x768\"\n }\n}'" } ] }, { "name": "Square Format", "description": "Square image for social media or product photos", "input": { "prompt": "A sleek wireless headphone on a minimalist white marble surface with soft studio lighting", "size": "1024x1024" }, "output": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/alibaba__wan-2.6-image/square-format.png" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://dashscope-463f.oss-accelerate.aliyuncs.com/1d/84/20260417/c057796c/18355039-RFkWcHgG_0dcb1c1d6d95.png" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'alibaba/wan-2.6-image',\n {\n prompt:\n 'A sleek wireless headphone on a minimalist white marble surface with soft studio lighting',\n size: '1024x1024',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/wan-2.6-image\",\n \"input\": {\n \"prompt\": \"A sleek wireless headphone on a minimalist white marble surface with soft studio lighting\",\n \"size\": \"1024x1024\"\n }\n}'" } ] }, { "name": "Negative Prompt", "description": "Guide generation away from unwanted elements", "input": { "prompt": "A detailed oil painting portrait of a Renaissance nobleman with intricate lace collar", "negative_prompt": "modern clothing, photograph, blurry, low quality" }, "output": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/alibaba__wan-2.6-image/negative-prompt.png" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://dashscope-463f.oss-accelerate.aliyuncs.com/1d/53/20260417/c057796c/26097304-eVhNm6uS_edc041cd5e2b.png" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'alibaba/wan-2.6-image',\n {\n prompt: 'A detailed oil painting portrait of a Renaissance nobleman with intricate lace collar',\n negative_prompt: 'modern clothing, photograph, blurry, low quality',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/wan-2.6-image\",\n \"input\": {\n \"prompt\": \"A detailed oil painting portrait of a Renaissance nobleman with intricate lace collar\",\n \"negative_prompt\": \"modern clothing, photograph, blurry, low quality\"\n }\n}'" } ] }, { "name": "Portrait Format", "description": "Tall vertical image for portraits", "input": { "prompt": "An elegant Art Deco poster featuring a jazz singer under a spotlight", "size": "768x1024" }, "output": { "image": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/alibaba__wan-2.6-image/portrait-format.png" }, "raw_response": { "gatewayMetadata": { "keySource": "Unified" }, "result": { "image": "https://dashscope-463f.oss-accelerate.aliyuncs.com/1d/5a/20260417/c057796c/79957405-YTXQsRY6_8d8a6631f1d6.png" }, "state": "Completed" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'alibaba/wan-2.6-image',\n {\n prompt: 'An elegant Art Deco poster featuring a jazz singer under a spotlight',\n size: '768x1024',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/wan-2.6-image\",\n \"input\": {\n \"prompt\": \"An elegant Art Deco poster featuring a jazz singer under a spotlight\",\n \"size\": \"768x1024\"\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": true, "zdr_comment": null, "external_info": "https://wan.video/", "terms": "https://www.alibabacloud.com/help/en/legal", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/alibaba/wan-2.6-image.png", "metadata": { "Negative Prompt": "Yes", "Size Format": "WxH (e.g. 1024x1024)" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "alibaba", "pricing": { "output_image_count": 0.03 } } ], "banner": null, "created_at": "2026-05-22 17:52:52", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "type": "string" }, "size": { "type": "string", "pattern": "^\\d+x\\d+$" }, "negative_prompt": { "type": "string" } }, "required": [ "prompt" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "image": { "type": "string", "format": "uri" } }, "required": [ "image" ], "additionalProperties": false } } }