# Rogue API > A REST API and MCP server over Rogue Studio (app.roguestudio.ai), an adult-oriented image and video generation platform. Generate and edit images, create and extend videos, upload references and manage projects and the library with scoped API keys, queued generations and signed webhooks. - Base URL: https://rogue-api.sentryq-va.com - OpenAPI document: https://rogue-api.sentryq-va.com/openapi.json - MCP server (Streamable HTTP): https://rogue-api.sentryq-va.com/mcp - Console (sign in, create keys, webhooks, logs): https://rogue.sentryq-va.com/dashboard ## Essentials - Authenticate every request with `Authorization: Bearer rk_live_...` (or `X-API-Key`). Keys are created by a person in the console and act on their connected Rogue account. - JSON in and out, snake_case fields. Every response has an `X-Request-Id` header. - Send an `Idempotency-Key` header with every POST; a retry with the same key returns the first result and is never charged twice. - Generations are asynchronous. A create call answers 202 with status `queued`; poll `GET /v1/generations/{id}?wait=60` until the status is `succeeded`, `failed` or `canceled`, or use webhooks. - Media references accept an upload id (`upl_...`), an https URL (imported automatically) or the id of an item in the Rogue library. - Errors are RFC 9457 problem details (`application/problem+json`) with a stable `code`; the `type` URL points at the matching section of the errors page. - Respect `Retry-After` on 429 and 503. Estimate costs first with `POST /v1/estimate`. - Adult media is returned as URLs only, never inline. ## Get started - [Introduction](https://rogue.sentryq-va.com/docs): What Rogue API is and how the pieces fit together. - [Quickstart](https://rogue.sentryq-va.com/docs/quickstart): Sign in, create a key and make your first call in three steps. - [Authentication](https://rogue.sentryq-va.com/docs/authentication): API keys, scopes, budgets and the Rogue connection behind them. ## Guides - [Generations](https://rogue.sentryq-va.com/docs/generations): Create images and videos, follow the job lifecycle and wait for results. - [Uploads and references](https://rogue.sentryq-va.com/docs/uploads): Upload files or import URLs and use them as references. - [Models and parameters](https://rogue.sentryq-va.com/docs/models): Pick a model, read its allowed settings and add styles. - [Webhooks](https://rogue.sentryq-va.com/docs/webhooks): Signed events when generations finish, with verification code. - [MCP server](https://rogue.sentryq-va.com/docs/mcp): Connect Claude Code, Claude Desktop, Cursor and other MCP clients. ## Reference - [Errors](https://rogue.sentryq-va.com/docs/errors): Every error code, what it means and what to do about it. - [Rate limits and credits](https://rogue.sentryq-va.com/docs/rate-limits): Request limits, concurrency, credit budgets and costs. - [API reference](https://rogue.sentryq-va.com/docs/reference): Every endpoint and field, generated from the OpenAPI document. ## Optional - [OpenAPI document](https://rogue-api.sentryq-va.com/openapi.json): the full machine-readable contract - [Error codes](https://rogue.sentryq-va.com/docs/errors): one anchored section per code, for example https://rogue.sentryq-va.com/docs/errors#insufficient_credits