火山引擎 图片超分
curl --request POST \
--url https://api.omnimux.ai/v1/images/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "volc-image-upscale",
"image": "https://example.com/sample.png"
}
'import requests
url = "https://api.omnimux.ai/v1/images/edits"
payload = {
"model": "volc-image-upscale",
"image": "https://example.com/sample.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({model: 'volc-image-upscale', image: 'https://example.com/sample.png'})
};
fetch('https://api.omnimux.ai/v1/images/edits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omnimux.ai/v1/images/edits"
payload := strings.NewReader("{\n \"model\": \"volc-image-upscale\",\n \"image\": \"https://example.com/sample.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))
}{
"created": 1727740800,
"data": [
{
"url": "https://visual.volcengine.com/upscaled_result_2x.png"
}
]
}火山引擎
火山引擎 图片超分
将一张已有图片的宽与高各放大至原来的两倍,无需提示词。
POST
/
v1
/
images
/
edits
火山引擎 图片超分
curl --request POST \
--url https://api.omnimux.ai/v1/images/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "volc-image-upscale",
"image": "https://example.com/sample.png"
}
'import requests
url = "https://api.omnimux.ai/v1/images/edits"
payload = {
"model": "volc-image-upscale",
"image": "https://example.com/sample.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({model: 'volc-image-upscale', image: 'https://example.com/sample.png'})
};
fetch('https://api.omnimux.ai/v1/images/edits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omnimux.ai/v1/images/edits"
payload := strings.NewReader("{\n \"model\": \"volc-image-upscale\",\n \"image\": \"https://example.com/sample.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))
}{
"created": 1727740800,
"data": [
{
"url": "https://visual.volcengine.com/upscaled_result_2x.png"
}
]
}将一张已有图片的宽与高各放大至原来的两倍,无需提示词。仅提供 API 接入。
规格约束
| 项目 | 规范 |
|---|---|
| 模型标识 | volc-image-upscale |
| 输入来源 | 输入为一张免鉴权的公网 HTTPS 图片 URL。OmniMux API 请求仍需鉴权。 |
| 支持格式 | 支持 JPG、JPEG、PNG、BMP 图片。 |
| 文件大小 | 文件大小不超过 5 MB。 |
| 输入尺寸 | 输入图片宽度为 50 至 2128 像素,高度为 50 至 4064 像素,均含边界。 |
| 放大倍率 | 仅支持固定两倍超分,不支持文生图、遮罩、多图或自定义输出尺寸。 |
| 结果有效期 | 上游结果 URL 有效期为 24 小时,不保证永久可访问。 |
计费说明
- 官方刊例价格:0.006 元/次。
- 计费模式:固定按次计费(UsePrice)。
- 结算保护:上游服务异常、超时或返回空结果时,预扣额度将 100% 自动退回。
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json