
- Your app sends a structured request to an API endpoint (for example,
/v1/text_to_image) with prompt text, model options, and any reference images. - The API creates an asynchronous task on RunwayML’s backend to run the chosen model.
- The API immediately returns a task id so your app remains responsive.
- Your app polls the tasks endpoint until the job completes, then reads the returned output (for example, a generated image URL).

API keys are secrets. If a key is leaked, requests made with it will be billed to your account. Revoke or rotate keys immediately if you suspect exposure.


- Consult the RunwayML API Reference in the Developer Portal for full details on endpoints, headers, and model‑specific parameters.
- Official SDKs (Node, Python, etc.) may be available to simplify authentication, retries, and polling. You can always call the HTTP endpoints directly (curl, fetch, or any HTTP client) for testing or custom integration.
- POST JSON to the text-to-image endpoint.
- The API responds with a task id.
- Poll the tasks endpoint for completion and retrieve the generated asset URL.
- After receiving the task id, call
GET /v1/tasks/{id}and include your Authorization header to check progress. - Continue polling until the task
statusbecomessucceeded(orfailed/cancelledas applicable). - When succeeded, the
outputsarray typically includes the generated asset URI.
- The path (endpoint) identifies the resource or action.
- The HTTP method determines the operation: POST to create a task, GET to retrieve status or results, DELETE to remove, PUT/PATCH to update.
Best-practice workflow (summary)
- Create an API key in the Dev Portal and store it securely (server-side secrets).
- From your backend, POST to the appropriate endpoint (for example,
/v1/text_to_image) with prompt and options. - Receive a task id in the response and persist it if needed.
- Poll
GET /v1/tasks/{id}untilstatusissucceeded. - Read the output
uriand surface the generated image/video in your app.
Tip: Keep long-running polling on the server or use webhooks (if available) to avoid exposing API keys or creating heavy client polling. Implement retries and backoff to handle transient API errors.
- RunwayML: https://runwayml.com
- Check the RunwayML Developer Portal for API Reference, keys, billing, and usage quotas.
- For HTTP testing: curl, Postman, or your preferred HTTP client.
- This content explains the RunwayML API workflow: authentication, posting tasks, polling for results, and handling rate limits. Use the Dev Portal API Reference and SDKs for up‑to‑date endpoint names, headers, and model parameters.