Enhance a prompt
POST /prompts/enhance expands a rough idea into a detailed prompt.
Clarify a prompt
POST /prompts/clarify returns targeted questions to answer before generating, when a
prompt is ambiguous.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Turn a rough idea into a strong prompt before you generate.
POST /prompts/enhance expands a rough idea into a detailed prompt.
curl https://api.diagrams.so/api/v2/prompts/enhance \
-H "Authorization: Bearer dgz_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "web app on aws"}'
POST /prompts/clarify returns targeted questions to answer before generating, when a
prompt is ambiguous.
curl https://api.diagrams.so/api/v2/prompts/clarify \
-H "Authorization: Bearer dgz_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "a data pipeline"}'
POST /diagrams.