API integration

HTTP API for prompt analysis and optimization

Integrate prompt analysis and optimization directly into your applications. Stateless JSON endpoints, no key, nothing stored, and the same engine as every other PromptFlowEngine product.

  • Live
  • No API key
  • 60 requests / minute

What it does

The HTTP API exposes the engine at https://promptflowengine.com/api/v1. You send JSON and get JSON back. There is no sign-up and no key, because the API holds no user data: every response is computed from the request body and then forgotten.

Endpoints cover the whole engine: analyze, validate, optimize, restructure, compare, tokens, scan, and sanitize, plus read-only catalogues of rules and models. Token counts for OpenAI models are exact.

The API is rate limited to 60 POST requests a minute per client. For bulk work or sensitive text, run the same engine locally with the CLI, where there is no network and no limit.

Practical example

One request

A call to the analyze endpoint. The response values shown were computed by the engine when this page was built, for the prompt in the request.

request
curl -s https://promptflowengine.com/api/v1/analyze \
  -H 'content-type: application/json' \
  -d '{"prompt":"Write something about our product.","model":"gpt-4.1"}'
response (abridged)
{
  "quality": {
    "overall": 84,
    "grade": "good"
  },
  "tokens": {
    "tokens": 6,
    "method": "exact"
  },
  "findings": [
    {
      "code": "vague_language",
      "severity": "warning"
    },
    {
      "code": "missing_output_format",
      "severity": "info"
    },
    {
      "code": "missing_length_guidance",
      "severity": "info"
    }
  ]
}

Computed by the engine when this page was built. The full response also includes the message, explanation, and suggested fix for each finding, plus security and requirement details.

Key benefits

Features

Who it is for

Use cases

Frequently asked questions

Do I need an API key?

No. The API takes no key, token, or cookie. Abuse is limited by a rate limit of 60 POST requests a minute per client IP.

Is my prompt stored or logged?

No. Requests are processed in memory. Logs record the route, status, duration, and a size bucket, never prompt text or results.

Can I call the API from a browser?

Yes. CORS is open without credentials, so front-end code can call it directly.

What are the size limits?

The request body can be up to 256 KB, and each text field up to 100,000 characters.

Every product runs the same engine, so they combine without surprises.

Learn the technique behind it

Guides from the prompt engineering knowledge center that explain the ideas this product applies.

One engine, wherever you work with AI.

Free, deterministic, and private. No sign-up.