AIHub routing name for a Wan 2.7 image capability optimized for interactive generation sessions. The route emphasizes rapid visual iteration without claiming unpublished model limits.
Key strengths
- Interactive image creation
- Fast iteration loops
- Prompt-driven refinement
- Hosted Wan workflow
Use cases
- Live design exploration
- Concept variations
- Creative prototyping
- Interactive image tools
Alibaba's alibaba/wan2.7-image-realtime is a state-of-the-art text-to-image generation model. It produces highly detailed, photorealistic and stylized imagery from natural-language prompts, with strong instruction following and accurate text rendering inside generated images.
Compatible with the OpenAI `/images/generations` endpoint shape, supporting prompt, size, seed, negative prompt, and resolution controls. Excellent for creative workflows, marketing assets, product visualization, and concept art at scale.
alibaba/wan2.7-image-realtime is fully OpenAI-compatible — drop in your existing OpenAI Python or Node SDK and switch `baseURL` to `https://api.tokenlx.ai`. TokenLX transparently routes your requests to the optimal provider endpoint while preserving streaming, function-calling, and structured-output semantics.
Performance
Compare different providers across TokenLX · All locations.
Effective Pricing
Pricing is shown by the model billing method, using per-call or per-second prices and resolution tiers.
Recent activity
Total usage per day on TokenLX (last 30 days).
Sample code & API
TokenLX normalizes requests and responses across providers. Use any OpenAI SDK or our native SDK.
import json
import os
import websocket
ws = websocket.create_connection(
"wss://api.tokenlx.ai/v1/realtime/image",
header=["Authorization: Bearer " + os.environ["AIHUB_API_KEY"]],
)
ws.send(json.dumps({
"model": "wan2.7-image-realtime",
"action": "start_edit",
"prompt": "Replace the background with a starry sky",
"image_b64": "<BASE64_IMAGE>",
}))
print(ws.recv())
ws.close()Replace sk-aihubrouter-… with your key from the dashboard.
Parameter Reference
{
"data": ["url1", "url2"]
}| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model name |
| prompt | string | Yes | Generation prompt |
| size | string | No | Output size: 1K / 2K / 4K or pixel value 1K2K4K自定义像素值(宽高比 1:8~8:1) |
| promptExtend | bool | No | Expand prompt automatically (default true) |
| images | array | Editing | Input images for editing (max 9) |
| images[].file_uri | string | Editing | Image URL or base64 data URI |
| images[].mime_type | string | No | MIME type, defaults to image/png |
modelstringYespromptstringYessizestringNo1K2K4K自定义像素值(宽高比 1:8~8:1)promptExtendboolNoimagesarrayEditingimages[].file_uristringEditingimages[].mime_typestringNo