---
title: Prompts | RunAPI
description: Search published prompt examples and read each prompt's example media
  and reference images.
url: https://runapi.ai/docs/resources/prompts.md
canonical: https://runapi.ai/docs/resources/prompts
locale: en
---

> HTML version: https://runapi.ai/docs/resources/prompts
> Site index for agents: https://runapi.ai/llms.txt

# Prompts

The Prompts API returns published prompt examples with the endpoints
that can run them. It is public and needs no API key.

## List prompts

```shell
curl "https://runapi.ai/api/v1/prompts?modality=video&q=sunset&limit=20"
```

Filter with `modality`, `category`, `tags` (comma-separated), `q`, and
`model`. Page with `page` and `limit` (at most 100). The response
contains `prompts` and `pagination` (`page`, `per_page`, `total`,
`pages`).

## Retrieve a prompt

```shell
curl "https://runapi.ai/api/v1/prompts/PROMPT_ID"
```

## Prompt fields

| Field | Description |
|----------
| `id` | Prompt ID. |
| `title`, `prompt`, `negative_prompt` | Title, prompt text, and optional negative prompt. |
| `language`, `modality`, `input_kind`, `category`, `tags` | Prompt metadata. |
| `preview_url` | Cover image URL, or `null` when the prompt has no example image. |
| `media` | Every example and reference item, in source order. See below. |
| `source_url`, `published_at` | Original source page and publication time. |
| `eligible_endpoints` | Endpoints that can run the prompt. |

## Media

Each `media` item describes one file attached to the prompt:

| Field | Description |
|----------
| `role` | `example_output` or `preview` for example results; `reference_input` for a reference image the user must supply. May be `null`. |
| `modality` | `image`, `video`, or `audio`, lowercase. May be `null`. |
| `media_type` | MIME type, such as `video/mp4`. May be `null`. |
| `url` | File URL. The item used as the cover has the same URL as `preview_url`. |
| `alt_text` | Text description, or `null`. |

```json
"media": [
  {"role": "example_output", "modality": "video", "media_type": "video/mp4", "url": "https://example.test/clip.mp4", "alt_text": null},
  {"role": "reference_input", "modality": "image", "media_type": "image/png", "url": "https://example.test/face.png", "alt_text": "Face"}
]
```

A prompt with a `reference_input` item gives results like its examples
only when you provide your own reference image. A video-only prompt has
`preview_url: null`; read its videos from `media`.

---

## More from RunAPI

- [Home](https://runapi.ai/.md)
- [Model Catalog](https://runapi.ai/models.md)
- [Pricing](https://runapi.ai/pricing.md)
- [Providers](https://runapi.ai/models)
- [Documentation](https://runapi.ai/docs/guides)
- [SDKs](https://runapi.ai/sdk.md)
- [CLI](https://runapi.ai/cli.md)
- [MCP Server](https://runapi.ai/mcp.md)
- [x402](https://runapi.ai/x402.md)
- [Claude Code vs Cursor](https://runapi.ai/claude-code-vs-cursor.md)
- [Cursor API Setup](https://runapi.ai/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/openrouter-alternative.md)
- [Enterprise](https://runapi.ai/contact.md)
- [Contact](https://runapi.ai/contact.md)
- [Terms](https://runapi.ai/terms.md)
- [Privacy](https://runapi.ai/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "TechArticle",
    "headline": "Prompts",
    "description": "Search published prompt examples and read each prompt's example media and reference images.",
    "url": "https://runapi.ai/docs/resources/prompts",
    "mainEntityOfPage": "https://runapi.ai/docs/resources/prompts"
  }
]
```
