Brand

assets

brand.assets.add(asset) · update(id, changes) · remove(id) · byRole(role) · last · lastCredits

Die Fotos, Videos und Illustrationen, mit denen sich eine Marke zeigt: eine Ladenfront, ein Produkt, ein Team. SDK 0.5.2+.

60 at most25 MB uploaded · 200 MB from Cloud~1 credit to describe
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

// A file already in the account's Object Storage: nothing is uploaded again.
await brand.assets.add({ cloud: "Brand/storefront.jpg", role: "hero" });

// Or bytes, like a logo.
await brand.assets.add({ name: "team.jpg", content: bytes, role: "team", description: "The roasting team" });

brand.assets.last;          // the resource just added, with its url
brand.assets.lastCredits;   // what its description cost
brand.assets.byRole("hero");
# A file already in the account's Object Storage: nothing is uploaded again.
brand.assets.add({"cloud": "Brand/storefront.jpg", "role": "hero"})

# Or bytes, like a logo.
brand.assets.add({"name": "team.jpg", "content": image_bytes, "role": "team", "description": "The roasting team"})

brand.assets.last           # the resource just added, with its url
brand.assets.last_credits   # what its description cost
brand.assets.by_role("hero")

Rollen

hero, place, interior, product, team, work, detail, texture oder other.

Ein Foto ohne Beschreibung wird beschrieben

Ein Modell schreibt sie, für etwa einen Credit, damit ein Agent oder eine Seite das richtige Bild wählen kann, ohne es zu sehen. Geben Sie description selbst an oder describe: false, dann wird nichts verbraucht. Dieselbe Datei, zweimal hinzugefügt, wird wiederverwendet: lastReused zeigt es an.