API endpoint:
http://blockstar.vision/api/v1/images
Request example:
curl --location --request GET 'http://blockstar.vision/api/v1/images' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
for Name. Defaults to: name
.resolution
1024x1024
for 1024×1024, 1792x1024
for 1792×1024, 1024x1792
for 1024×1792.style
vivid
for Vivid, natural
for Natural.favorite
sort_by
id
for Date created, name
for Name. Defaults to: id
.sort
desc
for Descending, asc
for Ascending. Defaults to: desc
.per_page
10
, 25
, 50
, 100
. Defaults to: 10
.API endpoint:
http://blockstar.vision/api/v1/images/{id}
Request example:
curl --location --request GET 'http://blockstar.vision/api/v1/images/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
http://blockstar.vision/api/v1/images
Request example:
curl --location --request POST 'http://blockstar.vision/api/v1/images' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}' \ --data-urlencode 'description={description}'
name
description
resolution
1024x1024
for 1024×1024, 1792x1024
for 1792×1024, 1024x1792
for 1024×1792.style
vivid
for Vivid, natural
for Natural.API endpoint:
http://blockstar.vision/api/v1/images/{id}
Request example:
curl --location --request PUT 'http://blockstar.vision/api/v1/images/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
name
favorite
API endpoint:
http://blockstar.vision/api/v1/images/{id}
Request example:
curl --location --request DELETE 'http://blockstar.vision/api/v1/images/{id}' \ --header 'Authorization: Bearer {api_key}'