ai

POST /v1/ai/site-builds/{siteBuildId}/images

Draw the draft's images. Charges the content-images meter.

Todos os endpoints de ai

Autenticação

Envie uma chave de API como um token de portador. A chave deve ter a permissão sites.create; uma chave sem ela é recusada com 403, e não 404.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

curl -X POST https://api.zinndigital.com/v1/ai/site-builds/{siteBuildId}/images \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "agreed_total_usd_micros": <integer> }'

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

Generates every image the markup asks for and stores it against the draft, so a publish carries the pictures as well as the markup. **Send back the total you were quoted.** If the price has moved since — the catalogue changed, a model was withdrawn, another tab generated some of the same images — this is refused with `price_moved` and nothing is charged. A confirm that charged a different number from the one on the screen is the one thing a money confirm must never do. Images already generated are skipped and not re-charged, so pressing the button twice costs nothing the second time. Two meters bill for a draft with images: the build's own generation, and this. Both are visible on the organization's AI usage screen. Requires `sites.create`.

Parâmetros

NomeTipoObrigatórioO que é
siteBuildId (path)UuidSim

Corpo da requisição

NomeTipoObrigatórioO que é
agreed_total_usd_microsintegerSimThe `total_usd_micros` you were quoted. Refused with `price_moved` if it no longer matches, and nothing is charged.
providerstringNão
modelstringNão

Resposta

NomeTipoObrigatórioO que é
imagesSiteBuildImage[]Sim
buildSiteBuildSimOne "describe a site and we build it" run. `files` is present on the **detail** and create responses and absent from the **list**, deliberately: a generated tree can be a hundre…

Erros que este endpoint pode retornar

401 · 403 · 404 · 422 · 429