What Is the Model API?
The RunComfy Model API gives you a unified, production‑ready RESTful API to run any model inside the RunComfy Playground. RunComfy handles queuing, rate-limit, monitoring and smart routing, etc., then returns a request ID immediately and hosted CDN URLs when the run completes. Integrate once and reuse across all models.Choose the Model
In this example, we’ll use one of our most popular models, blackforestlabs/flux-1-kontext/pro/edit. Itsmodel_id is blackforestlabs/flux-1-kontext/pro/edit, which you’ll call via the Async Queue API at the Base URL https://model-api.runcomfy.net.

Authentication
All API calls require a Bearer token. Add the headerAuthorization: Bearer <token> to every request (replace <token> with your API key). Get your API key from the Profile page (click your profile icon in the upper-right).
Submit a Request
Create a JSON body that matches this model’s input schema. On success you’ll receive arequest_id and resource CDN URLs. If the model API expects input files, please pass public HTTPS URLs that can be fetched from RunComfy server‑side.
Request Example

Monitor Request Status
PollGET /v1/requests/{request_id}/status until the request moves through in_queue → in_progress → completed.
Request Example
Retrieve Request Results
CallGET /v1/requests/{request_id}/result to fetch outputs (e.g., an image URL)
Request Example
