ai

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

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

Wszystkie punkty końcowe ai

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie links.edit; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Miejsce na identyfikator organizacji

Ten punkt końcowy przyjmuje org_id jako pole w treści JSON.

Identyfikator Twojej organizacji znajduje się na ekranie kluczy API w Twoim panelu, obok samego klucza. Jest to ten sam identyfikator w każdym wywołaniu, które wykonujesz.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

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

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

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.

Parametry

NazwaTypWymaganeCo to jest
postId (path)UuidTak

Treść żądania

NazwaTypWymaganeCo to jest
featuredbooleanNie
inline_countintegerNie⛔ 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.
stylestringNieWoven into every prompt — "photographic, no text overlay, muted palette".
providerAiImageProvider | string<>NieLeave empty to let the platform choose.
modelstringNieA specific model_id to pin, or empty to follow the provider's default.
target_localestringNieThe language the post will be published in, so alt text is localised to the site rather than to the dashboard's UI locale.
org_idUuidNieUUIDv7 identifier — sortable by creation time (docs/02 §8).

Odpowiedź

NazwaTypWymaganeCo to jest
dataGeneratedImage[]Tak
unmetstring[]NieWhat 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…
body_htmlstringNieThe post body with the generated images' placeholders written into it.

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 422 · 429