CC Prompt API

CC Prompt API

Search the CC Prompt Galaxy library with a natural-language visual description and return matched images, videos and prompts for agents, skills, plugins or apps.

Search endpoint POST https://ccprompt.com/api/v1/search
Natural-language search

Search by subject, style, scene, character or creative use case.

Structured results

Return media URLs, prompt text, detail links, aspect ratio and match score.

Simple parameters

Start with one search endpoint and optionally limit results to images or videos.

API Keys

Create a Key

Sign in to create a CC Prompt API key. Each account can keep up to 10 active keys.

Sign in

Docs

API Documentation

Base URL

https://ccprompt.com/api/v1

Authentication

Every request must include your API key in the Authorization header.

POST /search
Authorization: Bearer xixi_live_your_key
Content-Type: application/json

Search endpoint

ItemDescription
MethodPOST
Path/search
Content-Typeapplication/json
PurposeSearch the library with a natural-language description and return matching images, videos and prompts.

Request example

{
  "query": "a robot cafe in a futuristic city, suitable for a short video cover",
  "mediaType": "image",
  "limit": 12
}

Response example

{
  "ok": true,
  "product": "xixi-api",
  "query": "a robot cafe in a futuristic city, suitable for a short video cover",
  "results": [
    {
      "id": "item_xxx",
      "mediaType": "image",
      "title": "Robot cafe in a futuristic city",
      "imageUrl": "https://media.ccprompt.com/...",
      "thumbnailUrl": "https://media.ccprompt.com/...",
      "videoUrl": "",
      "prompt": "...",
      "detailUrl": "https://ccprompt.com/item/item_xxx",
      "score": 0.82
    }
  ]
}

Request fields

FieldTypeRequiredDescription
querystringYesA natural-language visual description. Include subject, style, scene, character or use case.
mediaTypestringNoLeave empty to search all media. Use image for images only or video for videos only.
limitnumberNoNumber of results to return. Default 20, minimum 1, maximum 50.
pagenumberNoPage number for pagination. Default 1.

Response fields

FieldTypeDescription
okbooleanWhether the request succeeded.
productstringFixed value: xixi-api.
querystringThe visual description used for this search.
mediaTypestringThe media scope used for this search: all, image or video.
pagenumberCurrent page number.
limitnumberMaximum number of results requested.
totalnumberTotal number of matched results.
totalPagesnumberTotal number of pages.
resultsarraySearch result list.

results fields

FieldTypeDescription
idstringResult ID. Useful for deduping or saving a selected item.
mediaTypestringMedia type: image or video.
titlestringTitle when available. Use prompt as the main text when title is empty.
imageUrlstringMain image URL for display. Video results usually include a cover image.
thumbnailUrlstringThumbnail URL for lists, cards and quick previews.
videoUrlstringVideo URL. Empty for image results.
promptstringPrompt text for reference, rewriting or generation workflows.
authorstringAuthor or source attribution when available.
ratiostringAspect ratio, such as 1:1, 16:9 or 9:16.
widthnumberMedia width. Unknown values are 0.
heightnumberMedia height. Unknown values are 0.
tagsarrayBasic tags such as media type and aspect ratio.
scorenumberSemantic match score. Higher usually means closer to the query.
detailUrlstringCC Prompt Galaxy detail page for the result.

Error format

{
  "ok": false,
  "error": {
    "code": "missing_api_key",
    "message": "Missing Authorization Bearer token."
  }
}

Common error codes

HTTPcodeDescription
401missing_api_keyThe request does not include an Authorization Bearer token.
401invalid_api_keyThe key does not exist, has been revoked or is unavailable.
400missing_queryThe query field is missing.
429rate_limitedToo many requests. Retry later.
503search_unavailableSearch is temporarily unavailable.

curl example

curl https://ccprompt.com/api/v1/search \
  -H "Authorization: Bearer xixi_live_your_key" \
  -H "Content-Type: application/json" \
  -d "{\"query\":\"clean product image for an ecommerce poster\",\"mediaType\":\"image\",\"limit\":8}"

The CC Prompt API is designed for visual inspiration search and prompt reference workflows, including ideation, composition research, style exploration and prompt rewriting.