API端点:
https://service.9020blog.com/api/v1/images
请求示例:
curl --location --request GET 'https://service.9020blog.com/api/v1/images' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
。 默认为:name
。resolution
256x256
, 512×512 的 512x512
, 1024×1024 的 1024x1024
。style
3d_render
, 抽象 的 abstract
, 动漫 的 anime
, 装饰艺术 的 art_deco
, 卡通 的 cartoon
, 数码艺术 的 digital_art
, 插画 的 illustration
, 折纸艺术 的 origami
, 像素艺术 的 pixel_art
, 摄影 的 photography
, 波普艺术 的 pop_art
, 复古 的 retro
, 素描 的 sketch
, 汀波 的 vaporwave
。medium
acrylic
, 画布 的 canvas
, 粉笔 的 chalk
, 炭笔 的 charcoal
, 蜡笔 的 crayon
, 玻璃 的 glass
, 墨水 的 ink
, 粉彩 的 pastel
, 铅笔 的 pencil
, 喷漆 的 spray_paint
, 水彩 的 watercolor
。filter
grayscale
, 棕褐 的 sepia
, 反转 的 invert
。favorite
sort_by
id
, 名称 的 name
。 默认为:id
。sort
desc
, 升序 的 asc
。 默认为:desc
。per_page
10
, 25
, 50
, 100
。 默认为:10
。API端点:
https://service.9020blog.com/api/v1/images/{id}
请求示例:
curl --location --request GET 'https://service.9020blog.com/api/v1/images/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API端点:
https://service.9020blog.com/api/v1/images
请求示例:
curl --location --request POST 'https://service.9020blog.com/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
256x256
, 512×512 的 512x512
, 1024×1024 的 1024x1024
。style
3d_render
, 抽象 的 abstract
, 动漫 的 anime
, 装饰艺术 的 art_deco
, 卡通 的 cartoon
, 数码艺术 的 digital_art
, 插画 的 illustration
, 折纸艺术 的 origami
, 像素艺术 的 pixel_art
, 摄影 的 photography
, 波普艺术 的 pop_art
, 复古 的 retro
, 素描 的 sketch
, 汀波 的 vaporwave
。medium
acrylic
, 画布 的 canvas
, 粉笔 的 chalk
, 炭笔 的 charcoal
, 蜡笔 的 crayon
, 玻璃 的 glass
, 墨水 的 ink
, 粉彩 的 pastel
, 铅笔 的 pencil
, 喷漆 的 spray_paint
, 水彩 的 watercolor
。filter
grayscale
, 棕褐 的 sepia
, 反转 的 invert
。API端点:
https://service.9020blog.com/api/v1/images/{id}
请求示例:
curl --location --request PUT 'https://service.9020blog.com/api/v1/images/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
name
results
favorite
API端点:
https://service.9020blog.com/api/v1/images/{id}
请求示例:
curl --location --request DELETE 'https://service.9020blog.com/api/v1/images/{id}' \ --header 'Authorization: Bearer {api_key}'