众扬汇 AI 开放平台 API 文档

Describe(描述)

OpenAPI Specification

接口:POST /ideogram/describe(完整地址 https://api.allyang.cn/ideogram/describe)

鉴权:请求头 Authorization 传令牌,取值形如 Bearer {{YOUR_API_KEY}}(该字段非必填)。

请求头

  • accept:必填,固定 application/json。

请求体(multipart/form-data)

  • image_file:binary,必传;待描述的那张图像。

响应

  • 200:返回成功,响应体为 JSON 对象。
  • created:string。
  • data:数组;每个元素含 is_image_safe(boolean,内容安全标记)、prompt(string,模型写出的图像描述文字)、resolution(string)、seed(integer)、url(string,结果图片地址)。

使用提示:本平台 Base URL 为 https://api.allyang.cn,OpenAI 兼容接口路径以 /v1 开头;示例里的 {{YOUR_API_KEY}} 请替换为控制台创建的令牌。