Inputlive schema
Sign in to run this model with your own API key. Sign in →
字节最新一代的图像生成模型
Sign in to run this model with your own API key. Sign in →
Run the form on the left. Results, polling status and cURL appear under the form.
This model is priced by the usage dimensions listed here. Compare all pricing.
List prices in USD. Your effective price also depends on the billing group attached to your API key.
seedream-5.0-lite/image-to-image/v1/jobsconst BASE_URL = "https://api.dreamtoai.com";
const API_KEY = process.env.MIX_API_KEY;
const headers = {
"Authorization": `Bearer ${API_KEY}`,
"Content-Type": "application/json",
};
const payload = {
"model": "seedream-5.0-lite/image-to-image",
"input": {
"prompt": "一张国风插画,细节丰富,柔和光线",
"image": [
"https://example.com/reference.png"
],
"size": "1024x1024",
"sequential_image_generation": "disabled",
"sequential_image_generation_options": {},
"tools": [],
"stream": false,
"guidance_scale": 5,
"output_format": "jpeg",
"response_format": "url",
"watermark": true,
"optimize_prompt_options": {}
}
};
const submit = await fetch(`${BASE_URL}/v1/jobs`, {
method: "POST",
headers,
body: JSON.stringify(payload),
}).then((r) => r.json());
const status = await fetch(`${BASE_URL}/v1/jobs/${submit.id}`, { headers })
.then((r) => r.json());
console.log(status);
Create a key in Console → API Keys and replace the placeholder in the sample.
README
字节最新一代的图像生成模型
| Parameter | Required | Description |
|---|---|---|
promptstring | Required | Text description of what to generate. |
imagearray | Optional | Reference image to guide the result. |
sizestring | Optional | Output image size. |
sequential_image_generationenum | Optional | 组图模式 Options: auto, disabled. Default: disabled. |
sequential_image_generation_optionsobject | Optional | 组图配置 |
toolsarray | Optional | 工具配置 |
streamboolean | Optional | Stream the reply as server-sent events. Default: false. |
guidance_scalenumber | Optional | 文本权重 |
output_formatenum | Optional | 输出格式 Options: png, jpeg. Default: jpeg. |
response_formatenum | Optional | Format of the returned result, such as a URL or base64 data. Options: url, b64_json. Default: url. |
watermarkboolean | Optional | 水印 Default: true. |
optimize_prompt_optionsobject | Optional | 提示词优化配置 |
The model reads a prompt like a creative brief. Name the subject first, then add the details that matter.
Who or what is in the image, and what it is doing.
Photo, 3D render, watercolor or flat illustration. For photographic looks, name a lens or film stock.
Framing and viewpoint: close-up, wide shot, overhead, centered, rule of thirds.
Golden hour, soft studio light, neon, a pastel palette, high contrast.
Put the exact words in quotes and say where they go.
A poster with the headline "OPEN LATE" in bold white letters across the top.
| Prompt | |
|---|---|
| Weak | a coffee shop |
| Strong | A cozy corner coffee shop on a rainy evening, seen through the front window. Warm tungsten light inside, a barista pouring latte art, condensation on the glass, street reflections. 35mm photo, shallow depth of field, muted teal and amber palette. |
| Billing item | Price | Official price |
|---|---|---|
| Per request | $0.0176 per request |
That is 45% below the official list price.
Example: 10 runs at Per request cost $0.18.
List prices in USD. Your effective price also depends on the billing group attached to your API key. Compare all pricing
seedream-5.0-lite/text-to-imageseedance-1-5-pro-1080pBrowse all image modelsBrowse API Market
字节最新一代的图像生成模型
Send POST /v1/jobs with the model ID seedream-5.0-lite/image-to-image and your API key. Ready-to-run samples are in the API section above.
Requests are billed at the prices listed above and charged to your wallet. Final cost depends on usage and the billing group attached to your API key.
Create one in Console → API Keys. The same key works for every model on the gateway.
Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.
字节最新一代的图像生成模型