悠船开放平台 (1.1.0)

Download OpenAPI description
Languages
Servers
https://ali.youchuan.cn/

图片生成

悠船AI图片生成接口,包括文生图、图生图、背景移除等功能(需提供有效的授权信息)

Operations

账户管理

悠船账户管理相关接口,包括费用查询、用量统计等功能(需提供有效的授权信息)

Operations

Moodboard

悠船灵感看板管理接口,支持创建、更新和获取Moodboard(需提供有效的授权信息)

Operations

创建Moodboard

Request

Headers
x-youchuan-secretstringrequired
Example: {{x-youchuan-secret}}
x-youchuan-appstringrequired
Example: {{x-youchuan-app}}
Bodyapplication/jsonrequired

CreateMoodboardReq

imagesArray of stringsrequired

图片URL数组, 最多500张图片

tagstring

用于标识(非必需,默认同id)

curl -i -X POST \
  https://ali.youchuan.cn/v1/tob/moodboard \
  -H 'Content-Type: application/json' \
  -H 'x-youchuan-app: YOUR_API_KEY_HERE' \
  -H 'x-youchuan-secret: YOUR_API_KEY_HERE' \
  -d '{
    "images": [
      "string"
    ],
    "tag": "string"
  }'

Responses

A successful response.

Bodyapplication/json
createdAtstring(date-time)
idstring

moodboard id, 可在生图任务中以--p方式引用

imagesArray of strings

图片URL数组, 最多30张图片

tagstring

用于标识(非必需)

updatedAtstring(date-time)
Response
application/json
{ "createdAt": "2019-08-24T14:15:22Z", "id": "string", "images": [ "string" ], "tag": "string", "updatedAt": "2019-08-24T14:15:22Z" }

更新Moodboard

Request

Path
idstringrequired

moodboard id, 可在生图任务中以--p方式引用

Headers
x-youchuan-secretstringrequired
Example: {{x-youchuan-secret}}
x-youchuan-appstringrequired
Example: {{x-youchuan-app}}
Bodyapplication/jsonrequired

UpdateMoodboardReq

imagesArray of stringsrequired

图片URL数组, 最多30张图片

tagstring

用于标识

curl -i -X PUT \
  'https://ali.youchuan.cn/v1/tob/moodboard/{id}' \
  -H 'Content-Type: application/json' \
  -H 'x-youchuan-app: YOUR_API_KEY_HERE' \
  -H 'x-youchuan-secret: YOUR_API_KEY_HERE' \
  -d '{
    "images": [
      "string"
    ],
    "tag": "string"
  }'

Responses

A successful response.

Bodyapplication/json
createdAtstring(date-time)
idstring

moodboard id, 可在生图任务中以--p方式引用

imagesArray of strings

图片URL数组, 最多30张图片

tagstring

用于标识(非必需)

updatedAtstring(date-time)
Response
application/json
{ "createdAt": "2019-08-24T14:15:22Z", "id": "string", "images": [ "string" ], "tag": "string", "updatedAt": "2019-08-24T14:15:22Z" }

获取Moodboard列表

Request

Query
pageNointeger(int64)required

页码[1-1000]

pageSizeinteger(int64)required

每页数据量[1-500]

Headers
x-youchuan-secretstringrequired
Example: {{x-youchuan-secret}}
x-youchuan-appstringrequired
Example: {{x-youchuan-app}}
curl -i -X GET \
  'https://ali.youchuan.cn/v1/tob/moodboards?pageNo=0&pageSize=0' \
  -H 'x-youchuan-app: YOUR_API_KEY_HERE' \
  -H 'x-youchuan-secret: YOUR_API_KEY_HERE'

Responses

A successful response.

Bodyapplication/json
moodboardsArray of objects(v1Moodboard)
pageNointeger(int64)
Response
application/json
{ "moodboards": [ {} ], "pageNo": 0 }

视频生成

悠船AI视频生成接口,包括视频生成、视频编辑等功能(需提供有效的授权信息)

Operations