Precision V2로 이미지 업스케일링
curl --request POST \
--url https://api.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image": "<string>",
"scale_factor": 9,
"sharpen": 7,
"smart_grain": 7,
"ultra_detail": 30,
"webhook_url": "<string>"
}
'import requests
url = "https://api.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2"
payload = {
"image": "<string>",
"scale_factor": 9,
"sharpen": 7,
"smart_grain": 7,
"ultra_detail": 30,
"webhook_url": "<string>"
}
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({
image: '<string>',
scale_factor: 9,
sharpen: 7,
smart_grain: 7,
ultra_detail: 30,
webhook_url: '<string>'
})
};
fetch('https://api.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2', 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.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2",
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([
'image' => '<string>',
'scale_factor' => 9,
'sharpen' => 7,
'smart_grain' => 7,
'ultra_detail' => 30,
'webhook_url' => '<string>'
]),
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.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2"
payload := strings.NewReader("{\n \"image\": \"<string>\",\n \"scale_factor\": 9,\n \"sharpen\": 7,\n \"smart_grain\": 7,\n \"ultra_detail\": 30,\n \"webhook_url\": \"<string>\"\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.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"image\": \"<string>\",\n \"scale_factor\": 9,\n \"sharpen\": 7,\n \"smart_grain\": 7,\n \"ultra_detail\": 30,\n \"webhook_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2")
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 \"image\": \"<string>\",\n \"scale_factor\": 9,\n \"sharpen\": 7,\n \"smart_grain\": 7,\n \"ultra_detail\": 30,\n \"webhook_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"generated": [
"<string>"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Freepik
Precision V2로 이미지 업스케일링
이미지를 업스케일링하고 동시에 새로운 시각적 요소 또는 세부 정보를 추가합니다(V2). 이 엔드포인트는 프롬프트와 추론된 컨텍스트에 따라 원본 이미지 콘텐츠를 수정할 수 있습니다. 제출 시 고유한 task_id를 반환하며, 이를 통해 진행 상황을 추적할 수 있습니다.
POST
/
proxy
/
freepik
/
v1
/
ai
/
image-upscaler-precision-v2
Precision V2로 이미지 업스케일링
curl --request POST \
--url https://api.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image": "<string>",
"scale_factor": 9,
"sharpen": 7,
"smart_grain": 7,
"ultra_detail": 30,
"webhook_url": "<string>"
}
'import requests
url = "https://api.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2"
payload = {
"image": "<string>",
"scale_factor": 9,
"sharpen": 7,
"smart_grain": 7,
"ultra_detail": 30,
"webhook_url": "<string>"
}
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({
image: '<string>',
scale_factor: 9,
sharpen: 7,
smart_grain: 7,
ultra_detail: 30,
webhook_url: '<string>'
})
};
fetch('https://api.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2', 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.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2",
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([
'image' => '<string>',
'scale_factor' => 9,
'sharpen' => 7,
'smart_grain' => 7,
'ultra_detail' => 30,
'webhook_url' => '<string>'
]),
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.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2"
payload := strings.NewReader("{\n \"image\": \"<string>\",\n \"scale_factor\": 9,\n \"sharpen\": 7,\n \"smart_grain\": 7,\n \"ultra_detail\": 30,\n \"webhook_url\": \"<string>\"\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.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"image\": \"<string>\",\n \"scale_factor\": 9,\n \"sharpen\": 7,\n \"smart_grain\": 7,\n \"ultra_detail\": 30,\n \"webhook_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comfy.org/proxy/freepik/v1/ai/image-upscaler-precision-v2")
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 \"image\": \"<string>\",\n \"scale_factor\": 9,\n \"sharpen\": 7,\n \"smart_grain\": 7,\n \"ultra_detail\": 30,\n \"webhook_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"generated": [
"<string>"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}인증
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
본문
application/json
업스케일할 소스 이미지입니다. 다음 중 하나를 허용합니다:
- 이미지를 가리키는 공개적으로 접근 가능한 HTTPS URL
- base64로 인코딩된 이미지 문자열
이미지 처리 종류:
- sublime: 예술적 및 일러스트 이미지에 최적화
- photo: 사진 이미지에 최적화
- photo_denoiser: 노이즈 감소가 적용된 사진에 특화
사용 가능한 옵션:
sublime, photo, photo_denoiser 이미지 크기 조절 비율입니다. 출력이 입력에 비해 얼마나 더 커질지 결정합니다.
필수 범위:
2 <= x <= 16이미지 선명도 강도 제어입니다. 값이 높을수록 가장자리 정의와 선명도가 증가합니다.
필수 범위:
0 <= x <= 100지능형 입자/텍스처 향상. 값이 높을수록 더 세밀한 텍스처가 추가됩니다.
필수 범위:
0 <= x <= 100초고해상도 세부 정보 향상 수준. 값이 높을수록 더 복잡한 세부 정보를 생성합니다.
필수 범위:
0 <= x <= 100업스케일링 작업이 완료될 때 비동기 알림을 수신하는 선택적 콜백 URL입니다.
응답
OK - 업스케일링 프로세스가 시작되었습니다.
Show child attributes
Show child attributes
⌘I