Skip to main content
POST
/
test_framework
/
v1
/
metrics
/
simplify_prompt
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/metrics/simplify_prompt/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '
{
  "original_prompt": "<string>",
  "metric_id": 123
}
'
{
  "simplified_prompt": "<string>",
  "original_prompt": "<string>",
  "skipped_simplification": true,
  "progress_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cekura.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Body

original_prompt
string
required

The verbose prompt to simplify

metric_id
integer

Optional metric ID. If provided and metric is already optimized, returns stored instructions instead of simplifying.

Response

200 - application/json
simplified_prompt
string
original_prompt
string
skipped_simplification
boolean
progress_id
string

Returned when async processing is needed. Poll simplify_prompt_progress for result.