Endpoints
Base URL:https://model-api.runcomfy.net
| Endpoint | Method | Purpose |
|---|---|---|
/v1/models/{model_id} | POST | Submit an asynchronous request |
/v1/requests/{request_id}/status | GET | Check request status |
/v1/requests/{request_id}/result | GET | Retrieve request result |
/v1/requests/{request_id}/cancel | POST | Cancel a queued request |
Common Path Parameters
model_id string (required). The identifier of the model you want to run (e.g., blackforestlabs/flux-1-kontext/pro/edit).

request_id string (required for non‑submit endpoints). Returned by POST /v1/models/{model_id}; use it to check status, fetch result, or cancel.
Submit a Request
Submit an asynchronous request to a Playground model. Returns arequest_id and convenience URLs to poll and fetch results.
Request Example
Example using the blackforestlabs/flux-1-kontext/pro/edit model:prompt, image_url, seed, aspect_ratio) map 1:1 to this model’s Input schema. See the model’s API page in the Playground for required fields, types, enums, and defaults. For reference, see the Input schema on the blackforestlabs/flux-1-kontext/pro/edit API page.

Response Example
request_id(string): Unique identifier for the request.status_url(string): URL to poll for request progress.result_url(string): URL to fetch outputs once the request completes.cancel_url(string): URL to cancel the request if still queued.
Monitor Request Status
Poll the current state for arequest_id. Typical states are: in_queue → in_progress → completed (or cancelled).
Request Example
Response Example
status(string): States while polling:in_queue,in_progress,completed,cancelled.status_url(string): URL to poll for request progress.result_url(string): URL to fetch outputs once the request completes.- For
in_queue,queue_position(integer): Your position in the queue.
Retrieve Request Results
Whenstatus is completed, fetch the final outputs. The shape of result (single URI vs. object/array) is defined by the model’s Output schema on its API page in the Playground.
Request Example
Response Example
status(string): One ofsucceeded,failed,in_queue,in_progress, orcancelled.output(object, present only whenstatusissucceeded): a single URL string (one file) or an array of URL strings (multiple files).created_at(string): When the request was created.finished_at(string): When the request completed.
Cancel a Request
Cancel a request that is still queued. Already completed or terminated requests will be no‑ops.Request Example
Response Example
outcome(string):cancelledif the cancellation is accepted;not_cancellableif the request is already in progress or completed.
