특정 이미지 메타데이터 조회
curl --request GET \
--url http://localhost:4010/api/images/{id} \
--header 'X-Api-Key: <api-key>'import requests
url = "http://localhost:4010/api/images/{id}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('http://localhost:4010/api/images/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4010",
CURLOPT_URL => "http://localhost:4010/api/images/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4010/api/images/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:4010/api/images/{id}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4010/api/images/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"imageId": 123,
"creditCost": 123,
"createdAt": "2023-11-07T05:31:56Z",
"generationStatus": "COMPLETED",
"generationError": "<string>",
"resolution": "512x512",
"ownerId": 123,
"bookmarked": true,
"Owner": {
"name": "<string>",
"profileImage": "<string>"
},
"Upscaled": [
{
"imageId": 123,
"scaleSize": [
"1x",
"2x",
"4x",
"8x"
],
"Image": {
"imageId": 123,
"ownerId": 123
}
}
],
"DownloadLog": [
{
"imageId": 123,
"userId": 123
}
],
"CollectionInfo": {
"enabled": true,
"is2x": true,
"CollectionEnTags": [
{
"title": "<string>"
}
],
"CollectionKoTags": [
{
"title": "<string>"
}
],
"Style": {
"main": "DIG",
"mainText": "<string>"
},
"Theme": [
{
"code": "TURTLE",
"nameText": "Business"
}
],
"promptText": "<string>"
},
"GenerationInfo": {
"blurReason": "<string>"
},
"UpscaleInfo": {
"imageId": 123,
"scaleSize": [
"1x",
"2x",
"4x",
"8x"
],
"Image": {
"imageId": 123,
"ownerId": 123
}
},
"Bought": [
{
"imageId": 123,
"scaleSize": [
"1x",
"2x",
"4x",
"8x"
],
"Image": {
"imageId": 123,
"DownloadLog": [
{
"userId": 123
}
]
}
}
],
"Likes": [
{
"likeId": 123,
"userId": 123,
"imageId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"platform": "<string>"
}
],
"Dislikes": [
{
"dislikeId": 123,
"userId": 123,
"imageId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"platform": "<string>"
}
]
}images
특정 이미지 메타데이터 조회
GET
/
api
/
images
/
{id}
특정 이미지 메타데이터 조회
curl --request GET \
--url http://localhost:4010/api/images/{id} \
--header 'X-Api-Key: <api-key>'import requests
url = "http://localhost:4010/api/images/{id}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('http://localhost:4010/api/images/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4010",
CURLOPT_URL => "http://localhost:4010/api/images/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4010/api/images/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:4010/api/images/{id}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4010/api/images/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"imageId": 123,
"creditCost": 123,
"createdAt": "2023-11-07T05:31:56Z",
"generationStatus": "COMPLETED",
"generationError": "<string>",
"resolution": "512x512",
"ownerId": 123,
"bookmarked": true,
"Owner": {
"name": "<string>",
"profileImage": "<string>"
},
"Upscaled": [
{
"imageId": 123,
"scaleSize": [
"1x",
"2x",
"4x",
"8x"
],
"Image": {
"imageId": 123,
"ownerId": 123
}
}
],
"DownloadLog": [
{
"imageId": 123,
"userId": 123
}
],
"CollectionInfo": {
"enabled": true,
"is2x": true,
"CollectionEnTags": [
{
"title": "<string>"
}
],
"CollectionKoTags": [
{
"title": "<string>"
}
],
"Style": {
"main": "DIG",
"mainText": "<string>"
},
"Theme": [
{
"code": "TURTLE",
"nameText": "Business"
}
],
"promptText": "<string>"
},
"GenerationInfo": {
"blurReason": "<string>"
},
"UpscaleInfo": {
"imageId": 123,
"scaleSize": [
"1x",
"2x",
"4x",
"8x"
],
"Image": {
"imageId": 123,
"ownerId": 123
}
},
"Bought": [
{
"imageId": 123,
"scaleSize": [
"1x",
"2x",
"4x",
"8x"
],
"Image": {
"imageId": 123,
"DownloadLog": [
{
"userId": 123
}
]
}
}
],
"Likes": [
{
"likeId": 123,
"userId": 123,
"imageId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"platform": "<string>"
}
],
"Dislikes": [
{
"dislikeId": 123,
"userId": 123,
"imageId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"platform": "<string>"
}
]
}Authorizations
Path Parameters
Image ID(이미지 ID)
Response
이미지 메타데이터
ID(아이디)
Credit Cost(크레딧 소모량)
Creation Date(생성 일시)
Generation Status(생성 상태)
Available options:
PENDING, COMPLETED, FAILED Generation Error(생성 에러 메시지)
Resolution(해상도)
Pattern:
/\d{3,4}x\d{3,4}/Example:
"512x512"
Owner ID(소유자 아이디)
북마크 여부
오너정보
Show child attributes
Show child attributes
Show child attributes
Show child attributes
다운로드 로그
Show child attributes
Show child attributes
컬렉션 정보
Show child attributes
Show child attributes
생성 정보
Show child attributes
Show child attributes
업스케일 정보
Show child attributes
Show child attributes
구매 관련 정보
Show child attributes
Show child attributes
Like Information(좋아요 정보(좋아요 눌렀으면 내 아이디 객체 들어있음))
Show child attributes
Show child attributes
Dislike Information(싫어요 정보(싫어요 눌렀으면 내 아이디 객체 들어있음))
Show child attributes
Show child attributes
⌘I