bruxel.ai

Examples

The integration flow in curl, Python and JavaScript. Replace bxk_your_key with the one you created in the console.

Authenticate and verify

Every call carries your API key as a Bearer token. Start by confirming it works with GET /v1/me.

curl -s https://bruxel.ai/api/public/v1/me \
  -H "Authorization: Bearer bxk_tu_llave"

Push your catalog

Create or update products by SKU (bulk upsert, up to 500 per request).

curl -s -X POST https://bruxel.ai/api/public/v1/products \
  -H "Authorization: Bearer bxk_tu_llave" \
  -H "Content-Type: application/json" \
  -d '{"products":[{"sku":"CAMISA-001","name":"Camisa de lino","brand":"Acme"}]}'

Generate a description

Synchronous generation: charges on success. The Idempotency-Key is recommended for safe retries.

curl -s -X POST https://bruxel.ai/api/public/v1/generations \
  -H "Authorization: Bearer bxk_tu_llave" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: gen-camisa-001-v1" \
  -d '{"product_id":"prod_8f2","languages":["es","en"]}'

Generate in a batch

For volume: reserve credits with a required Idempotency-Key and poll until the batch ends — the poll charges the successes and refunds the rest.

# 1) Envía el lote (Idempotency-Key OBLIGATORIO)
curl -s -X POST https://bruxel.ai/api/public/v1/batches \
  -H "Authorization: Bearer bxk_tu_llave" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: batch-2026-07-23-a" \
  -d '{"product_ids":["prod_8f2","prod_9a1"]}'

# 2) Poll hasta status "ended" (el GET cobra los éxitos y reembolsa el resto)
curl -s https://bruxel.ai/api/public/v1/batches/BATCH_ID \
  -H "Authorization: Bearer bxk_tu_llave"

Read and export

Read a product's current description or export the whole generated catalog to CSV.

# Descripción actual de un producto (por idioma)
curl -s "https://bruxel.ai/api/public/v1/products/prod_8f2/descriptions" \
  -H "Authorization: Bearer bxk_tu_llave"

# Catálogo completo a CSV (compatible con Adobe Commerce)
curl -s "https://bruxel.ai/api/public/v1/export/catalog.csv?language=es" \
  -H "Authorization: Bearer bxk_tu_llave" -o catalogo.csv
Examples — Bruxel