توليد الصور باستخدام Seedream
استخدم CometAPI POST /v1/images/generations لتوليد الصور من النص إلى الصورة ومن الصورة إلى الصورة باستخدام Seedream — مع دعم الإخراج التسلسلي لعدة صور والصور المرجعية.
Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
نظرة عامة
أنشئ الصور باستخدام نماذج Seedream من ByteDance عبر نقطة النهاية القياسية المتوافقة مع OpenAI/v1/images/generations. يدعم كلًا من توليد النص إلى صورة والصورة إلى صورة.
للاطلاع على القائمة الكاملة للنماذج، راجع صفحة Models. وللاطلاع على توثيق المعلمات التفصيلي من المزوّد، راجع توثيق VolcEngine.
sequential_image_generation على auto ويمكنك اختياريًا تهيئة sequential_image_generation_options.max_images لتحديد عدد الصور الناتجة. يجب أن يكون إجمالي عدد الصور المرجعية بالإضافة إلى الصور المُولَّدة ≤ 15.الصورة إلى صورة
مرّر صورة مرجعية واحدة أو أكثر عبر المعلمةimage (مصفوفة من عناوين URL أو بيانات base64 بصيغة data URI) مع Prompt نصي. يدعم حتى 14 صورة مرجعية.
هل يعرض عنوان URL المُعاد AccessDenied؟
التفويضات
Bearer token authentication. Use your CometAPI key.
الجسم
Parameters for Seedream image generation (text-to-image and image-to-image).
Model to use. See the Models page for current Seedream model IDs.
Text prompt describing the image to generate. Supports both Chinese and English. Recommended max 300 Chinese characters or 1000 English characters.
Output format. url returns a temporary image link (valid for 24 hours); b64_json returns base64-encoded image data.
url, b64_json Output resolution. Presets 2K, 4K, or exact pixels like 2048x2048, 2304x1728, 2848x1600, 1600x2848, etc. Default: 2048x2048.
Reference image(s) for image-to-image generation. Each item is a public URL or base64 data URI (data:image/png;base64,...). Supports up to 14 reference images. Supported formats: jpeg, png, webp, bmp, tiff, gif.
When true, adds an 'AI Generated' watermark to the bottom-right corner of the output image.
Controls how closely the output follows the prompt. Higher values increase adherence but may reduce naturalness. Range: 1.0–10.0. Not supported by Seedream 5.0 (ignored).
Random seed for reproducible outputs. Range: -1 to 2147483647. Use -1 (default) for random generation. Legacy parameter — ignored by newer models.
Controls sequential (multi-image) generation mode.
auto: model decides whether to generate a sequence based on the promptdisabled: always generate a single image
auto, disabled Configuration for sequential (multi-image) generation. Only effective when sequential_image_generation is auto.
Output image file format. Options: png, jpeg.
png, jpeg