通用2.0Pro-图生图
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: "本页接口说明详见下方接口定义;参数取值与返回以本平台实测为准。"
version: 1.0.0
paths:
/volcv/v1:
post:
summary: 通用2.0Pro-图生图
deprecated: false
description: "本接口为豆包(即梦、火山)绘图能力的第三方渠道格式,对应 POST /volcv/v1;请求参数与返回以本平台实测为准,上游文档外链已移除。"
tags:
- 绘图模型/ 豆包(即梦、火山)绘图
parameters:
- name: Action
in: query
description: "该字段的取值与含义以本平台实际返回为准。"
required: true
example: CVProcess
schema:
type: string
- name: Version
in: query
description: "该字段的取值与含义以本平台实际返回为准。"
required: true
example: '2022-08-31'
schema:
type: string
- name: Authorization
in: header
description: "该字段的取值与含义以本平台实际返回为准。"
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
default: Bearer {{YOUR_API_KEY}}
requestBody:
content:
application/json:
schema:
type: object
properties: {}
example: "{\r\n \"req_key\": \"high_aes_scheduler_svr_controlnet_v2.0\",\r\n // \"binary_data_base64\": [],\r\n \"image_urls\": [\r\n \"https://example.com/file.pdf\"\r\n ],\r\n \"prompt\": \"一只狗\",\r\n \"model_version\": \"general_controlnet_v2.0\",\r\n \"seed\": -1,\r\n \"scale\": 3,\r\n \"ddim_steps\": 16,\r\n \"use_rephraser\": true,\r\n \"controlnet_args\": [\r\n {\r\n \"type\": \"depth\",\r\n \"binary_data_index\": 0,\r\n \"strength\": 0.6\r\n }\r\n ],\r\n \"return_url\": true,\r\n \"logo_info\": {\r\n \"add_logo\": false,\r\n \"position\": 0,\r\n \"language\": 0,\r\n \"logo_text_content\": \"示例水印文字\"\r\n }\r\n}"
responses:
'200':
description: "该字段的取值与含义以本平台实际返回为准。"
content:
application/json:
schema:
type: object
properties: {}
example:
code: 10000
data:
algorithm_base_resp:
status_code: 0
status_message: Success
binary_data_base64: []
image_urls:
- https://example.com/file.pdf
predict_tags_result: ''
rephraser_result: 一只毛色鲜艳的狗,它有着饱满的毛发和锐利的眼神,看起来非常健康活泼。
request_id: >-
9f2c1a4b7d0e5a83
message: Success
request_id: 9f2c1a4b7d0e5a83
status: 10000
time_elapsed: 5.861744206s
headers: {}
security: []
components:
schemas: {}
securitySchemes: {}
servers: []
security: []
使用提示:本页接口的 Base URL 为
https://api.allyang.cn,请求头需携带Authorization: Bearer <令牌>(令牌在控制台「令牌管理」中创建)。示例中的任务 ID、时间戳与文件地址均为示意值,实际以平台返回为准。模型名请在「模型广场」复制后填入,不要手输;计费、限流与在售清单以平台实测为准(部分数值待补)。