ai
GET /v1/ai/site-builds/{siteBuildId}/images
What generating this draft's images would cost. Spends nothing.
Authentifizierung
Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung sites.create verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.
Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.
Ausprobieren
Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.
curl -X GET https://api.zinndigital.com/v1/ai/site-builds/{siteBuildId}/images \
-H "Authorization: Bearer zdk_live_…"Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole
Details
Lists every image the generated markup asks for and prices them, **without generating anything and without charging anything**. Images already generated for this draft are listed separately and are not quoted again. The list comes from the `<img>` tags in the generated HTML rather than from a number anybody types, so the count shown is the number of images the site actually uses. `unit_price_usd_micros` is `0` when the organization is on its own provider key — that is the true answer to "what will we charge you", not a missing value; their own provider bills them directly. Requires `sites.create`.
Parameter
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
siteBuildId (path) | Uuid | Ja | — |
Antwort
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
quote | object | Ja | — |
Fehler, die dieser Endpunkt zurückgeben kann
401 · 403 · 404 · 429