- 无界AI企业服务
- 无界AI企业智能客服
- 更新日志
- 公告
- API接入指南
- 作画指南
- AI专业版作画
- AI普通版作画
- AI视频生视频
- AI咒语解析
- 付费开通API
- AI化身&个性相机
- 提升作画效率
- 自定义镜像
- 用户账户
- LLM对话聊天
- 实验室
同步任务提交接口
POST
https://gate.wujieai.net/wj-open/v1/task/task_create_sync
自定义镜像无界AI服务
请求参数
Body 参数application/json
task_code
integer <int32>
必需
示例值:
525
param
string <string>
必需
示例值:
{prompt:夜幕下的赛博朋克城市,width:512,height:512,supersize_multiple:1.0,prefine_multiple:1.0}
task_timeout_seconds
integer <int32>
可选
显卡中的任务等待超时时间,默认3.task_timeout_seconds + acquire_resource_timeout_seconds <= 15
示例值:
3
acquire_resource_timeout_seconds
integer <int32>
可选
示例值:
5
request_address
string <string>
可选
示例值:
/create
schedule_param
object (ScheduleParam_request)
可选
schedule_tag
string <string>
可选
会不会被公共集群处理受busyHourTransfer影响。
示例值:
tp0or9
channel_key
string <string>
通道限制key
示例值:
ssh745
schedule_tag_busy_hour_transfer
boolean
可选
为true时,会检查scheduleTag的集群如果全忙,则会去判断公共集群是否空闲,如公共集群空闲则提交到公共集群,否则依然提交到scheduleTag的集群。
如果scheduleTag对应集群是无卡状态,那也被定为忙
示例值:
true
channel_limit_count
integer <int32>
并发通道上限数量
示例值:
15
exceeding_channel_limit_throw_ex
boolean
可选
示例值:
true
示例
{"task_code":525,"param":"{"prompt":"夜幕下的赛博朋克城市","width":512,"height":512,"supersize_multiple":1.0,"prefine_multiple":1.0}","task_timeout_seconds":3,"acquire_resource_timeout_seconds":5,"request_address":"/create","schedule_param":{"schedule_tag":"1vwwjw","schedule_tag_busy_hour_transfer":true}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gate.wujieai.net/wj-open/v1/task/task_create_sync' \
--header 'Content-Type: application/json' \
--data-raw '{"task_code":525,"param":"{"prompt":"夜幕下的赛博朋克城市","width":512,"height":512,"supersize_multiple":1.0,"prefine_multiple":1.0}","task_timeout_seconds":3,"acquire_resource_timeout_seconds":5,"request_address":"/create","schedule_param":{"schedule_tag":"1vwwjw","schedule_tag_busy_hour_transfer":true}}'
返回响应
🟢200OK
application/json
Body
code
string <string>
响应code
示例值:
200
message
string <string>
失败信息
示例值:
success
data
object (TaskCreateSyncResult_response)
可选
task_code
integer <int32>
资源code
示例值:
524
result
string <string>
可选
示例值:
{task_code:130,pic_url:https://cdn.wujiebantu.com/ai_type/sd14.jpeg}
示例
{"code":"200","message":"success","data":{"task_code":524,"result":"{"task_code":130,"pic_url":"https://cdn.wujiebantu.com/ai_type/sd14.jpeg"}"}}
修改于 2024-08-21 08:07:31