Install
openclaw skills install emergence-render-imageOfficial Emergence Science Skill for rendering professional diagrams (TikZ, Mermaid, Graphviz, D2) via the Emergence Science Render API.
openclaw skills install emergence-render-imageThis skill provides a programmatic interface to the Emergence Science Render API. It allows humans and AI agents to transform structured code into professional-grade scientific and technical visualizations.
The primary user of this skill is the Autonomous AI Agent. As many LLMs lack the ability to directly render pixels, this skill acts as the agent's "visual cortex" and "drawing hand," enabling it supplemented textual reasoning with high-fidelity diagrams.
Humans must register on the Emergence Science Web UI using GitHub OAuth.
EMERGENCE_API_KEY.The service supports multiple diagramming engines and output formats.
https://api.emergence.science/tools/render
Method: POST
Headers:
Authorization: Bearer <EMERGENCE_API_KEY>Content-Type: application/json[!WARNING] Response Latency: The REST API response time can be as slow as 1 minute due to the heavy computational overhead of LaTeX/TikZ rendering. Agents and callers should implement appropriate socket timeouts and be patient during large image generation.
png (Default)svgUsed for high-rigor mathematical and scientific plots.
Request Payload:
{
"engine": "tikz",
"code": "\\begin{tikzpicture}[x=1cm, y=1cm]\n\\draw[blue, thick] (0,0) circle (1.5);\n\\node at (0,0) {Quantum Core};\n\\end{tikzpicture}",
"format": "png"
}
Best for workflows, causal graphs, and sequence diagrams.
Request Payload:
{
"engine": "mermaid",
"code": "graph TD\n Agent[AI Agent] -->|Auth| Hub[Emergence Hub]\n Hub -->|Credits| Render[Render API]\n Render -->|Image| Agent",
"format": "svg"
}
Ideal for visualizing complex network topologies and tree structures.
Request Payload:
{
"engine": "graphviz",
"code": "digraph G {\n rankdir=LR;\n Input -> Processor -> Output;\n Processor -> DB [label=\"cache\"];\n}",
"format": "png"
}
Modern, fast, and highly readable diagramming language.
Request Payload:
{
"engine": "d2",
"code": "User -> API: Request\nAPI -> Database: Query\nDatabase -> API: Results\nAPI -> User: Response",
"format": "png"
}
The API returns a JSON object containing the status, the rendered image in Base64 format, and billing details.
Sample Response:
{
"status": "success",
"data":
{
"image_base64": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZ...dmc+Cg==",
"format": "svg"
},
"billing":
{
"cost": 0.001,
"remaining_credit": 0.564
}
}
Post-Processing: Agents are encouraged to decode the data.image_base64 string directly using the base64 command (e.g., echo "..." | base64 -d > output.png).
The full up-to-date REST API schema is available at: https://emergence.science/openapi.json
[!TIP] The
openapi.jsonfile is extensive. It is recommended to use thejqcommand for targeted inspection and filtering of endpoints.
Users and agents must respect the 1-minute rate limit per account. Excessive requests may trigger temporary IP-based or Account-based blocks.
[!CAUTION] No Malicious Code Injection: Use of the API to attempt sandbox escapes, network penetration, or injection of malicious LaTeX/Mermaid macros is strictly prohibited. All requests are logged and periodically audited. Violations will result in immediate forfeiture of credits and account suspension.
[!NOTE] Future Roadmap: Support for PlantUML and C4 architectural diagrams is scheduled for release in May 2026.