Skip to Content
Image ModelsSeedream 4.5

Seedream 4.5

Overview

Seedream 4.5 is ByteDance’s latest image generation model, featuring superior image quality and detail rendering. It supports both Text-to-Image and Image-to-Image generation with up to 4K resolution output.

Test API KEY: key_00000000000000000000000000000000

Endpoints

1. Create Task

Request

POST https://api.pixwith.ai/api/task/create

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Api-Key{API_KEY}Yes

Request Parameters

ParameterTypeRequiredDescription
promptstringYesThe input prompt (e.g., “a futuristic cyberpunk city at night”)
image_urlsarrayConditional[“https://cdn.pixwith.ai/xxx.jpg ”]. Provide 1-4 images for Image-to-Image mode.
model_idstringYes0-32
optionsobjectYesConfiguration options for the task
options.prompt_optimizationbooleanYesIf true, all prompt words will be automatically translated into English.
options.num_outputsintNoNumber of images to generate. Valid values: 1 to 4. Default: 1.
options.resolutionstringYesOutput resolution. Valid values: '2K', '4K'. Default: '2K'.
options.aspect_ratiostringYesAspect ratio of the output. Valid values: '1:1' (Default), '3:4', '4:3', '2:3', '3:2', '16:9', '9:16', '21:9'.

Example Request - Text-to-Image

{ "prompt": "a futuristic cyberpunk city at night", "model_id": "0-32", "options": { "prompt_optimization": true, "num_outputs": 1, "resolution": "2K", "aspect_ratio": "16:9" } }

Example Request - Image-to-Image

{ "prompt": "transform into anime style", "image_urls": ["https://cdn.pixwith.ai/example.jpg"], "model_id": "0-32", "options": { "prompt_optimization": true, "num_outputs": 1, "resolution": "4K", "aspect_ratio": "1:1" } }

Response Parameters

ParameterTypeDescription
codeint1=success, 0=error
messagestringSuccess and failure messages
dataobject
data.task_idstring
data.estimated_timeintEstimated time in seconds

Response

{ "code": 1, "message": "success", "data": { "task_id": "d425ab4dc256f0ebaa84862b9cea8a3d", "estimated_time": 20 } }

Credits

ResolutionCredits per Image
2K6
4K6
Last updated on