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
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).
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
Corpo
application/jsonlocation, 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.
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
Parâmetros de caminho
The element's id, as listed or created.
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
Parâmetros de caminho
The element's id, as listed or created.
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.
Parâmetros de caminho
The element's id, as listed or created.
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": ""
}]
}