More modelsBytedanceSeedream v3.1

Generate image with bytedance/seedream-v3.1

Generates an image using the bytedance/seedream-v3.1 model.

POST
/api/v1/model/generateImage
AuthorizationBearer <token>

API key is required to authorize requests. Obtain a key from your AtlasCloud dashboard.

In: header

modelstring

model name

seed?integer

The random seed to use for the generation. -1 means a random seed will be used.

Default-1
size?string

The size of the generated media in pixels (width*height).

Range512 <= value <= 2048
promptstring

Prompts for generating images can be entered in either Chinese or English. It is recommended to keep the length ≤ 120 characters, with a maximum limit of 800 characters. If the prompt is too long, there is a chance of errors or failure to generate the image.

enable_sync_mode?boolean

If set to true, the function will wait for the image to be generated and uploaded before returning the response. It allows you to get the image directly in the response. This property is only available through the API.

Defaultfalse
enable_base64_output?boolean

If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Defaultfalse
enable_prompt_expansion?boolean

If set to true, the function will wait for the image to be generated and uploaded before returning the response. It allows you to get the image directly in the response. This property is only available through the API.

Defaulttrue

Response Body

curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \  -H "Content-Type: application/json" \  -d '{    "model": "bytedance/seedream-v3.1",    "prompt": "string"  }'
{
  "id": "string",
  "urls": {},
  "model": "string",
  "status": "string",
  "outputs": [
    "string"
  ],
  "created_at": "2019-08-24T14:15:22Z",
  "has_nsfw_contents": [
    true
  ]
}