---
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 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.

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

## 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`

Specifies a webhook URL where JSON responses will be sent 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/platform/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 complete results directly in the API response.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

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

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

- **Type**: `boolean`
- **Default**: `false`

Include task cost in the response.

**Generation Parameters**

Core parameters for controlling the generated content.

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

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

Identifier of the model to use for generation.

**Learn more** (3 resources):

- [Text To Image: Model Selection The Foundation Of Generation](https://runware.ai/docs/guides/text-to-image#model-selection-the-foundation-of-generation) (guide)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/guides/image-inpainting#model-specialized-inpainting-models) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

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

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

The 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`

Type of the task.

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

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

UUID of the task.

### [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

### Moonlit Glasshouse Tea Ritual (Prompt Enhance)

**Request**:

```json
{
  "taskType": "promptEnhance",
  "taskUUID": "91b29c95-7352-4fa0-babd-4673dda40929",
  "model": "runware:llama-3-1-8b@prompt-enhancer",
  "prompt": "quiet midnight tea ceremony in a giant overgrown glasshouse, moths circling, cracked tiles, elegant host in silver robes",
  "promptMaxLength": 260,
  "promptVersions": 1
}
```

**Response**:

```json
{
  "taskType": "promptEnhance",
  "taskUUID": "91b29c95-7352-4fa0-babd-4673dda40929",
  "text": "A serene midnight tea ceremony unfolds within a sprawling, overgrown glasshouse, with delicate, crystalline structures reflecting the faint moonlight, intricate web-like patterns on the walls, a lone, elegant host in a flowing, silver robe stands poised, surrounded by a halo of flickering, ethereal moths, as the air is thick with the scent of decay and old, dusty secrets, the host's eyes closed, a gentle smile on their lips, the tea itself, a delicate, crystal cup, glows softly in their hand, surrounded by the eerie, abandoned beauty of the overgrown, ancient glasshouse.",
  "cost": 0.0013
}
```

---

### Brass Astronomer Desert Encampment (Prompt Enhance)

**Request**:

```json
{
  "taskType": "promptEnhance",
  "taskUUID": "59c13289-d6cc-41ea-9ece-5448e6c51c31",
  "model": "runware:llama-3-1-8b@prompt-enhancer",
  "prompt": "A solitary astronomer in a brass-toned desert camp mapping strange stars beside a mechanical telescope, surreal retrofuturist mood",
  "promptMaxLength": 260,
  "promptVersions": 1
}
```

**Response**:

```json
{
  "taskType": "promptEnhance",
  "taskUUID": "59c13289-d6cc-41ea-9ece-5448e6c51c31",
  "text": "A lone astronomer sits in a worn, brass-toned desert camp, surrounded by a tangle of wires and dusty optics, gazing up at a massive mechanical telescope that stretches towards the stars like a metallic, pulsing spider, the instrument's lenses reflecting a kaleidoscope of colors and patterns, the astronomer's face illuminated by the soft glow of a vintage lantern, the desert night sky stretching out behind them like a canvas of infinite possibility, the air is thick with the scent of old electronics and distant stars.",
  "cost": 0.0013
}
```