---
title: "Pieza o ANUNCIO (es_anuncio: 3 variantes, 4+2+2 créditos; B y C = piezas)"
method: POST
path: "/api/v1/compose_static"
tags: ["General"]
---

# Pieza o ANUNCIO (es_anuncio: 3 variantes, 4+2+2 créditos; B y C = piezas)

`POST /api/v1/compose_static`

## Request

- Base URL: `https://api.pymaia.com`
- URL: `https://api.pymaia.com/api/v1/compose_static`
- Auth: HTTP bearer

Pieza o ANUNCIO (es_anuncio: 3 variantes, 4+2+2 créditos; B y C = piezas). acepto_costo_creditos:false cotiza; true lo genera. No publica.

## Request body

- object
  - `template_slug` string, required
  - `headline` string, required
  - `subheadline` string
  - `contact_name` string
  - `cta` string
  - `badge` string
  - `bullets` string[]
  - `format` 'feed' | 'portrait' | 'story'
  - `background_prompt` string
  - `background_style` 'product_shot' | 'lifestyle' | 'flat_lay' | 'cinematic' | 'ugc_photo' | 'minimal'
  - `bg_storage_path` string
  - `brand_asset_id` string, uuid
  - `product_id` string, uuid
  - `space_id` string
  - `node_id` string
  - `fidelity` 'fast' | 'rich'
  - `es_anuncio` boolean
  - `modo` 'produccion' | 'exploracion'
  - `variantes` integer
  - `piezas` object[]
    - `template_slug` string, required
    - `headline` string, required
    - `subheadline` string
    - `cta` string
    - `badge` string
    - `bullets` string[]
  - `brief_id` string, uuid
  - `evidencia` string[]
  - `acepto_costo_creditos` boolean
  - `uso` 'organico' | 'pauta'

## Response `200`

Tool executed successfully

- object
  - `ok` boolean
  - `result` unknown
  - `duration_ms` number

## Other responses

- `400`: Invalid params or handler error
- `401`: Missing or invalid Bearer token
- `403`: Missing required scope(s) (`denied_scope`), or the tool's module is disabled for the organization (`module_disabled`, with `why`, `fix` and `module`)
- `404`: Tool not found, internal-only, or excluded for OAuth connectors
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/pymaia/apis/pymaia-api.md) · [All operations](https://skmtc.dev/pymaia/apis/pymaia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pymaia/apis/pymaia-api/revisions/705a6973177b?raw)
