Skip to content
Trang này chưa có bản dịch sang ngôn ngữ của bạn, nên hiện đang được hiển thị bằng tiếng Anh.
ByteDance · Seedream

seedream-4-5 API

Generate and edit images with ByteDance’s seedream-4-5 on APISea, with reference inputs and 2K or 4K output.

Tạo ảnhẢnhTác vụ bất đồng bộ
ID model
seedream-4-5

Bảng giá API seedream-4-5

Tất cả giá đều tính bằng USD. So sánh mức giá của APISea với giá niêm yết chính thức cho cùng đơn vị.

Tùy chọnAPISeaChính thứcTiết kiệm
Mặc địnhMặc định$0.0286$0.0347−18%

Giá tính theo mỗi hình ảnh.

seedream-4-5 là gì?

seedream-4-5 is ByteDance’s Seedream image model for text-to-image generation, image-to-image workflows, and image editing on APISea. Submit a text prompt and optionally provide reference images through public URLs or complete base64 Data URIs. Output controls include aspect ratio, 2K or 4K resolution, image count, prompt optimization mode, and an optional watermark. These controls let developers build image creation and editing workflows around the same generation endpoint.

Requests run asynchronously: the generation endpoint returns a task ID for subsequent status queries rather than a finished image immediately. Save completed images promptly because generated links expire after 24 hours. APISea provides one API key and an OpenAI-compatible base URL, https://api.apisea.ai/v1. The APISea Default price is $0.0286 per image, about 18% below the provider list price of $0.0347 per image. Pricing is pay-as-you-go, with billing only for successful requests.

Điểm nổi bật của seedream-4-5

Three Image Workflows

Use text-to-image generation, image-to-image generation, or image editing. Add reference inputs through the image_urls parameter when your workflow needs existing images.

Resolution And Aspect Controls

Choose 2K or 4K output across supported square, landscape, and portrait ratios. The auto aspect-ratio option matches a reference image and requires image_urls.

Prompt Optimization Modes

The standard mode favors higher-quality content with longer processing time. The fast mode produces regular-quality content in shorter time.

Optional Moderation And Watermark

Enable nsfw_check to review prompts and input images before submitting a task. The watermark parameter controls whether generated images include a watermark; both options default to false.

Cách gọi API seedream-4-5 trong 4 bước

  1. 01

    Tạo API key

    Đăng nhập APISea, nạp tối thiểu $50 rồi tạo key sk-sea trong bảng điều khiển.

  2. 02

    Đặt base URL

    Dùng https://api.apisea.ai/v1 làm base URL trong SDK hoặc HTTP client.

  3. 03

    Gửi request

    Gọi POST /v1/images/generations với "model": "seedream-4-5" và các tham số bên dưới.

  4. 04

    Xử lý phản hồi

    Phản hồi có chứa task_id. Gửi GET /v1/tasks/{task_id} định kỳ cho đến khi trạng thái là completed, sau đó tải xuống từ các URL kết quả.

curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "seedream-4-5",
    "prompt": "A cute panda playing in a bamboo forest",
    "size": "1:1",
    "resolution": "2K",
    "n": 1,
    "image_urls": [
      "https://cdn.example.com/doc/1761215838466614297_9852.png"
    ]
  }'

Tham số

Tham sốLoạiBắt buộcMặc địnhMô tả
modelstringBắt buộcseedream-4.5Image generation model name
nsfw_checkbooleanTùy chọnfalseWhether to run content moderation before submitting the image task.
promptstringBắt buộc—Text description for image generation
sizestringTùy chọn1:1Image aspect ratio
resolutionstringTùy chọn2KImage resolution
nintegerTùy chọn—Number of images to generate
image_urlsarrayTùy chọn—Reference image URL list for image-to-image or image editing
optimize_prompt_options.modestringTùy chọnstandardPrompt optimization mode
sequential_image_generationstringTùy chọndisabledSequential image generation mode (specific feature)
sequential_image_generation_optionsobjectTùy chọn—Sequential image generation options
watermarkbooleanTùy chọnfalseWhether to add a watermark to the generated image

Bạn có thể xây dựng gì với seedream-4-5

Campaign Asset Creation

Build a prompt-based image tool for teams creating campaign visuals in square, widescreen, and vertical formats.

Reference-Based Image Workflows

Let users submit existing images alongside a prompt for image-to-image generation or editing.

High-Resolution Asset Export

Offer 2K and 4K output choices in an image creation application, with aspect-ratio controls for different placements.

Queued Image Production

Build an asynchronous generation queue that stores task IDs, checks completion, and saves generated images before their links expire.

Mẹo để có kết quả tốt hơn

  • 01

    Plan For Async Results

    Store the task ID returned by POST /v1/images/generations and query for completion. Download completed images within the 24-hour link validity window.

  • 02

    Choose Your Output Settings

    Set size for the aspect ratio and resolution to 2K or 4K; defaults are 1:1 and 2K. Use size auto only when supplying image_urls.

  • 03

    Budget Your Image Count

    Send n as an unquoted integer from 1 to 15, and keep reference images plus requested output images at 15 or fewer. The documentation notes that charges are pre-deducted based on the requested count; APISea bills only successful requests.

  • 04

    Select Optimization Deliberately

    Use optimize_prompt_options.mode standard when you prefer higher-quality content and can allow longer processing. Choose fast when shorter processing time is more important.

Giới hạn và những điều cần biết

  • Generation is asynchronous and returns a task ID for subsequent queries.

  • Generated image links expire after 24 hours.

  • 1K resolution is unsupported, and reference images plus requested output images must total no more than 15.

Câu hỏi thường gặp về API seedream-4-5

How much does seedream-4-5 cost on APISea?

APISea Default pricing is $0.0286 per image, about 18% below the provider list price of $0.0347 per image. APISea uses pay-as-you-go pricing and bills only successful requests.

How do I call seedream-4-5 through APISea?

Send a POST request to https://api.apisea.ai/v1/images/generations with Bearer Token authentication, model set to seedream-4-5, and a required prompt. The endpoint returns a task ID for subsequent queries.

Does seedream-4-5 support image editing and reference images?

Yes, it supports image-to-image generation and image editing through image_urls. Supply publicly accessible image URLs or complete base64 Data URIs for JPEG or PNG images.

Which resolution and aspect-ratio parameters are supported?

Set resolution to 2K or 4K; 1K is not supported. The size parameter supports ratios including 1:1, 16:9, 9:16, 2:1, and 21:9, plus auto to match a supplied reference image.

What are the image count and reference input limits?

The n parameter accepts an unquoted integer from 1 to 15, and reference images plus requested output images must total no more than 15. Reference images must be JPEG or PNG, no larger than 10MB, with width and height greater than 14 pixels, a width-to-height ratio from 1/3 to 3, and total pixels not exceeding 6000×6000.

Can I use seedream-4-5 images commercially?

Commercial use is subject to the provider’s terms. Review the applicable terms for your intended use before publishing or distributing generated images.

Model liên quan

Hệ sinh thái gồm 250+ mô hình · Nạp tối thiểu $50

Bắt đầu xây dựng với seedream-4-5

Chỉ cần một key, thanh toán theo mức sử dụng từ $50; chỉ tính phí cho các request thành công.