Seedream 5.0 Pro Layer Decomposition API इंटीग्रेशन
Rivya Public API v1 के जरिए मॉडल ID seedream-5-pro-layer-decomposition, समर्थित इनपुट, पैरामीटर, Files API नियम, क्रेडिट और रिस्पॉन्स उदाहरणों के साथ Seedream 5.0 Pro Layer Decomposition का उपयोग करें।
seedream-5-pro-layer-decomposition
file
संदर्भ मोड के लिए जरूरी
per_image · 1K=7 · 1.5K=7 · 2K=14 · auto_reserve=14 · ⌈total⌉
इमेज
FIXED
5000 अक्षर
रिक्वेस्ट संरचना
मॉडल ID को शीर्ष स्तर पर भेजें। मॉडल के लिए खास कंट्रोल params में रखें।
| कुंजी | प्रकार | जरूरी | डिफॉल्ट | विवरण |
|---|---|---|---|---|
| model | string | हां | seedream-5-pro-layer-decomposition | seedream-5-pro-layer-decomposition API मॉडल ID का उपयोग करें। |
| prompt | string | नहीं | - | इस मॉडल के लिए अधिकतम 5000 अक्षर। |
| params | object | नहीं | - | मॉडल के लिए खास पैरामीटर ऑब्जेक्ट। अनुमत key के लिए नीचे दी गई पंक्तियां देखें। |
| client_request_id | string | नहीं | - | अपने सिस्टम में रिक्वेस्ट ट्रेस करने के लिए वैकल्पिक क्लाइंट-साइड ID। |
मॉडल पैरामीटर
| कुंजी | प्रकार | जरूरी | डिफॉल्ट | सीमा | विकल्प | विवरण |
|---|---|---|---|---|---|---|
| size | select | नहीं | auto | - | auto, 1K, 1.5K, 2K | आउटपुट साइज |
| output_format | select | नहीं | jpeg | - | jpeg, png | यह setting base image को नियंत्रित करती है। अलग की गई layers PNG files के रूप में लौटती हैं। |
अपलोड नीति
पहले संदर्भ फाइल अपलोड करें, फिर लौटे हुए URL और durationToken को params.referenceMediaItems में रखें।
Source image: ठीक एक PNG, JPEG, WebP, BMP, TIFF या GIF upload करें, जिसकी सीमा 30 MB है; HEIC और HEIF supported नहीं हैं।
1
image
अवधि सत्यापन जरूरी होने पर वीडियो और ऑडियो संदर्भों में /api/v1/files से मिला durationToken होना चाहिए।
| kind | अधिकतम आकार | MIME प्रकार |
|---|---|---|
| image | 30 MB | image/jpeg, image/png, image/webp, image/bmp, image/gif, image/tiff |
न्यूनतम रिक्वेस्ट
{
"model": "seedream-5-pro-layer-decomposition",
"params": {
"size": "auto",
"output_format": "jpeg"
}
}संदर्भ फाइल रिक्वेस्ट
{
"model": "seedream-5-pro-layer-decomposition",
"params": {
"size": "auto",
"output_format": "jpeg",
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-image.png",
"kind": "image",
"name": "reference-image.png",
"mimeType": "image/png",
"width": 1024,
"height": 1024,
"sizeBytes": 1048576,
"imageDimensionsToken": "image_dimensions_token_from_original_files_api_upload_response"
}
]
}
}Create रिस्पॉन्स
create एंडपॉइंट सार्वजनिक टास्क ID लौटाता है। टास्क सफल या विफल होने तक स्टेटस एंडपॉइंट पोल करें।
{
"id": "task_seedream_5_pro_layer_decomposition_example",
"status": "queued",
"model": "seedream-5-pro-layer-decomposition",
"reserved_credits": 7,
"final_credits": 0,
"settlement_status": "RESERVED",
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}सामान्य त्रुटियां
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
कुछ मोड में Files API संदर्भ अपलोड जरूरी हैं।