> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mynth.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Control Prompts

> Use prompts, negative prompts, and magic prompt enhancement.

The prompt is a plain string. For additional controls, use the top-level request fields.

```ts theme={"theme":"kanagawa-dragon"}
prompt: "An orange cat astronaut on the moon";
```

## Negative prompts

Pass a separate `negative_prompt` field to discourage certain content:

```ts theme={"theme":"kanagawa-dragon"}
prompt: "Editorial portrait of a cyclist in the rain",
negative_prompt: "text, watermark, extra limbs",
```

Whether negative prompts are meaningful depends on the model. Check the model's capabilities.

## Magic prompt (enhancement)

Set `magic_prompt: true` to let Mynth rewrite your prompt before sending it to the model for potentially better results:

```ts theme={"theme":"kanagawa-dragon"}
prompt: "Luxury skincare product photo on sculpted stone",
magic_prompt: true,
```

When magic prompt is enabled, the task result includes a `magic_prompt` object with the rewritten positive and negative prompts:

```json theme={"theme":"kanagawa-dragon"}
{
  "magic_prompt": {
    "positive": "...",
    "negative": "..."
  }
}
```

Omit `magic_prompt` or set it to `false` to send the prompt as-is.
