cURL
curl --request POST \ --url https://api.icepanel.io/v1/landscapes/{landscapeId}/versions/{versionId}/diagrams/{diagramId}/content/generate-description \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "type": "caption" } '
{ "description": "<string>", "message": "<string>" }
Generate a description for a diagram
Type of description to generate: "caption" for a short caption(50-70 characters), or "detailed" for a detailed description (max 2000 characters)
caption
detailed
OK
AI-generated description of the diagram content
Success message from the AI API