इनपुटलाइव स्कीमा
अपनी 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 मार्केट ब्राउज़ करें
字节最新一代的图像生成模型
अपनी API की और मॉडल ID seedream-5.0-lite/text-to-image के साथ POST /v1/jobs भेजें। चलाने के लिए तैयार उदाहरण ऊपर 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.
हाँ। मॉडल प्रदाता की शर्तों के अधीन, आप जनरेट की गई सामग्री व्यावसायिक प्रोजेक्ट में उपयोग कर सकते हैं।
字节最新一代的图像生成模型