Images
Generate an image
Generates an image from a text prompt via the image generation router
post/images
Request body
Example request
{
"model": "bytedance-seed/seedream-4.5",
"prompt": "a red panda astronaut floating in space, studio lighting"
}Response
Image generation response
Example response
{
"created": 1748372400,
"data": [
{
"b64_json": "<base64-encoded-image>"
}
],
"usage": {
"completion_tokens": 4175,
"cost": 0.04,
"prompt_tokens": 0,
"total_tokens": 4175
}
}