Seedream 5.0 lite
curl --request POST \
--url https://api.highwayapi.ai/v3/seedream-5.0-lite \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"size": "<string>",
"image": [
"<string>"
],
"prompt": "<string>",
"watermark": true,
"optimize_prompt_options": {
"mode": "<string>"
},
"sequential_image_generation": "<string>",
"sequential_image_generation_options": {
"max_images": 123
}
}
'import requests
url = "https://api.highwayapi.ai/v3/seedream-5.0-lite"
payload = {
"size": "<string>",
"image": ["<string>"],
"prompt": "<string>",
"watermark": True,
"optimize_prompt_options": { "mode": "<string>" },
"sequential_image_generation": "<string>",
"sequential_image_generation_options": { "max_images": 123 }
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
size: '<string>',
image: ['<string>'],
prompt: '<string>',
watermark: true,
optimize_prompt_options: {mode: '<string>'},
sequential_image_generation: '<string>',
sequential_image_generation_options: {max_images: 123}
})
};
fetch('https://api.highwayapi.ai/v3/seedream-5.0-lite', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.highwayapi.ai/v3/seedream-5.0-lite",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'size' => '<string>',
'image' => [
'<string>'
],
'prompt' => '<string>',
'watermark' => true,
'optimize_prompt_options' => [
'mode' => '<string>'
],
'sequential_image_generation' => '<string>',
'sequential_image_generation_options' => [
'max_images' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.highwayapi.ai/v3/seedream-5.0-lite"
payload := strings.NewReader("{\n \"size\": \"<string>\",\n \"image\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"watermark\": true,\n \"optimize_prompt_options\": {\n \"mode\": \"<string>\"\n },\n \"sequential_image_generation\": \"<string>\",\n \"sequential_image_generation_options\": {\n \"max_images\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.highwayapi.ai/v3/seedream-5.0-lite")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"size\": \"<string>\",\n \"image\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"watermark\": true,\n \"optimize_prompt_options\": {\n \"mode\": \"<string>\"\n },\n \"sequential_image_generation\": \"<string>\",\n \"sequential_image_generation_options\": {\n \"max_images\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/seedream-5.0-lite")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"size\": \"<string>\",\n \"image\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"watermark\": true,\n \"optimize_prompt_options\": {\n \"mode\": \"<string>\"\n },\n \"sequential_image_generation\": \"<string>\",\n \"sequential_image_generation_options\": {\n \"max_images\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"images": [
"<string>"
]
}图像
Seedream 5.0 lite
POST
/
v3
/
seedream-5.0-lite
Seedream 5.0 lite
curl --request POST \
--url https://api.highwayapi.ai/v3/seedream-5.0-lite \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"size": "<string>",
"image": [
"<string>"
],
"prompt": "<string>",
"watermark": true,
"optimize_prompt_options": {
"mode": "<string>"
},
"sequential_image_generation": "<string>",
"sequential_image_generation_options": {
"max_images": 123
}
}
'import requests
url = "https://api.highwayapi.ai/v3/seedream-5.0-lite"
payload = {
"size": "<string>",
"image": ["<string>"],
"prompt": "<string>",
"watermark": True,
"optimize_prompt_options": { "mode": "<string>" },
"sequential_image_generation": "<string>",
"sequential_image_generation_options": { "max_images": 123 }
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
size: '<string>',
image: ['<string>'],
prompt: '<string>',
watermark: true,
optimize_prompt_options: {mode: '<string>'},
sequential_image_generation: '<string>',
sequential_image_generation_options: {max_images: 123}
})
};
fetch('https://api.highwayapi.ai/v3/seedream-5.0-lite', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.highwayapi.ai/v3/seedream-5.0-lite",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'size' => '<string>',
'image' => [
'<string>'
],
'prompt' => '<string>',
'watermark' => true,
'optimize_prompt_options' => [
'mode' => '<string>'
],
'sequential_image_generation' => '<string>',
'sequential_image_generation_options' => [
'max_images' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.highwayapi.ai/v3/seedream-5.0-lite"
payload := strings.NewReader("{\n \"size\": \"<string>\",\n \"image\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"watermark\": true,\n \"optimize_prompt_options\": {\n \"mode\": \"<string>\"\n },\n \"sequential_image_generation\": \"<string>\",\n \"sequential_image_generation_options\": {\n \"max_images\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.highwayapi.ai/v3/seedream-5.0-lite")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"size\": \"<string>\",\n \"image\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"watermark\": true,\n \"optimize_prompt_options\": {\n \"mode\": \"<string>\"\n },\n \"sequential_image_generation\": \"<string>\",\n \"sequential_image_generation_options\": {\n \"max_images\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/seedream-5.0-lite")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"size\": \"<string>\",\n \"image\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"watermark\": true,\n \"optimize_prompt_options\": {\n \"mode\": \"<string>\"\n },\n \"sequential_image_generation\": \"<string>\",\n \"sequential_image_generation_options\": {\n \"max_images\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"images": [
"<string>"
]
}根据输入的文本提示词和/或参考图片生成图像。支持生成单图或组图(一组内容关联的图片)。
请求头
枚举值:
application/jsonBearer 身份验证格式: Bearer {{API 密钥}}。
请求体
指定生成图像的尺寸信息。方式1:指定分辨率(2K、3K);方式2:指定宽高像素值(如2048x2048)。总像素取值范围:[2560x1440=3686400, 3072x3072x1.1025=10404496],宽高比取值范围:[1/16, 16]。
输入的图片信息数组,支持 URL 或 Base64 编码。最多支持传入 14 张参考图。图片格式支持 jpeg、png、webp、bmp、tiff、gif。数组长度:1 - 14
用于生成图像的提示词,支持中英文。建议不超过300个汉字或600个英文单词。
是否在生成的图片中添加水印。
提示词优化功能的配置。
隐藏 properties
隐藏 properties
设置提示词优化功能使用的模式。standard:标准模式,质量更高,耗时较长;fast:快速模式,耗时更短,质量一般。当前仅支持 standard 模式。可选值:
standard控制是否关闭组图功能。auto:自动判断模式,模型会根据提示词自主判断是否返回组图;disabled:关闭组图功能,只生成一张图。可选值:
auto, disabled组图功能的配置。仅当 sequential_image_generation 为 auto 时生效。
隐藏 properties
隐藏 properties
指定本次请求最多可生成的图片数量。输入的参考图数量+最终生成的图片数量≤15张。取值范围:[1, 15]
响应信息
生成的图片信息数组。
⌘I