cURL
curl --request POST \ --url https://api.ttapi.io/midjourney/v1/imagine \ --header 'Content-Type: application/json' \ --header 'TT-API-KKEY: <api-key>' \ --data ' { "prompt": "一只可爱的猫咪,卡通风格", "aspect_ratio": "16:9" } '
{ "code": 200, "msg": "success", "data": { "task_id": "task-123456", "status": "success", "image_url": "https://xxx.com/image.png" } }
Generate an image based on the prompt
授权字段,控制台获取授权信息
图片生成请求参数
生成提示词
"一只可爱的猫咪,卡通风格"
图片比例
1:1
4:3
16:9
"16:9"
请求成功(返回任务ID)
200
"success"
Show child attributes