当前位置: 首页 > news >正文

网站首次备案 多久公司软文推广

网站首次备案 多久,公司软文推广,淮南网络宾馆,wordpress使用redisMidjourney Describe API 的对接和使用 Midjourney Describe API 的主要功能是通过上传图片#xff0c;获取对图片的描述。使用该 API#xff0c;只需要传递图片文件地址#xff0c;API 会返回图片的详细描述。无需繁琐的参数设置#xff0c;即可获得高质量的图片描述。 …Midjourney Describe API 的对接和使用 Midjourney Describe API 的主要功能是通过上传图片获取对图片的描述。使用该 API只需要传递图片文件地址API 会返回图片的详细描述。无需繁琐的参数设置即可获得高质量的图片描述。 支持多种图片格式无论是 JPEG、PNG 还是 GIF 等主流图片格式均能被轻松识别和处理。 本文档将详细介绍 Midjourney Describe API 的对接说明帮助您轻松集成并充分利用该 API 的强大功能。通过 Midjourney Describe API您可以轻松实现图片描述的自动化提高业务效率。 申请流程 要使用 Midjourney Describe API需要先到 申请页面 Midjourney Describe API 申请相应的服务进入页面之后点击「Acquire」按钮如图所示?inviter_idb87f67c1-b04f-4332-99a1-7a5e651331c6 如果您尚未登录或注册会自动跳转到登录页面邀请您来注册和登录登录注册之后会自动返回当前页面。?inviter_idb87f67c1-b04f-4332-99a1-7a5e651331c6 首次申请时会有免费额度赠送可以免费使用该 API。 请求示例 我们以一张图片为例演示如何使用该 API。假设我们有一张风景图片接下来演示如何上传该图片并获取描述。 请求示例图 设置请求头和请求体 Request Headers 包括 accept指定接收 JSON 格式的响应结果这里填写为 application/json。authorization调用 API 的密钥申请之后可以直接下拉选择。 Request Body 包括 image_url上传的图片文件地址。 设置如下图所示 代码示例 可以发现在页面右侧已经自动生成了各种语言的代码如图所示 部分代码示例如下 CURL bash curl -X POST https://api.acedata.cloud/midjourney/describe \ -H accept: application/json \ -H authorization: Bearer {token} \ -H content-type: application/json \ -d { image_url: https://cdn.zhishuyun.com/80ce2143-0523-41de-8e9f-c46f6e05dbac.png } Python python import requests url https://api.acedata.cloud/midjourney/describe headers { accept: application/json, authorization: Bearer {token}, content-type: application/json } payload { image_url: https://cdn.zhishuyun.com/80ce2143-0523-41de-8e9f-c46f6e05dbac.png } response requests.post(url, jsonpayload, headersheaders) print(response.json()) 响应示例 请求成功后API 将返回图片的 4 条描述信息。例如 json { descriptions: [ A cross-shaped road sign stands in the middle of an outdoor park, surrounded by trees and grasslands. The background is sunny with warm colors. There is sunlight shining through the leaves onto part of it. On one side of that street post there was also another sign with the lettering \Kunming Park\, which looked very beautiful. This photo shows how wonderful nature can be. It gives people feelings like relaxation or tranquility in the style of nature. --ar 75:44, A photo of a \K鬥\ road sign in the park, with trees and grass on both sides. In front is a light yellow metal pole with two signs attached to it. The background features sunlight shining through green leaves onto one side of the street, creating a warm atmosphere. There is also water mist floating around. It was taken in the style of Sony A7R IV camera using Leica M lens. This scene conveys tranquility and harmony between nature and human creation. --ar 75:44, A cross-shaped street sign stands in the middle of an open park, surrounded by trees and grassland. The sun shines through the leaves on part of it, creating a warm light effect. In front is a road leading to another green space. Theres also some information about \Inside Shilin Park\ on one side of that post. This scene gives people feelings of tranquility and harmony with nature. Natural lighting, 3D rendering in the style of Unreal Engine, Realistic photography style. --ar 75:44, A cross-shaped signpost stands in the park, surrounded by lush trees and vibrant green grass under sunlight. Signs say \VIDEO ANNattacks\ in an unknown language, creating an atmosphere of mystery and intrigue. The scene is captured with high-definition photography using Canon EOS R5 cameras, presenting a stunning visual effect that showcases intricate details in the style of modern photography. --ar 75:44 ] } 可以看到结果中有一个 descriptions 字段里面包含了四个结果每个结果都是一个候选的描述内容。 错误处理 在调用 API 时如果遇到错误API 会返回相应的错误代码和信息。例如 400 token_mismatchedBad request, possibly due to missing or invalid parameters.400 api_not_implementedBad request, possibly due to missing or invalid parameters.401 invalid_tokenUnauthorized, invalid or missing authorization token.429 too_many_requestsToo many requests, you have exceeded the rate limit.500 api_errorInternal server error, something went wrong on the server. 错误响应示例 { success: false, error: { code: api_error, message: fetch failed }, trace_id: 2cf86e86-22a4-46e1-ac2f-032c0f2a4e89 } 结论 通过本文档您已经了解了如何使用 Midjourney Describe API 进行图片描述。希望本文档能帮助您更好地对接和使用该 API。如有任何问题请随时联系我们的技术支持团队。
http://www.dnsts.com.cn/news/79082.html

相关文章:

  • 昆明培训网站建设安岳建设局网站
  • 极速彩票网站建设外贸代运营
  • 菏泽做网站优化的网站建设评分标准
  • 做淘宝这样的网站需要什么哈尔滨大连工程建设信息网站
  • 如何搜索公司所有的网站wordpress怎样切换语言
  • 怎么建设一个自己微信网站wordpress 用户验证
  • 商城网站怎么做seo代理记账公司简介模板及介绍
  • 嘉兴门户网站建设淮南百姓网
  • 江西企业网站定制网址导航网站简单制作
  • 做网站迅雷下载链接设置python在线
  • 响应式网站开发设计做外贸网站做成哪种形式好
  • 做美容仪器的网站肇庆 网站建设公司有哪些
  • 建网站用什么服务器好做影视网站算侵权吗
  • 网站首页改版网站开发项目背景
  • 做网站选哪家公司云设计工具
  • 江苏网站建设功能建设网站要备案吗
  • 企业网站建设方案渠道网站服务器租用价格怎么算
  • 做网站还需要兼容ie8吗如何做国外假发网站
  • 示范校建设网站重庆新闻频道直播在线观看
  • 网站顶部公告代码微信房地产网站建设
  • 青创网站首页郑州网站建设公司航迪软件怎么样
  • 阿里云 部署网站做学校和企业对接的网站
  • 企业网站源码vuedw网页制作教程视频简单第二期
  • 女性门户网站模板做网站借用网络图片不违法吧
  • 做网站需要什么花费重庆市建筑工程网
  • 广州电子商城网站建设线上教学网站怎么建设
  • 线上营销策略都有哪些seopc流量排名网站
  • 在一呼百应上做网站行吗做淘宝首页初学ps视频网站
  • 常州seo网站推广做个网站费用多少
  • 谷歌绘制的网站wordpress edu2.0