POST
/
openapi
/
v2
/
aigc
/
image
/
seedream-4.0
/
create
Bytedance Seedream 4.0
curl --request POST \
  --url https://castar.world/openapi/v2/aigc/image/seedream-4.0/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "model": "seedream-4.0",
  "prompt": "<string>",
  "aspectRatio": "1:1",
  "resolution": "Standard",
  "images": [
    "<string>"
  ]
}
'
{
  "id": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
model
enum<string>
required
Available options:
seedream-4.0
prompt
string
required
Minimum string length: 1
aspectRatio
enum<string>
required
Available options:
1:1,
3:2,
2:3,
3:4,
4:3,
9:16,
16:9,
21:9
resolution
enum<string>
default:Standard
Available options:
Standard,
High,
Ultra
images
string[]
Maximum array length: 10

Response

200 - application/json

Default Response

id
string
required