Semua model

Clef

@cf/cloudflare/clef

Mulai cepat

# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
  -H "content-type: application/json" \
  -d '{
    "model": "@cf/cloudflare/clef",
    "questions": {},
    "state": "<value>"
  }'

# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
  -J '{"model": "@cf/cloudflare/clef", "questions": {}, "state": "<value>"}'

Parameter

Input
questions object wajib

Map of question id to a typed question (noul, choice, or score). 1 to 64 questions; ids may use letters, digits, '_', '.', '-' (max 100 chars). Answers are returned under the same ids.

state wajib

Required. The content to evaluate: a string, or structured data (object/array) such as records, chat logs, or application state. Long text state is truncated to fit the model's token limit.

images array opsional

Clef extension to the System One API. Optional embedded PNG, JPEG, or WebP images placed before the state (max 4; 4 MiB and 16 megapixels each, 8 MiB total decoded; whole request body max 13 MiB). Remote URLs are not accepted. Pass a public URL; to use a local file, upload it (free) via POST /v1/media (≤40MB) and pass the returned url.

model string opsional bawaan: "clef"

Fixed: "clef".

Output