POST /v1/recipes/{id}/runs

Run a recipe

Answers the recipe's questions and starts it. An `arm` or `reprompt` recipe makes one generation; a `run` recipe starts a run you can read and cancel at `/v1/runs/{id}`. Pass `wait` to hold the response until it settles.

Permission

A key with chosen permissions needs generation.write. A key made with every permission may always call it. It can spend: send an Idempotency-Key so a retry replays the first answer.

Parameters

Body

Response: RecipeRun

201 · What running a recipe started.

Example

The required fields only, each a placeholder. Replace them before sending.

curl -X POST "https://api.meetkuro.com/v1/recipes/<id>/runs" \
  -H "Authorization: Bearer $KURO_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"<prompt>"}'
import { Kuro } from "@meetkuro/sdk";

const kuro = new Kuro(); // reads KURO_API_KEY
await kuro.recipes.run("<id>", { prompt: "A portrait of a fisherman" }, { wait: 60 });

Every operation