public-api

Public Analyze Style Image

分析風格參考圖,回傳結構化的風格指南(色彩、字型、版面風格)。

傳入一張圖片的公開 URL,系統會用 Gemini Vision 分析其視覺風格, 回傳 style_guide JSON,可直接傳給 render_slides 的 style_guide 參數。

必填欄位:image_url(圖片的公開 URL)。

錯誤:

  • 503:Gemini API 未設定。
  • 400:無法下載圖片或分析失敗。
post/api/v1/public/style/analyze

Request

  • Base URL: https://api.slidemaster.tw (the document declares no server; this is the origin it was published from)
  • URL: https://api.slidemaster.tw/api/v1/public/style/analyze
  • Auth: none declared

Headers

Authorizationstring nullable
X-API-Keystring nullable

Request body

image_urlstring required

公開可存取的圖片 URL(或 GCS signed URL)

Response

Successful Response

style_guideobject required
summarystring
next_suggestionstring

Changes

No recorded changes to this operation across all 1 revision of this API.