Submit Seedream 5.0 Pro task
curl --request POST \
--url https://api.wizzx.ai/api/v1/task/submit/seedream-5-pro \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A bilingual coffee shop menu board with clean typography",
"aspect_ratio": "3:4",
"resolution": "1.5K",
"output_format": "png"
}
'import requests
url = "https://api.wizzx.ai/api/v1/task/submit/seedream-5-pro"
payload = {
"prompt": "A bilingual coffee shop menu board with clean typography",
"aspect_ratio": "3:4",
"resolution": "1.5K",
"output_format": "png"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'A bilingual coffee shop menu board with clean typography',
aspect_ratio: '3:4',
resolution: '1.5K',
output_format: 'png'
})
};
fetch('https://api.wizzx.ai/api/v1/task/submit/seedream-5-pro', 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.wizzx.ai/api/v1/task/submit/seedream-5-pro",
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([
'prompt' => 'A bilingual coffee shop menu board with clean typography',
'aspect_ratio' => '3:4',
'resolution' => '1.5K',
'output_format' => 'png'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.wizzx.ai/api/v1/task/submit/seedream-5-pro"
payload := strings.NewReader("{\n \"prompt\": \"A bilingual coffee shop menu board with clean typography\",\n \"aspect_ratio\": \"3:4\",\n \"resolution\": \"1.5K\",\n \"output_format\": \"png\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.wizzx.ai/api/v1/task/submit/seedream-5-pro")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"A bilingual coffee shop menu board with clean typography\",\n \"aspect_ratio\": \"3:4\",\n \"resolution\": \"1.5K\",\n \"output_format\": \"png\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wizzx.ai/api/v1/task/submit/seedream-5-pro")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"A bilingual coffee shop menu board with clean typography\",\n \"aspect_ratio\": \"3:4\",\n \"resolution\": \"1.5K\",\n \"output_format\": \"png\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_key": "<string>",
"credits_deducted": 1,
"provider_task_id": "<string>",
"provider_key": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}图像生成
提交 Seedream 5.0 Pro 任务
POST Seedream 5.0 Pro 图片生成或单参考图编辑任务
POST
/
api
/
v1
/
task
/
submit
/
seedream-5-pro
Submit Seedream 5.0 Pro task
curl --request POST \
--url https://api.wizzx.ai/api/v1/task/submit/seedream-5-pro \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A bilingual coffee shop menu board with clean typography",
"aspect_ratio": "3:4",
"resolution": "1.5K",
"output_format": "png"
}
'import requests
url = "https://api.wizzx.ai/api/v1/task/submit/seedream-5-pro"
payload = {
"prompt": "A bilingual coffee shop menu board with clean typography",
"aspect_ratio": "3:4",
"resolution": "1.5K",
"output_format": "png"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'A bilingual coffee shop menu board with clean typography',
aspect_ratio: '3:4',
resolution: '1.5K',
output_format: 'png'
})
};
fetch('https://api.wizzx.ai/api/v1/task/submit/seedream-5-pro', 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.wizzx.ai/api/v1/task/submit/seedream-5-pro",
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([
'prompt' => 'A bilingual coffee shop menu board with clean typography',
'aspect_ratio' => '3:4',
'resolution' => '1.5K',
'output_format' => 'png'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.wizzx.ai/api/v1/task/submit/seedream-5-pro"
payload := strings.NewReader("{\n \"prompt\": \"A bilingual coffee shop menu board with clean typography\",\n \"aspect_ratio\": \"3:4\",\n \"resolution\": \"1.5K\",\n \"output_format\": \"png\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.wizzx.ai/api/v1/task/submit/seedream-5-pro")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"A bilingual coffee shop menu board with clean typography\",\n \"aspect_ratio\": \"3:4\",\n \"resolution\": \"1.5K\",\n \"output_format\": \"png\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wizzx.ai/api/v1/task/submit/seedream-5-pro")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"A bilingual coffee shop menu board with clean typography\",\n \"aspect_ratio\": \"3:4\",\n \"resolution\": \"1.5K\",\n \"output_format\": \"png\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_key": "<string>",
"credits_deducted": 1,
"provider_task_id": "<string>",
"provider_key": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}提交任务
prompt 必填。图片生成时省略 image_urls;图片编辑时传入恰好 1 个 HTTP(S) URL 或 base64 data URI(JPEG、PNG、WebP)。resolution 可选 1K(默认)、1.5K、2K;output_format 可选 jpeg(默认)或 png。每个被接受的请求生成一张图片。
curl --fail-with-body --silent --show-error \
-X POST https://api.wizzx.ai/api/v1/task/submit/seedream-5-pro \
-H "Authorization: Bearer <api_key>" \
-H "Content-Type: application/json" \
--data '{
"prompt": "中英双语咖啡店菜单板,排版简洁",
"aspect_ratio": "3:4",
"resolution": "1.5K",
"output_format": "png"
}'
resolution 每张计费:1K = 44、1.5K = 44、2K = 89 积分。aspect_ratio、output_format 与参考图不影响价格。具体积分以 /pricing 为准。授权
Wizzx API key. This is not a JWT.
请求体
application/json
Omit image_urls for text-to-image or provide exactly one reference image for editing. One image per request. Billed per image by resolution; 1.5K costs the same as 1K. aspect_ratio, output_format, and the reference image do not change the price.
Required prompt, at most 4000 Unicode characters.
Required string length:
1 - 4000Maximum array length:
1HTTP(S) URL or base64 data URI. JPEG, PNG, or WebP only.
Pattern:
^(https?://|data:image/(jpeg|png|webp);base64,)可用选项:
auto, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 2:1, 1:2, 21:9 Case-insensitive. Billed per image: 1K = 44, 1.5K = 44, 2K = 89 credits.
可用选项:
1K, 1.5K, 2K 可用选项:
jpeg, png 此页面对您有帮助吗?
