ai

POST /v1/ai/images/posts/{postId}

Generate a featured image and in-post images for a content post.

모든 ai 엔드포인트

인증

Bearer 토큰으로 API 키를 전송하세요. 키는 반드시 links.edit 권한을 가지고 있어야 하며, 권한이 없는 키는 404가 아닌 403으로 거부됩니다.

조직 ID가 들어가는 위치

이 엔드포인트는 JSON 본문의 필드로 org_id을(를) 받습니다.

조직 ID는 대시보드의 API 키 화면에서 키 바로 옆에 있습니다. 이는 실행하는 모든 호출에서 동일한 ID입니다.

무료 체험하기

대괄호 안에 있는 모든 내용을 사용자 지정 값으로 바꾸고, 키 플레이스홀더는 대시보드의 키로 바꾸세요.

curl -X POST https://api.zinndigital.com/v1/ai/images/posts/{postId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

로그인하셨나요? 대시보드의 API 콘솔이 실제 조직 ID와 본인의 키를 자동으로 채우고 라이브 API를 대상으로 요청을 실행하므로 실제 응답을 확인할 수 있습니다. API 콘솔에서 이 엔드포인트를 여세요

상세 정보

Generates the images **and writes the `<img>` placeholders into the post body**, in one transaction. ⛔ Those are deliberately not two endpoints: one that generated images and left the body alone would produce rows in a table, nothing on a page, and a dashboard reporting success. Alt text is generated and stored in the source language and **localised to the destination site's language when the post is published** (§2.19) — one post goes to many sites, so the language is a property of the site, not of the draft. The response carries `unmet`: anything the chosen provider could not honour, in words for the customer. Nothing is silently dropped. Requires `links.edit`.

매개변수

이름유형필수설명
postId (path)Uuid

요청 본문

이름유형필수설명
featuredboolean아니요
inline_countinteger아니요⛔ Bounded at 4. A hundred near-identical stock-looking images across a network **is a footprint**, which is the one thing the Footprint-Free line exists to avoid.
stylestring아니요Woven into every prompt — "photographic, no text overlay, muted palette".
providerAiImageProvider | string<>아니요Leave empty to let the platform choose.
modelstring아니요A specific `model_id` to pin, or empty to follow the provider's default.
target_localestring아니요The language the post will be published in, so alt text is localised to the **site** rather than to the dashboard's UI locale.
org_idUuid아니요UUIDv7 identifier — sortable by creation time (docs/02 §8).

응답

이름유형필수설명
dataGeneratedImage[]
unmetstring[]아니요What the chosen provider could not honour, in words for the customer. ⛔ Present and empty rather than absent when everything was honoured, so a client can tell "nothing was drop…
body_htmlstring아니요The post body with the generated images' placeholders written into it.

이 엔드포인트가 반환할 수 있는 오류

401 · 403 · 404 · 422 · 429