Skip to main content

अवलोकन

जब Krea API का कोई मॉडल डिप्रिकेट किया जाता है, तो हम इसे तीन चैनलों के माध्यम से सूचित करते हैं ताकि आपका इंटीग्रेशन स्वचालित रूप से प्रतिक्रिया दे सके:
  • किसी भी डिप्रिकेटेड एंडपॉइंट से हर सफल प्रतिक्रिया पर HTTP headers:
    • Deprecation: true
    • Sunset: Mon, 27 Apr 2026 00:00:00 GMT — जब एंडपॉइंट अनुरोध स्वीकार करना बंद कर देगा (RFC 1123 दिनांक)
    • Link: <https://docs.krea.ai/developers/deprecations#seedance-1-0-lite>; rel="deprecation"; type="text/html" — इस पेज पर संबंधित प्रविष्टि की ओर इंगित करता है
  • OpenAPI: ऑपरेशन को deprecated: true के रूप में चिह्नित किया गया है और विवरण एक चेतावनी ब्लॉक से शुरू होता है।
  • MCP list_models: डिप्रिकेटेड मॉडलों में उनके स्कीमा के साथ एक deprecation ऑब्जेक्ट शामिल होता है।
सनसेट तिथि के बाद, एंडपॉइंट 410 Gone के साथ एक स्ट्रक्चर्ड बॉडी लौटाता है:
{
	"error": "model_unavailable",
	"reason": "deprecated",
	"message": "The model 'video/bytedance/seedance-1.0-lite' was deprecated on 2026-04-27. Provider has discontinued this model. Use 'video/bytedance/seedance-1.0-pro-fast' instead.",
	"sunset_date": "2026-04-27",
	"replacement": "video/bytedance/seedance-1.0-pro-fast",
	"migration_url": "https://docs.krea.ai/developers/deprecations#seedance-1-0-lite"
}
error फ़ील्ड स्थिर है और उस पर स्विच करना सुरक्षित है। जब एक अनुशंसित प्रतिस्थापन मौजूद होता है तो replacement और migration_url फ़ील्ड उपलब्ध होते हैं।
सनसेट तिथि बीतते ही सर्वर-साइड पर लागू कर दिया जाता है। आपके कोड को किसी भी मॉडल एंडपॉइंट से मिले 410 को टर्मिनल मानना चाहिए — पुनः प्रयास करने से कोई मदद नहीं मिलेगी।

वर्तमान में सनसेट

seedream3

2026-05-13 को सनसेट। इस मॉडल को ByteDance द्वारा डिप्रिकेट किया गया। माइग्रेशन: अपना अनुरोध पथ image/bytedance/seedream-3 से image/bytedance/seedream-5-lite पर बदलें।
- POST /generate/image/bytedance/seedream-3
+ POST /generate/image/bytedance/seedream-5-lite
यदि आप MCP के माध्यम से API कॉल करते हैं, तो model तर्क को अपडेट करें:
- { "model": "image/bytedance/seedream-3", "input": { ... } }
+ { "model": "image/bytedance/seedream-5-lite", "input": { ... } }

seedance-1-0-lite

2026-04-27 को सनसेट। प्रदाता ने इस मॉडल को बंद कर दिया है। माइग्रेशन: अपना अनुरोध पथ video/bytedance/seedance-1.0-lite से video/bytedance/seedance-1.0-pro-fast पर बदलें। अनुरोध और प्रतिक्रिया के शेष स्वरूप संगत हैं।
- POST /generate/video/bytedance/seedance-1.0-lite
+ POST /generate/video/bytedance/seedance-1.0-pro-fast
यदि आप MCP के माध्यम से API कॉल करते हैं, तो model तर्क को अपडेट करें:
- { "model": "video/bytedance/seedance-1.0-lite", "input": { ... } }
+ { "model": "video/bytedance/seedance-1.0-pro-fast", "input": { ... } }

sora-2

2026-04-27 को सनसेट। प्रदाता ने इस मॉडल को बंद कर दिया है। इस समय कोई ड्रॉप-इन प्रतिस्थापन उपलब्ध नहीं है। यदि आप video/openai/sora-2 का उपयोग कर रहे थे, तो हमारे Video कैटलॉग में अन्य टेक्स्ट-टू-वीडियो मॉडलों का मूल्यांकन करें — उच्च गुणवत्ता वाले छोटे क्लिप्स के लिए video/google/veo-3.1, video/runway/gen-4.5, और video/bytedance/seedance-1.0-pro सबसे नज़दीकी विकल्प हैं।
- POST /generate/video/openai/sora-2
+ POST /generate/video/<chosen-replacement>

अपने कोड में डिप्रिकेशन का पता कैसे लगाएँ

यदि आप 410 पर प्रतिक्रिया देने के बजाय सनसेट से पहले ही डिप्रिकेशन पकड़ना चाहते हैं, तो किसी भी प्रतिक्रिया पर Deprecation: true हेडर देखें और उसे अपने लॉग या अलर्ट में सामने लाएँ। एक न्यूनतम उदाहरण:
const response = await fetch(url, options);
if (response.headers.get('deprecation') === 'true') {
	const sunset = response.headers.get('sunset');
	const link = response.headers.get('link');
	console.warn(`Endpoint deprecated. Sunset: ${sunset}. Migration: ${link}`);
}
MCP क्लाइंट्स के लिए, list_models और get_model_schema द्वारा लौटाए गए प्रत्येक मॉडल पर deprecation फ़ील्ड का निरीक्षण करें।