---
title: Llama 3.1 8B Prompt Enhancer | Runware Docs
url: https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer
description: Instruction-tuned language model optimized for prompt enhancement and rewriting
---
# Llama 3.1 8B Prompt Enhancer

![Llama 3.1 8B Prompt Enhancer](https://assets.runware.ai/covers/llama-3-1-8b-prompt-enhancer.jpg)

Llama 3.1 8B Prompt Enhancer is a specialized configuration of the 8B instruction-tuned language model designed to refine, expand, and restructure user prompts for downstream generative systems. It improves clarity, specificity, and structural quality while preserving original intent. The model is well suited for enhancing prompts used in text-to-image, text-to-video, and multimodal generation workflows where stronger guidance leads to higher output fidelity.

- **Status**: live
- **ID**: `llama-3-1-8b-prompt-enhancer`
- Try in Playground
- **Release Date**: July 23, 2024
- **Capabilities**: Text to Text, Prompt Enhance, Checkpoint

## Pricing

$0.0006 from, per run · ~6s per request

**Measured runs**

- Default: `$0.0006` (~3s)

**4 example generations**

- [prompt-enhancement](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer/examples#example-autumn-tasting-menu-image-prompt): `$0.0019` (~5s)
- [prompt-enhancement](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer/examples#example-electric-motorcycle-launch-film-prompt): `$0.0026` (~6s)
- [prompt-enhancement](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer/examples#example-renewable-energy-report-cover-prompt): `$0.0038` (~9s)
- [prompt-enhancement](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer/examples#example-coastal-resort-campaign-key-art): `$0.0045` (~10s)

billed by compute time, so a request costs what it took · times vary, measured end to end · [How pricing works](https://runware.ai/docs/models-api/pricing)

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `promptEnhance`

Identifier for the type of task being performed.

### [taskUUID](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [webhookURL](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#request-webhookurl)

- **Type**: `string`
- **Format**: `uri`

Webhook URL that receives JSON responses via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/models-api/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#request-deliverymethod)

- **Type**: `string`
- **Default**: `sync`

Determines how the API delivers task results.

**Allowed values**:

- `sync` Returns results directly in the API response. Over HTTP, a task still running after 120 seconds continues as an async task and comes back with status 'processing'. Poll for its results using getResponse.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/models-api/task-polling) (platform)

### [includeCost](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#request-includecost)

- **Type**: `boolean`

Include task cost in the response.

**Core Parameters**

Primary parameters that define the task output.

### [model](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `llama-3-1-8b-prompt-enhancer`

Send `auto` instead of an AIR identifier to have the model router choose the model for this task. The rest of the request is unchanged, every value you send is kept, and only the parameters you leave out are filled in. See [Model Router](https://runware.ai/docs/models-api/model-router).

**Learn more** (3 resources):

- [Text To Image: Model Selection](https://runware.ai/docs/learn/text-to-image#model-selection) (learn)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/learn/image-inpainting#model-specialized-inpainting-models) (learn)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/learn/image-outpainting#other-critical-parameters) (learn)

### [prompt](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#request-prompt)

- **Type**: `string`
- **Required**: true
- **Min**: `1`
- **Max**: `300`

Text prompt to enhance.

### [promptMaxLength](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#request-promptmaxlength)

- **Type**: `integer`
- **Min**: `12`
- **Max**: `400`

Maximum length of the enhanced prompt.

### [promptVersions](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#request-promptversions)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `5`
- **Default**: `1`

Number of enhanced prompt variations to generate.

## Response Parameters

### [taskType](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `promptEnhance`

Identifier for the type of task this response belongs to.

### [taskUUID](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier echoed from the original request, used to match async responses to their tasks.

### [text](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#response-text)

- **Type**: `string`
- **Required**: true

Enhanced prompt text.

### [cost](https://runware.ai/docs/models/llama-3-1-8b-prompt-enhancer#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

## Examples

### prompt-enhancement (prompt-enhancement)

```
A golden-lit, intimate table setting at a rustic, upscale restaurant, featuring a delicate, handmade ceramic dish adorned with a rich, charred leek garnish, drizzled with a creamy, hazelnut-infused sauce, and garnished with fragrant herbs, all bathed in warm, soft focus and a muted color palette of golden yellows, burnt oranges, and mossy greens, with subtle, ambient lighting that simulates the warm glow of an autumn evening, capturing the essence of comfort, elegance, and seasonal indulgence.
```

```json
{
  "taskType": "promptEnhance",
  "taskUUID": "71836a3a-af05-4fdf-9d39-6ce528d1d568",
  "model": "runware:llama-3.1-8b@prompt-enhancer",
  "prompt": "Editorial food photograph of charred leeks with hazelnut cream and herb oil on handmade ceramic, set at an intimate restaurant table in warm autumn evening light.",
  "promptMaxLength": 300,
  "promptVersions": 1
}
```

---

### prompt-enhancement (prompt-enhancement)

```
A stunning aerial view of solar panels and wind turbines at dawn, framed by a clean and editorial-style layout with a bright blue sky, gentle morning light, and a subtle gradient to evoke a sense of movement and energy, set against a neutral white or light gray background to allow the visuals to take center stage, with ample white space to balance the composition and convey a sense of optimism and progress towards a sustainable future.
```

```json
{
  "taskType": "promptEnhance",
  "taskUUID": "adbb30bf-9803-4dc7-b931-7347023255bd",
  "model": "runware:llama-3.1-8b@prompt-enhancer",
  "prompt": "Aerial view of solar panels and wind turbines at dawn for a renewable energy annual report cover, clean editorial style, optimistic mood, with open space for the title.",
  "promptMaxLength": 300,
  "promptVersions": 1
}
```

---

### prompt-enhancement (prompt-enhancement)

```
A majestic luxury cliffside resort perched atop a rugged Aegean cliff, bathed in a warm golden light as the first rays of sunrise kiss its stone surfaces, a lone figure in a crisp white robe stands at the edge of an infinity pool, gazing out at the horizon, the gentle lapping of turquoise waters against the shore, the resort's sleek, modern architecture blending seamlessly into the natural landscape, soft focus and shallow depth of field create a dreamy, ethereal quality, the air is filled with the sweet scent of blooming flowers and the distant calls of seagulls, a perfect symphony of tranquility and luxury, the scene is bathed in a warm, golden light that seems to emanate from within, the atmosphere is one of serene contemplation, as if the world has been distilled into this moment of pure beauty.
```

```json
{
  "taskType": "promptEnhance",
  "taskUUID": "af209229-2213-454e-bcda-21acf11cfdc5",
  "model": "runware:llama-3.1-8b@prompt-enhancer",
  "prompt": "Luxury cliffside resort above the Aegean at sunrise, with an infinity pool, one guest in a white robe, and a quiet editorial travel-campaign mood.",
  "promptMaxLength": 300,
  "promptVersions": 1
}
```

---

### prompt-enhancement (prompt-enhancement)

```
A sleek, matte-black electric motorcycle hurtles through a dimly lit, rain-soaked city tunnel, its headlights casting a piercing beam of light into the darkness, illuminated by dramatic lighting effects that accentuate its angular lines and aggressive curves, shot in a premium launch commercial style with fast-paced cuts and dynamic camera movements, featuring a deep blue-black color palette and bold, graphic textures.
```

```json
{
  "taskType": "promptEnhance",
  "taskUUID": "427dd670-6af3-4c89-b4a9-978c31aadb36",
  "model": "runware:llama-3.1-8b@prompt-enhancer",
  "prompt": "A matte-black electric motorcycle speeding through a rain-soaked city tunnel at night, filmed like a premium launch commercial with dramatic lighting and dynamic camera movement.",
  "promptMaxLength": 300,
  "promptVersions": 1
}
```