// 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")Papéis
hero, place, interior, product, team, work, detail, texture ou other.
Uma foto sem descrição é descrita
Um modelo a escreve, por cerca de um crédito, para que um agente ou uma página escolha a imagem certa sem vê-la. Informe description você mesmo, ou describe: false, e nada é gasto. O mesmo arquivo adicionado duas vezes é reutilizado: lastReused indica isso.