What is JSON Prompt?
Understanding the difference between Text Prompts and JSON Prompts for AI image and video generation.
Understanding JSON Prompts
A JSON Prompt is a structured format that contains additional technical parameters alongside the text prompt. It provides more control over the AI generation process by specifying settings like seed values, guidance scale, number of inference steps, and other model-specific parameters.
While a text prompt describes what you want to generate, a JSON prompt tells the AI how to generate it with precise technical specifications.
{
"prompt": "A majestic dragon flying over mountains at sunset",
"seed": 123456,
"steps": 30,
"cfg_scale": 7.5,
"sampler": "DPM++ 2M Karras",
"width": 1024,
"height": 768
}
When to Use Each Type
-
Use Text Prompt when you want a quick, simple description and don't need exact reproducibility. Perfect for beginners and casual users.
-
Use JSON Prompt when you need to reproduce the exact same result or want fine-tuned control over generation parameters. Essential for professional and consistent results.
-
Seed Values in JSON prompts allow you to get the exact same output every time, which is crucial for iterating and refining your generations.
Comparison: Text vs JSON Prompts
| Feature | Text Prompt | JSON Prompt |
|---|---|---|
| Easy to understand | ||
| Quick to copy & use | ||
| Exact reproducibility | ||
| Control generation settings | ||
| Specify seed value | ||
| Set image dimensions | ||
| Adjust quality/steps | ||
| Best for Photo Generation | ||
| Best for Video Generation | ||
| Beginner Friendly | ||
| Professional Use |
Pro Tip
Most AI generation tools allow you to paste JSON directly into their settings. Copy the JSON prompt, then look for an "Import Settings" or "Load from JSON" option in your preferred tool.
If a JSON prompt isn't available for a creation you like, you can still use the text prompt and experiment with different settings until you achieve a similar result!