# How to Write Better Prompts

### Prompt Structure

For best results, prompts should be descriptive and specific.

A strong prompt usually includes:

<table data-header-hidden><thead><tr><th width="180.20404052734375">Element</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td><strong>Subject</strong></td><td>What appears in the video</td><td><code>a young woman</code>, <code>a robot</code>, <code>a city skyline</code></td></tr><tr><td><strong>Context</strong></td><td>The setting or background</td><td><code>on a rainy Tokyo street at night</code></td></tr><tr><td><strong>Action</strong></td><td>What is happening</td><td><code>walking slowly while holding an umbrella</code></td></tr><tr><td><strong>Style</strong></td><td>Visual or cinematic style</td><td><code>cinematic</code>, <code>documentary</code>, <code>noir</code>, <code>cartoon</code></td></tr><tr><td><strong>Camera Motion</strong></td><td>Optional camera movement</td><td><code>tracking shot</code>, <code>aerial view</code>, <code>slow dolly-in</code></td></tr><tr><td><strong>Composition</strong></td><td>Framing or shot type</td><td><code>wide shot</code>, <code>close-up</code>, <code>over-the-shoulder</code></td></tr><tr><td><strong>Ambiance</strong></td><td>Lighting, color, sound, mood</td><td><code>soft golden light</code>, <code>ambient city noise</code></td></tr></tbody></table>

Example prompt:

```
A cinematic tracking shot of a young woman walking through a rainy Tokyo street at night.
Neon signs reflect on the wet pavement. The camera slowly follows her from behind.
The mood is quiet and futuristic, with soft ambient city sounds and distant traffic.
```

### Example Comparison

**Basic prompt:**

```
a cat
```

**Better prompt:**

```
a fluffy orange cat sitting on a windowsill, soft afternoon sunlight streaming through the window, bokeh background, cozy atmosphere, photography style, 4K, high detail
```

The detailed prompt gives the model more context, resulting in higher quality and more predictable output.

### Tips by Model Type

**For image generation (T2I):**

* Be specific about composition and framing
* Include artistic style references
* Mention lighting conditions

**For video generation (T2V/I2V):**

* Describe the motion or action clearly
* Keep prompts focused on one main action
* Specify camera movement if needed (zoom, pan, static)

### Quick Tips

| Goal             | Action                                     |
| ---------------- | ------------------------------------------ |
| More control     | Be specific and descriptive                |
| Consistent style | Include style references                   |
| Higher quality   | Add quality keywords (4K, detailed, sharp) |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infronai.gitbook.io/docs/media-apis/best-practices/how-to-write-better-prompts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
