อินพุตสคีมาจริง
ลงชื่อเข้าใช้เพื่อเรียกใช้โมเดลนี้ด้วยคีย์ API ของคุณเอง ลงชื่อเข้าใช้ →
字节最新一代的图像生成模型
ลงชื่อเข้าใช้เพื่อเรียกใช้โมเดลนี้ด้วยคีย์ API ของคุณเอง ลงชื่อเข้าใช้ →
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. เปรียบเทียบราคาทั้งหมด.
List prices in USD. Your effective price also depends on the billing group attached to your API key.
seedream-5.0-lite/text-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/text-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
字节最新一代的图像生成模型
| พารามิเตอร์ | จำเป็น | คำอธิบาย |
|---|---|---|
promptstring | จำเป็น | คำอธิบายข้อความของสิ่งที่ต้องการสร้าง |
imagearray | ไม่บังคับ | ภาพอ้างอิงเพื่อกำหนดทิศทางผลลัพธ์ |
sizestring | ไม่บังคับ | ขนาดภาพผลลัพธ์ |
sequential_image_generationenum | ไม่บังคับ | 组图模式 ตัวเลือก: auto, disabled. ค่าเริ่มต้น: disabled. |
sequential_image_generation_optionsobject | ไม่บังคับ | 组图配置 |
toolsarray | ไม่บังคับ | 工具配置 |
streamboolean | ไม่บังคับ | สตรีมคำตอบผ่าน server-sent events ค่าเริ่มต้น: false. |
guidance_scalenumber | ไม่บังคับ | 文本权重 |
output_formatenum | ไม่บังคับ | 输出格式 ตัวเลือก: png, jpeg. ค่าเริ่มต้น: jpeg. |
response_formatenum | ไม่บังคับ | รูปแบบผลลัพธ์ที่ส่งกลับ เช่น URL หรือข้อมูล base64 ตัวเลือก: url, b64_json. ค่าเริ่มต้น: url. |
watermarkboolean | ไม่บังคับ | 水印 ค่าเริ่มต้น: true. |
optimize_prompt_optionsobject | ไม่บังคับ | 提示词优化配置 |
โมเดลอ่านพรอมต์เหมือนบรีฟงานสร้างสรรค์ ระบุวัตถุก่อน แล้วค่อยเพิ่มรายละเอียดที่สำคัญ
ใครหรืออะไรอยู่ในภาพ และกำลังทำอะไร
ภาพถ่าย เรนเดอร์ 3D สีน้ำ หรือภาพประกอบแบบแบน หากต้องการลุคภาพถ่าย ให้ระบุเลนส์หรือฟิล์ม
การจัดเฟรมและมุมมอง: โคลสอัป ไวด์ช็อต มุมสูง กึ่งกลาง กฎสามส่วน
แสงยามเย็น แสงสตูดิโอนุ่ม นีออน โทนพาสเทล คอนทราสต์สูง
ใส่คำที่ต้องการไว้ในเครื่องหมายคำพูดและบอกตำแหน่ง
โปสเตอร์ที่มีพาดหัว "OPEN LATE" ตัวหนาสีขาวด้านบน
| พรอมต์ | |
|---|---|
| อ่อน | ร้านกาแฟ |
| ดี | ร้านกาแฟหัวมุมบรรยากาศอบอุ่นในค่ำคืนฝนตก มองผ่านกระจกหน้าร้าน แสงทังสเตนอุ่นภายใน บาริสต้ากำลังเทลาเต้อาร์ต ไอน้ำเกาะกระจก เงาสะท้อนถนน ภาพถ่าย 35mm ระยะชัดตื้น โทนสีเทียลและแอมเบอร์หม่น |
| รายการคิดเงิน | ราคา | ราคาทางการ |
|---|---|---|
| ต่อคำขอ | $0.0176 ต่อคำขอ |
ถูกกว่าราคาทางการ 45%
ตัวอย่าง: รัน 10 ครั้งด้วย ต่อคำขอ มีค่าใช้จ่าย $0.18
List prices in USD. Your effective price also depends on the billing group attached to your API key. เปรียบเทียบราคาทั้งหมด
seedream-5.0-lite/image-to-imageseedance-1-5-pro-1080pดูโมเดลภาพทั้งหมดเรียกดู API Market
字节最新一代的图像生成模型
ส่ง POST /v1/jobs พร้อม ID โมเดล seedream-5.0-lite/text-to-image และ API คีย์ของคุณ ตัวอย่างพร้อมรันอยู่ในส่วน API ด้านบน
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.
ได้ คุณนำสิ่งที่สร้างไปใช้ในโปรเจกต์เชิงพาณิชย์ได้ ภายใต้ข้อกำหนดของผู้ให้บริการโมเดล
字节最新一代的图像生成模型