Whis 绘图
whis
快速出图的轻量绘图模型,适合草稿与批量。
API call example
Unified endpoint: /v1/images/generations
curl https://api.tokengather.com.cn/v1/images/edits \
-H "Authorization: Bearer $AITOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "whis",
"image": "https://example.com/ref.png",
"prompt": "Change the image style to watercolor"
}'Usage notes
Whis is ByteDance Doubao's image editing and redrawing model. It supports style transfer and local redraws from a reference image, ideal for iterative creative work.
Through the Ai Token gateway, pass in a reference image and an edit instruction to get consistent editing results.
Integrating & Billing for Whis 绘图
Calling Whis 绘图 through AiToken's unified gateway means no separate registration or SDK per vendor: point your request base_url at https://api.tokengather.com.cn/v1 with your AiToken API key, and you can immediately send OpenAI-compatible chat completions, streaming (SSE) and tool calls. Exact capabilities (context length, multimodal / tool-call support, etc.) are shown on the model card above.
Pricing & cost
Billing is metered and transparent: prices are CNY credits converted from official USD list prices by a group multiplier, where 1 CNY = 1 credit. Use the card above and the cost calculator for exact unit prices.
Quick integration example
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_AITOKEN_KEY",
baseURL: "https://api.tokengather.com.cn/v1",
});
const res = await client.chat.completions.create({
model: "whis",
messages: [{ role: "user", content: "Hello" }],
});FAQ
- Is AiToken compatible with the OpenAI SDK?
Yes. Point base_url to AiToken's /v1 and the official OpenAI Python / Node / Go SDKs work out of the box. - What if a model provider fails?
Multi-strategy smart routing fails over at the request level and steers around rate limits or exhausted quota, seamlessly switching to a backup node with no manual intervention. - How is API key security ensured?
Supports multi-key tiers, sub-key model allowlists, rate limits and usage logs—disable any key instantly on anomaly. - Can individuals sign up?
Yes. Get a free API key after registration and pay as you go with a small top-up.
