Cloudflare · Text
Clef Flash API pricing
cloudflare/clef-flash
Structured decisions. Clef Flash by Cloudflare, routed through INFRO on a Cloudflare account you connect — alongside every other provider you run. Cloudflare bills you for it directly, on that account and at your own rate. INFRO adds routing, failover, request logs, cost attribution and policy around it, and takes no part of what you pay Cloudflare.
Pricing
Cloudflare rate
$0.038
per 1M input tokens, output free, billed to you by Cloudflare
INFRO adds
$0
0% markup on model spend
Per-token rates
$0.038 / 1M input tokens·$0.00 / 1M output tokens
Output tokens are free, so the headline figure above is the input rate, as Cloudflare publishes it.
Calling Clef Flash
POST /v1/decisionsimport os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["INFRO_API_KEY"],
base_url="https://api.infro.io/v1",
)
decision = client.decisions.create(
model="cloudflare/clef-flash",
input="I was charged twice. Please fix this.",
questions=[{
"type": "predicate",
"name": "refund_request",
"instructions": "Is the customer asking for a refund?",
}],
)What a decision model answers
- Typed questions about the evidence you send: yes or no, one option of a closed set, a level on a rubric.
- Probabilities on every answer, and a confidence for choice and score. No generated text.
- Every INFRO decision feature runs on it: decision policies, rerank, classifier guardrails, the route classifier and evals.
OpenAI's or TypeSafe's request body, on your own Cloudflare connection or an OpenRouter one: your INFRO gateway key, spend limits checked before the call, and an estimated cost on every response.