Muse 依圖改圖
edit_imageModify existing images with Meta Muse by applying text prompts to local files or web URLs, then save the generated image to an absolute local path.
Instructions
以 Meta Muse 模型依既有圖片與指令生成新圖。images 可填本機檔案路徑或 http(s) 網址,本機檔案會自動轉成 base64,呼叫端不需自行處理。結果存到本機並回傳絕對路徑。每張圖片成本 US$0.01。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | 生成張數,1 到 10,預設 1 | |
| size | No | 長寬比字串,例如 "1792x1024"、"1024x1536"。注意:這是長寬比而非精確像素解析度 | |
| model | No | 模型 ID,省略則使用伺服器設定的預設模型 | |
| images | Yes | 參考圖片,可為本機檔案路徑(png/jpg/jpeg/webp/gif)或 http(s) 網址 | |
| prompt | Yes | 修改指令,描述你要如何改這張圖 | |
| extra_params | No | 傳給 API 的額外參數(物件),用於新模型的特殊參數。會與伺服器全域設定合併,單次設定優先。與請求核心欄位(model、prompt、response_format 等)衝突的 key 會被忽略並在回應中提示。 | |
| output_format | No | 輸出格式,預設 png | |
| filename_prefix | No | 輸出檔名前綴,預設 muse-edit | |
| reasoning_strength | No | 推理強度,預設 high(品質較佳但較慢) |