For the complete documentation index, see llms.txt. This page is also available as Markdown.

Seedream 5.0 Pro

This documentation is valid for the following list of our models:

  • bytedance/dola-seedream-5-0-pro

Model Overview

Seedream 5.0 Pro is ByteDance flagship text-to-image model with high-resolution output up to 2048x2048 (up to ~2.7K at 16:9) and multi-image reference support.

How to make the first API call

1️⃣ Required setup (don’t skip this)Create an account: Sign up on the AI/ML API website (if you don’t have one yet). ▪ Generate an API key: In your account dashboard, create an API key and make sure it’s enabled in the UI.

2️ Copy the code example At the bottom of this page, pick the snippet for your preferred programming language (Python / Node.js) and copy it into your project.

3️ Update the snippet for your use caseInsert your API key: replace <YOUR_AIMLAPI_KEY> with your real AI/ML API key. ▪ Select a model: set the model field to the model you want to call. ▪ Provide input: fill in the request input field(s) shown in the example.

4️ (Optional) Tune the request See the API schema below for optional generation settings.

5️ Run your code Run the updated code in your development environment.

API Schema

post
Body
modelstring · enumRequiredPossible values:
promptstringRequired

The text prompt describing the content, style, or composition of the image to be generated.

image_urlsstring · uri[] · min: 1 · max: 14Optional

List of URLs or local Base64 encoded images to edit.

image_sizeany ofOptional

The size of the generated image.

Default: 1.5K
or
string · enumOptionalPossible values:
response_formatstring · enumOptional

The format in which the generated images are returned.

Default: urlPossible values:
seedintegerOptional

The same seed and the same prompt given to the same version of the model will output the same image every time.

watermarkbooleanOptional

Add an invisible watermark to the generated images.

Default: false
Responses
200

Successful response.

application/json
post/v1/images/generations
200

Successful response.

Code Example

Response

Last updated

Was this helpful?