eroq

Platform

Elements

Your reusable references: places, props and styles.

Free

Elements are reusable prompt references (up to 50 per account): a place, a prop or a visual style with a description the prompt-engineering layer folds into any render, and optional reference photos. Characters are referenced as char:<id> in elements arrays — they live on their own endpoints in the studio.

POST /v1/elements creates one (kind location|object|style, name, description, optional imageUrl); GET /v1/elements/{id} fetches one with its reference-photo pool and its sheetUrl; PATCH /v1/elements/{id} updates it; DELETE /v1/elements/{id} removes it. Pass their ids in the elements array of chat, image and video generations. A location or object you want to render must carry an accepted look sheet (see /v1/sheets) — a style is description-only and never sheeted.

Autorização

Authorizationstringheaderobrigatório

Sua chave de API como bearer token: Bearer eroq_sk_…. Crie uma na página de chaves.

List your elements

List your elements (places, props, styles — each with its sheetUrl).

GET/v1/elements
List your elements
curl https://eroq.ai/v1/elements \
  -H "Authorization: Bearer $EROQ_API_KEY"
{
  "elements": [{
    "id": "0b6c…", "kind": "location", "name": "Rooftop bar",
    "description": "rooftop cocktail bar at dusk, string lights", "imageUrl": "", "sheetUrl": ""
  }]
}

Create an element

POST/v1/elements

Corpo

application/json
kindstringobrigatório

location, object or style.

namestringobrigatório

Display name, up to 60 characters — what @-mentions match.

descriptionstring

The prompt fragment folded into renders, up to 600 characters.

imageUrlstring

Optional reference photo URL — joins the engine references and the sheet pool.

Create an element
curl https://eroq.ai/v1/elements \
  -H "Authorization: Bearer $EROQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "location",
  "name": "Rooftop bar",
  "description": "rooftop cocktail bar at dusk, string lights, skyline behind"
}'
{
  "elements": [{
    "id": "0b6c…", "kind": "location", "name": "Rooftop bar",
    "description": "rooftop cocktail bar at dusk, string lights", "imageUrl": "", "sheetUrl": ""
  }]
}

One element with its reference-photo pool and sheet

GET/v1/elements/{id}

Parâmetros de caminho

idstringobrigatório

The element's id, as listed or created.

One element with its reference-photo pool and sheet
curl https://eroq.ai/v1/elements/ELEMENT_ID \
  -H "Authorization: Bearer $EROQ_API_KEY"
{
  "elements": [{
    "id": "0b6c…", "kind": "location", "name": "Rooftop bar",
    "description": "rooftop cocktail bar at dusk, string lights", "imageUrl": "", "sheetUrl": ""
  }]
}

Update name, description or photo

PATCH/v1/elements/{id}

Parâmetros de caminho

idstringobrigatório

The element's id, as listed or created.

Update name, description or photo
curl -X PATCH https://eroq.ai/v1/elements/ELEMENT_ID \
  -H "Authorization: Bearer $EROQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "rooftop bar at dawn, soft light"
}'
{
  "elements": [{
    "id": "0b6c…", "kind": "location", "name": "Rooftop bar",
    "description": "rooftop cocktail bar at dusk, string lights", "imageUrl": "", "sheetUrl": ""
  }]
}

Remove an element

Remove an element — past renders are untouched.

DELETE/v1/elements/{id}

Parâmetros de caminho

idstringobrigatório

The element's id, as listed or created.

Remove an element
curl -X DELETE https://eroq.ai/v1/elements/ELEMENT_ID \
  -H "Authorization: Bearer $EROQ_API_KEY"
{
  "elements": [{
    "id": "0b6c…", "kind": "location", "name": "Rooftop bar",
    "description": "rooftop cocktail bar at dusk, string lights", "imageUrl": "", "sheetUrl": ""
  }]
}