Quote first, then generate
You
Generate 4 product shots, 3:4 at 2K, with Seedream. Tell me the points first.
Agent
Quotes, submits, then polls until the images land.
estimate → generate_image → get_generationDRAFTIO MCP
Connect Draftio's 20 image models to your agent: one key, four tools, points-based billing. Once it is set up, generating does not leave the terminal.
Open API keys in settings and create a key starting with dk_live_. MCP only needs the generate scope.
Create a keyDrop the whole block into your client's MCP config and replace dk_live_... with that key.
Ask "generate a 3:4 product shot with draftio". It lists models, quotes the cost and submits.
The endpoint is POST https://www.draftio.cn/api/mcp (Streamable HTTP). Replace dk_live_... with your key; nothing else changes.
{
"mcpServers": {
"draftio": {
"type": "streamable-http",
"url": "https://www.draftio.cn/api/mcp",
"headers": {
"Authorization": "Bearer dk_live_..."
}
}
}
}list_modelsWhen the model id or resolution tiers are unclear: models, tiers and points per tier.
estimateQuote before submitting: total points for model, tier and count. No task, no charge.
generate_imageThe actual submit: returns a task id immediately, the image is not in this response. Use referenceImageUrls to edit.
get_generationPoll by id; once deliveryStatus=ready, outputs holds links you can open directly.
You
Generate 4 product shots, 3:4 at 2K, with Seedream. Tell me the points first.
Agent
Quotes, submits, then polls until the images land.
estimate → generate_image → get_generationYou
Swap the background to light grey, keep the product untouched: https://…/product.png
Agent
Passes the URL as a reference image and returns the new links.
generate_image({ referenceImageUrls: ["https://…/product.png"] })generate_image returns an id only; images usually land in 10–60 seconds. On a client timeout, poll get_generation — resubmitting charges again. A success status is not enough: wait for deliveryStatus to become ready before reading the image URL.
Points are charged on submit, so run estimate first. 1,000 points = ¥10; new accounts get 500 points valid for 30 days.
outputs holds URLs you can open or download directly. No re-hosting, no base64 in the transcript.