# Prompt enhance

`POST /v1/prompts/enhance` — Rewrite a draft into a director-grade prompt — free.

- Base URL: https://eroq.ai/v1
- Auth: `Authorization: Bearer eroq_sk_…` (create keys at https://eroq.ai/dashboard/keys)
- Credits: Free

The sparkle button as an API: give it a rough draft (or nothing) and it answers with one production-grade prompt. `kind` picks the register (`video` default, `image`); `model` tunes the phrasing to an engine; `elements` passes library ids the writer must feature — their `@Name` mentions are kept verbatim.

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `prompt` | string | no | The draft. Empty = invent one. |
| `kind` | string | no | `video` (default) or `image`. |
| `model` | string | no | Target model id — phrasing adapts to the engine. |
| `elements` | array | no | Element ids to feature (characters as `char:<id>`). |

## Example request

```bash
curl https://eroq.ai/v1/prompts/enhance \
  -H "Authorization: Bearer $EROQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "a girl on a rooftop at night",
  "kind": "video"
}'
```

```javascript
const res = await fetch('https://eroq.ai/v1/prompts/enhance', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.EROQ_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "prompt": "a girl on a rooftop at night",
    "kind": "video"
  }),
})
console.log(await res.json())
```

```python
import os, requests

res = requests.post(
    "https://eroq.ai/v1/prompts/enhance",
    headers={"Authorization": f"Bearer {os.environ['EROQ_API_KEY']}"},
    json={
        "prompt": "a girl on a rooftop at night",
        "kind": "video"
    },
)
print(res.json())
```

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
	"strings"
)

func main() {
	body := strings.NewReader(`{
  "prompt": "a girl on a rooftop at night",
  "kind": "video"
}`)

	req, _ := http.NewRequest("POST", "https://eroq.ai/v1/prompts/enhance", body)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("EROQ_API_KEY"))
	req.Header.Set("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}
```

## Response


```json
{
  "prompt": "A solitary young woman on a rain-slicked rooftop at night, city bokeh behind her…"
}
```
---
Canonical: https://eroq.ai/docs/enhance · Index for agents: https://eroq.ai/llms.txt · OpenAPI: https://eroq.ai/openapi.json
