Generate Visual and Save
generate_and_saveGenerate a visual from text content and save it to your configured storage. Supports SVG, PNG, and PPT formats with options for style, orientation, and multiple variations.
Instructions
Generate a visual, wait for completion, and save to configured storage. Requires storage to be configured in server settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Width in pixels (PNG only) | |
| format | No | Output format: svg, png, or ppt (default: svg) | |
| height | No | Height in pixels (PNG only) | |
| content | Yes | Main text content to visualise | |
| context | No | Additional context for visual generation | |
| dry_run | No | Validate inputs without calling the API (default: false) | |
| filename | No | Custom filename (without extension). Auto-generated if not provided. | |
| language | No | BCP 47 language tag (e.g., en, en-GB). Default: en | |
| style_id | No | Style identifier from Napkin AI | |
| visual_id | No | Regenerate a specific visual layout with new content. Cannot be used with visual_ids, visual_query, or visual_queries. | |
| color_mode | No | Colour mode: light, dark, or both | |
| visual_ids | No | Array of visual IDs to regenerate specific layouts. Length must match number_of_visuals. | |
| orientation | No | Orientation: auto, horizontal, vertical, or square | |
| visual_query | No | Visual type query (e.g., mindmap, flowchart, timeline) | |
| sort_strategy | No | Sort strategy: relevance, random, or variation | |
| visual_queries | No | Array of visual type queries. Length must match number_of_visuals. | |
| number_of_visuals | No | Number of variations to generate (1-4) | |
| text_extraction_mode | No | Text extraction: auto, rewrite, or preserve | |
| transparent_background | No | Use transparent background |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Saved files with storage locations | |
| credits | No | Credit consumption for the request | |
| request_id | Yes |