Skip to content
ეს გვერდი ჯერ თქვენს ენაზე ხელმისაწვდომი არ არის და ინგლისურად არის ნაჩვენები.
ByteDance · Seedream

seedream-4-0 API

Generate and edit images with ByteDance’s seedream-4-0 on APISea using text prompts and reference images.

სურათების გენერაციასურათიასინქრონული ამოცანა
მოდელის ID
seedream-4-0

seedream-4-0 API-ის ფასები

ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.

პარამეტრიAPISeaოფიციალურიდაზოგვა
ნაგულისხმევინაგულისხმევი$0.02145$0.0278−23%

ფასები მოცემულია თითო სურათზე-ზე.

რა არის seedream-4-0?

seedream-4-0 is ByteDance’s Seedream image model for text-to-image generation, image-to-image workflows, and image editing. On APISea, developers can submit a text prompt and optionally provide reference images through publicly accessible URLs or complete base64 Data URIs. Controls include aspect ratio, 1K, 2K, or 4K resolution, output count, prompt optimization, and optional watermarking. The default configuration uses a square aspect ratio and 2K resolution. Requests run asynchronously and return a task ID for subsequent status queries rather than an immediate finished image.

Use APISea’s single API key and base URL, https://api.apisea.ai/v1, to access the image generation endpoint. APISea Default pricing is $0.02145 per image, about 23% below the provider list price of $0.0278 per image. Usage is pay-as-you-go, with billing only for successful requests. Once generation finishes, save the returned images promptly: generated image links remain valid for 24 hours.

seedream-4-0-ის მთავარი მახასიათებლები

Three Image Workflows

Supports text-to-image generation, image-to-image generation, and image editing. Supply reference images through the image_urls parameter for reference-based workflows.

Resolution And Aspect Controls

Choose 1K, 2K, or 4K resolution and square, landscape, portrait, or ultra-wide aspect ratios. The auto aspect ratio option matches a reference image and requires image_urls.

Multiple Image Outputs

Request 1–15 generated images with n. Reference images and requested outputs must total no more than 15.

Optional Submission Moderation

Enable nsfw_check to review prompts and input images with omni-moderation-latest before submitting the image task. It is disabled by default.

როგორ გამოვიძახოთ seedream-4-0 API 4 ნაბიჯში

  1. 01

    მიიღეთ API გასაღები

    შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.

  2. 02

    დააყენეთ საბაზისო URL

    თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.

  3. 03

    გაგზავნეთ მოთხოვნა

    გამოიძახეთ POST /v1/images/generations პარამეტრებით "model": "seedream-4-0" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  4. 04

    დაამუშავეთ პასუხი

    პასუხი შეიცავს task_id-ს. მოითხოვეთ GET /v1/tasks/{task_id} განმეორებით, სანამ სტატუსი completed გახდება, შემდეგ კი ჩამოტვირთეთ შედეგის URL-ებიდან.

მოთხოვნის მაგალითები

დოკუმენტაცია: Seedream-4.0 Image Generation
curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "seedream-4-0",
    "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"
    ]
  }'

პარამეტრები

პარამეტრიტიპისავალდებულონაგულისხმევიაღწერა
modelstringსავალდებულოseedream-4.0Image generation model name
nsfw_checkbooleanარასავალდებულოfalseWhether to run content moderation before submitting the image task.
promptstringსავალდებულო—Text description for image generation
sizestringარასავალდებულო1:1Image aspect ratio
resolutionstringარასავალდებულო2KImage resolution
nintegerარასავალდებულო—Number of images to generate
image_urlsarrayარასავალდებულო—Reference image URL list for image-to-image or image editing
optimize_prompt_optionsstringარასავალდებულოstandardPrompt optimization mode
sequential_image_generationstringარასავალდებულოdisabledSequential image generation mode (specific feature)
sequential_image_generation_optionsobjectარასავალდებულო—Sequential image generation options
watermarkbooleanარასავალდებულოfalseWhether to add a watermark to the generated image

რისი შექმნა შეგიძლიათ seedream-4-0-ით

Campaign Asset Generation

Build a tool that generates campaign image candidates from written briefs, using different aspect ratios for square, landscape, and vertical placements.

Reference-Based Creative Tools

Let users upload reference images and provide prompts for image-to-image generation or editing workflows.

Editorial Image Production

Generate illustrations from editorial descriptions and select the resolution and aspect ratio needed for each layout.

Creative Review Workflows

Request multiple image candidates from a prompt and display completed results in a review interface after querying the task status.

რჩევები უკეთესი შედეგებისთვის

  • 01

    Keep Prompts Within Bounds

    The prompt is required and supports up to 1000 characters. Include the subject, composition, and requested edits within that budget.

  • 02

    Budget Inputs And Outputs

    Pass n as an unquoted integer from 1 to 15. Keep the number of reference images plus requested outputs at 15 or fewer, and plan costs around the requested output count.

  • 03

    Set Dimensions Explicitly

    Use size for aspect ratio and resolution for 1K, 2K, or 4K output. If matching a reference image’s aspect ratio, set size to auto and include image_urls.

  • 04

    Handle Tasks And Downloads

    Store the returned task ID and query for completion before using the output. Download completed images within 24 hours, before their links expire.

შეზღუდვები და გასათვალისწინებელი საკითხები

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

  • Generated image links expire after 24 hours.

  • Reference images plus requested generated images must total no more than 15.

seedream-4-0 API-ის ხშირად დასმული კითხვები

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

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

How do I call seedream-4-0 through the API?

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

Does seedream-4-0 support image editing?

Yes, it supports image-to-image generation and image editing through image_urls. References can be publicly accessible image URLs or complete base64 Data URIs in JPEG or PNG format.

What resolutions and aspect ratios are supported?

Supported resolutions are 1K, 2K, and 4K, with 2K as the default. Aspect ratios include square, landscape, portrait, ultra-wide, and ultra-tall options; auto matches a reference image’s aspect ratio when image_urls is provided.

What are the prompt and reference image limits?

Prompts support up to 1000 characters, and reference images plus generated outputs 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-0 images commercially?

Commercial use is subject to the provider’s terms. Review those terms for your intended use; the supplied documentation does not specify commercial licensing rights.

მსგავსი მოდელები

ByteDanceსურათი

seedream-4-5

სურათების გენერაცია
$0.0286 თითო სურათზე
ოფიციალურ ფასზე 18%-ით ნაკლები
ByteDanceსურათი

seedream-5-0-flash

სურათების გენერაცია
$0.01584 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
ByteDanceსურათი

seedream-5-0-lite

სურათების გენერაცია
$0.0308 თითო სურათზე
ByteDanceსურათი

seedream-5-0-pro

სურათების გენერაცია
$0.0396 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
ByteDanceსურათი

seedream-5-5

სურათების გენერაცია
$0.0308 თითო სურათზე
ოფიციალურ ფასზე 4%-ით ნაკლები
Alibabaსურათი

qwen-image-2.0

სურათების გენერაცია
$0.022 თითო სურათზე
ოფიციალურ ფასზე 37%-ით ნაკლები
Alibabaსურათი

qwen-image-2.0-pro

სურათების გენერაცია
$0.055 თითო სურათზე
ოფიციალურ ფასზე 27%-ით ნაკლები
Alibabaსურათი

qwen-image-3.0

სურათების გენერაცია
$0.02263 თითო სურათზე
ოფიციალურ ფასზე 9%-ით ნაკლები
არჩევანი: 250+ მოდელი · მინიმალური შევსება $50

დაიწყეთ seedream-4-0-ით შექმნა

ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.