cURL
curl --request POST \ --url https://api.ttapi.io/midjourney/v1/describe \ --header 'Content-Type: application/json' \ --header 'TT-API-KEY: <api-key>' \ --data ' { "base64": "data:image/png;base64,xxx1", "url": "<string>", "timeout": "300", "hookUrl": "<string>" } '
{ "status": "SUCCESS", "message": "success", "data": { "job_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } }
通过 Midjourney 图像描述接口, 上传图片的画面内容并返回可用于生成的提示词建议,适合做反向提示词提取和创意拆解。
Documentation IndexFetch the complete documentation index at: https://docs.ttapi.io/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.ttapi.io/llms.txt
Use this file to discover all available pages before exploring further.
请前往 TTAPI 控制台 获取 API 密钥。
图像的base64编码
"data:image/png;base64,xxx1"
图片url地址, url参数与base64参数至少存在一个值不为空,若两个字段同时传值,默认取base64字段
任务超时时间,单位:秒,范围 300 - 1200。fast与turbo模式下默认最小值为300,relax模式下默认最小值为600。
"300"
回调通知地址
请求成功
"SUCCESS"
"success"
{ "job_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}