Referencia de la API · Platform
Elements
Your reusable references: places, props and styles.
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.
Endpoints
Selecciona un verbo para cargar su solicitud, su playground y su respuesta.
List your elements (places, props, styles — each with its sheetUrl).
Create an element.
location, object or style.
Display name, up to 60 characters — what @-mentions match.
The prompt fragment folded into renders, up to 600 characters.
Optional reference photo URL — joins the engine references and the sheet pool.
One element with its reference-photo pool and sheet.
Update name, description or photo.
Remove an element — past renders are untouched.
curl https://eroq.ai/v1/elements \
-H "Authorization: Bearer $EROQ_API_KEY"Respuesta
{
"elements": [{
"id": "0b6c…", "kind": "location", "name": "Rooftop bar",
"description": "rooftop cocktail bar at dusk, string lights", "imageUrl": "", "sheetUrl": ""
}]
}