此语言仍有 24 条内容或界面任务待翻译;未完成部分显示中文原文。
AI Tools Navigation / Drawing & Images / 火山方舟图片生成 API(Seedream)
绘画与图像 · 火山引擎(火山方舟)

火山方舟图片生成 API(Seedream)

Call the Seedream series models to generate images, image sets, RGBA transparent images, or perform layer decomposition via prompts and reference images.

AI 辅助整理
Image GenerationImage Set GenerationLayer DecompositionRGBA Transparent ImagesOCR RecognitionAPI

Tool Introduction

Volcano Ark image generation API is an HTTP API for developers (POST https://ark.cn-beijing.volces.com/api/v3/images/generations), supporting models such as Seedream 5.5, 5.0 pro/flash/lite, and 4.5/4.0. Input is a text prompt (Chinese and English, plus additional languages) with optional reference images; output is an image URL or Base64 data. Core capabilities include text-to-image, single-/multi-image-to-image, image set generation, native RGBA transparent images, layer decomposition (returning z_index, bounding_box, and rich-text OCR), and the web search tool in Seedream 5.0 lite. Limitations include the maximum count and size of reference images, differing resolution ranges across models, and URL links returned that are valid for 24 hours.

Capability differences are divided by model: Seedream 5.5 layer decomposition outputs at most 1 base images plus 99 layers, supports rich-text OCR (font, color, bold, italic, underline, strikethrough, shadow, semi-transparency) and text-to-RGBA; 5.0 pro/flash supports up to 16 layers, RGBA image generation with at most 10 reference images where input images must have an alpha channel, and text-to-RGBA is not supported. 5.0 lite/4.5/4.0 support image sets (sequential_image_generation=auto, reference images + generated images ≤15 in total) and streaming output; models that do not yet support image set generation, web search, or streaming output are 5.5/5.0 pro/flash. Layer decomposition only supports a single input image (png/jpeg, 512×512 or larger, ≤30MB); if any layer fails, the whole request errors; layers are always output as png, and output_format only controls the base image. The size parameter has two configuration methods that cannot be mixed: resolution tiers (1K/1.5K/2K, etc.) or explicit width/height pixel values, which must satisfy each model's total-pixel and aspect-ratio ranges. Prompts are recommended to be no more than 300 Chinese characters or 600 English words. In the response, usage is billed by successfully generated images (output_tokens = sum(width × height)/256, rounded).

Who It's For

Developers who need to integrate image generation capabilities into their applications, as well as design and content teams that need to produce assets at scale, decompose design layers, or extract text styles; the API requires experience with API calls and authentication configuration.

Recommended Steps

  1. 01

    Activate the Volcano Ark model service and obtain a long-lived API Key from the API Key management page; look up the Model ID of the desired model (or create an Endpoint ID to gain advanced capabilities such as rate limiting and monitoring).

  2. 02

    Construct the request as POST https://ark.cn-beijing.volces.com/api/v3/images/generations, setting model and prompt, and pass reference images via image (URL or Base64) when needed.

  3. 03

    Configure optional parameters based on model capabilities: layer decomposition via layer_decomposition and layer_decomposition_options, image sets via sequential_image_generation and max_images, transparent images via background, size via size, and return format via response_format (url or b64_json).

  4. 04

    Send the request and parse the data array; links returned as url are valid for 24 hours and should be downloaded promptly; the official recommendation is to configure TOS data subscription for long-term backup.

  5. 05

    Use the usage field to verify the number of successfully generated images and token consumption; for image set scenarios, read data.error for per-image failures and the top-level error for overall failures.

Know Before You Use

Requires a Volcano Ark account with the model service activated; authentication uses a API Key (Bearer). URL links returned are valid for 24 hours after generation. Debug requests count as real calls and may incur cloud product charges. Web search in seedream 5.0 lite increases latency. Check the official website for specific pricing and regional availability.

费用与套餐:The source mentions billing types (prepaid/postpaid), per-image billing, and IPM pre-deduction quota, but does not provide specific unit prices; actual pricing is subject to the Volcano Ark official website.

Product Selection Assistant

让需求变成可修改的筛选条件

依据已录入参数生成条件,结果可查看和修改。帧率与性能需核对实测,不能仅凭算力数值保证。