More modelsBytedancePortrait
Generate image with bytedance/portrait
Generates an image using the bytedance/portrait model.
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
imagestring
The image to edit, can be a URL or base64 encoded image.
promptstring
The editing instruction describing the desired changes to the image.
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.
Default
false
Response Body
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \ -H "Content-Type: application/json" \ -d '{ "model": "bytedance/portrait", "image": "https://static.atlascloud.ai/media/images/1751365236608960947_3e830WTP.jpeg", "prompt": "An extremely mundane iphone selfie with no clear subject or sense of composition, the image is a somewhat poorly held motion blur, and the Luffy cosplayer who is cosplaying with a straw hat" }'
{
"id": "string",
"urls": {},
"model": "string",
"status": "string",
"outputs": [
"string"
],
"created_at": "2019-08-24T14:15:22Z",
"has_nsfw_contents": [
true
]
}