wan/wan2.5-t2i-preview, served by Comfy Router from Wan.
Input: Text · Output: Image
Quick start
Create a key in your Comfy workspace and export it asCOMFY_API_KEY. The Python and TypeScript snippets use the Comfy SDKs (pip install comfy-sdk and npm install @comfyorg/sdk); the cURL snippet is the same call over raw HTTP.
Model ID: wan/wan2.5-t2i-preview
Endpoint: POST https://api.comfy.org/v2/models/wan/wan2.5-t2i-preview
- Wait for the result
- Queue and collect later
The same body, sent to
POST https://api.comfy.org/v2/models/wan/wan2.5-t2i-preview/requests. Router answers 201 with a request_id as soon as the run is admitted, and the result is collected once it is ready, from this process or another one. Queued delivery walks through status, cancellation and collection.Schema
Input
Reverse prompt words to describe content that you do not want to see in the image. Past 500 characters the model truncates it rather than refusing it. It counts toward the same input budget as prompt.
Positive prompt words to describe expected image elements and visual features. Supports Chinese and English. Past 2,000 characters the model truncates the prompt rather than refusing it. The provider refuses a request whose prompt and negative_prompt together are longer than about 60,850 bytes of UTF-8 text (about 20,000 Chinese characters), answering InvalidParameter
Range of input length should be [1, 61440].The ID of the model to call for text-to-image generation. NOT constrained on this component: Comfy Router fills it from the
{model} path segment of POST /v2/models/wan/{model}. A direct v1 call to POST /proxy/wan/api/v1/services/aigc/text2image/image-synthesis MUST supply it, and the enum of accepted spellings lives on that operation’s own component, WanImageGenerationRequest.The output image resolution in the format widthheight. Default is 12801280. The API accepts a pixel area between 1638400 (12801280) and 2073600 (14401440) with an aspect ratio between 1:4 and 4:1, so 768*2700 is valid
GET /v2/models/wan/wan2.5-t2i-preview/openapi.json, the same document it validates a call against before the request reaches the provider.
Output
Error code for a failed request, reported at the ROOT of the envelope rather than under
output (not returned if the request succeeded).Detailed information about a failed request, reported at the ROOT of the envelope rather than under
output (not returned if the request succeeded). Read this before falling back to output.message.Examples
Input
Output
Before you ship
The SDKs create anIdempotency-Key and reuse it for automatic retries. For manual retries, reuse the original key. Router can hold the connection for up to 10 minutes.
When a request fails, Router sends an X-Comfy-Error-Type response header explaining why. A 422 means Router rejected the input before calling the provider, and a 413 means the request body was larger than Router accepts. Download generated assets promptly because result URLs can expire.
Any size limit named in a field description above is the provider’s own bound on that field, quoted from the provider’s specification. Router applies a separate cap to the whole request body, which base64-encoded media counts against: see request body size.
This page documents one partner model called through Comfy Router. The same comfy-sdk / @comfyorg/sdk package also ships a second client, for running a whole ComfyUI workflow graph on Comfy Cloud: Comfy(api_key=...) / new Comfy({ apiKey }), with client.workflows, client.assets and client.jobs. See Comfy SDKs.
Headers
Authentication, idempotency, request IDs, error buckets, retry pacing, spend limits.
Using the Router API
Model discovery, validation errors, retries, and billing.
Limitations
What Router does not do today, and what to use instead.