{"openapi":"3.1.0","info":{"title":"render.ai API","version":"1.0","description":"Generate AI-powered presentations programmatically. Create decks, poll for completion, and optionally export to PDF.\n\n## Quick Start\n\nCreate a presentation in three steps:\n\n**1. Start a generation**\n\n```bash\ncurl -X POST https://api.render.ai/v1/generations \\\n  -H \"X-API-Key: sk-rndr-YOUR_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"inputText\": \"Quarterly business review for Q1 2026\",\n    \"textMode\": \"generate\",\n    \"numCards\": 10,\n    \"themeId\": \"blueprint\"\n  }'\n```\n\n**2. Poll for completion**\n\n```bash\ncurl https://api.render.ai/v1/generations/GENERATION_ID \\\n  -H \"X-API-Key: sk-rndr-YOUR_KEY\"\n```\n\nPoll every 10 seconds. A typical generation completes in 1-3 minutes.\n\n**3. Access the result**\n\nWhen `status` is `\"completed\"`, the response includes `contentUrl` (link to view/edit the presentation) and, when `exportAs` was set on the request, `exportUrl` (a PDF download link).\n\n## Authentication\n\nAll API requests (except the health check) require an API key passed via the `X-API-Key` header:\n\n```\nX-API-Key: sk-rndr-YOUR_API_KEY\n```\n\nAPI keys are managed from the render.ai dashboard under **Account > API Keys**. Each key is tied to an organization and its credit balance.\n\n## Polling Best Practices\n\n- **Recommended interval:** Poll every 10 seconds.\n- A typical generation completes in 1-3 minutes.\n- Do not poll more frequently than every 5 seconds.\n- Stop polling when the status is `completed`, `failed`, or `cancelled`.\n\n## Idempotency\n\nThe `Idempotency-Key` header on `POST /v1/generations` is optional. Include it to make a retry safe: repeated requests with the same key return the original generation without deducting additional credits. Omit it and every request starts a new generation, so a retried call is charged again.\n\n```bash\ncurl -X POST https://api.render.ai/v1/generations \\\n  -H \"X-API-Key: sk-rndr-YOUR_KEY\" \\\n  -H \"Idempotency-Key: my-unique-request-123\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"inputText\": \"...\", \"textMode\": \"generate\"}'\n```\n\n## Credits\n\nEach generation costs **40 credits**. Check your balance at any time via `GET /v1/usage`.\n"},"servers":[{"url":"https://api.render.ai","description":"Production"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"Health","description":"Service health check"},{"name":"Generations","description":"Create, monitor, and cancel presentation generations"},{"name":"Themes","description":"Browse available presentation themes"},{"name":"Usage","description":"Check credit balance and generation history"},{"name":"MCP Server","description":"## Model Context Protocol (MCP)\n\nrender.ai exposes an MCP server that allows AI assistants like **Claude**, **Cursor**, **VS Code**, **Codex**, and other MCP-compatible clients to generate presentations directly through tool calls.\n\n### Endpoint\n\n```\nhttps://api.render.ai/mcp\n```\n\n**Transport:** Streamable HTTP\n\n### Authentication (OAuth, default)\n\nConfigure the client with **only the endpoint above — no API key**. On first connect the client discovers render.ai OAuth, opens a browser window to sign in and approve access, and stores the returned access token automatically.\n\nThe flow follows the MCP authorization spec ([RFC 9728](https://www.rfc-editor.org/rfc/rfc9728.html) protected-resource metadata and [RFC 8707](https://www.rfc-editor.org/rfc/rfc8707.html) resource indicators):\n\n1. A credential-less request to `/mcp` returns `401 Unauthorized` with a discovery challenge:\n   ```\n   WWW-Authenticate: Bearer resource_metadata=\"https://api.render.ai/.well-known/oauth-protected-resource\"\n   ```\n2. `GET /.well-known/oauth-protected-resource` returns the MCP `resource` (`https://api.render.ai/mcp`) and its `authorization_servers`.\n3. The client registers dynamically, runs PKCE authorization in the browser, and exchanges the code for a resource-bound access token.\n4. Subsequent `/mcp` requests send `Authorization: Bearer <token>`.\n\nAccess tokens are bound to the `https://api.render.ai/mcp` resource; a token issued for another audience is rejected. An expired token receives the same 401 challenge and the client reauthorizes. No API key is required for this path.\n\n### Available Tools\n\n| Tool | Description |\n|------|-------------|\n| `generate_presentation` | Create an AI-powered presentation from a text prompt. Selects a suitable theme automatically and supports slide count, text density, tone, audience, image options, and export format. |\n| `get_generation_status` | Check generation progress. UI auto-polls and shows a first-slide preview when completed. |\n| `cancel_generation` | Cancel a running generation (only `pending` or `processing` status). |\n| `check_usage` | Check credit balance, plan details, available generation slots, and recent generation history. |\n\nDescribe style preferences in `inputText` or `additionalInstructions`; render.ai chooses a suitable theme automatically. `themeId` is an optional override for an already-known ID.\n\n### Client Configuration (OAuth, no credential)\n\n#### Claude Desktop & Web\n\nOpen **Settings > Connectors**, click **Add custom connector**, paste the endpoint above, and connect. Claude opens the render.ai sign-in the first time you use the server.\n\n#### Claude Code\n\nAdd the remote server with one command -- no config file or API key:\n\n```\nclaude mcp add --transport http render-ai https://api.render.ai/mcp\n```\n\n#### Cursor\n\nAdd to `.cursor/mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"render-ai\": {\n      \"url\": \"https://api.render.ai/mcp\"\n    }\n  }\n}\n```\n\n#### VS Code\n\nAdd to `.vscode/mcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"render-ai\": {\n      \"type\": \"http\",\n      \"url\": \"https://api.render.ai/mcp\"\n    }\n  }\n}\n```\n\n#### Codex\n\nAdd the remote server, then sign in through the browser -- no config file or API key:\n\n```\ncodex mcp add render-ai --url https://api.render.ai/mcp\ncodex mcp login render-ai\n```\n\n#### mcp-remote (generic bridge)\n\nFor any client without native remote OAuth support, bridge over stdio (requires Node.js):\n\n```json\n{\n  \"mcpServers\": {\n    \"render-ai\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-remote\", \"https://api.render.ai/mcp\"]\n    }\n  }\n}\n```\n\n### Advanced: API key authentication\n\nFor existing integrations or clients that cannot perform the OAuth flow, authenticate with an API key instead -- the same `sk-rndr-` keys used for the REST API, passed via the `X-API-Key` header (or `Authorization: Bearer`):\n\n```json\n{\n  \"mcpServers\": {\n    \"render-ai\": {\n      \"url\": \"https://api.render.ai/mcp\",\n      \"headers\": {\n        \"X-API-Key\": \"sk-rndr-YOUR_API_KEY\"\n      }\n    }\n  }\n}\n```\n\nFor stdio bridges, pass the key with `--header`:\n\n```json\n{\n  \"mcpServers\": {\n    \"render-ai\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-remote\", \"https://api.render.ai/mcp\", \"--header\", \"X-API-Key:sk-rndr-YOUR_API_KEY\"]\n    }\n  }\n}\n```\n\n### Features\n\n- **Rich UI (MCP Apps)** -- Tools return interactive HTML previews including animated progress indicators with auto-polling, and first-slide image previews on completion for clients that support MCP Apps.\n- **Full generation control** -- All REST API generation options (known theme IDs, slide count, text density, tone, audience, image source/style, export format) are available as tool parameters.\n- **Streamable HTTP transport** -- Reliable communication with SSE streaming for real-time progress.\n"}],"x-tagGroups":[{"name":"Getting Started","tags":["Health"]},{"name":"Endpoints","tags":["Generations","Themes","Usage"]},{"name":"Integrations","tags":["MCP Server"]}],"paths":{"/v1/health":{"get":{"operationId":"healthCheck","summary":"Health check","description":"Returns service health status. Does not require authentication.","tags":["Health"],"security":[],"responses":{"200":{"description":"Service is healthy","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"ok"}},"required":["status"]}}}}}}},"/v1/generations":{"post":{"operationId":"createGeneration","summary":"Create generation","description":"Start a new presentation generation. Deducts **40 credits**.\n\nUse the `Idempotency-Key` header to prevent duplicate generations on retries.\n","tags":["Generations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. Unique key to prevent duplicate generations. Must contain 1-128 alphanumeric characters, hyphens, or underscores. Repeated requests with the same key return the original result without deducting additional credits. If the header is omitted, every request starts a new generation and no deduplication is applied.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]{1,128}$","example":"my-unique-request-123"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGenerationRequest"},"example":{"inputText":"Quarterly business review for Q1 2026","textMode":"generate","numCards":10,"themeId":"blueprint","exportAs":"pdf","textOptions":{"amount":"medium","tone":"professional","audience":"executives","language":"en"},"imageOptions":{"source":"stock","style":"photorealistic"}}}}},"responses":{"202":{"description":"Generation accepted and started","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationResponse"},"example":{"generationId":"gen_abc123def456","status":"processing","credits":{"deducted":40,"remaining":960},"metadata":{"numCards":10,"format":"presentation","createdAt":"2026-03-11T10:00:00.000Z"}}}}},"400":{"description":"Invalid parameters or input too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"examples":{"invalidParameters":{"summary":"Validation error","value":{"error":{"code":"INVALID_PARAMETERS","message":"inputText: Required","statusCode":400,"details":{"issues":[{"path":["inputText"],"message":"Required"}]}},"requestId":"req_abc123"}},"inputTooLarge":{"summary":"Input exceeds limit","description":"Returned only when the length bound is the sole validation failure. A request that is both over-length and otherwise malformed returns INVALID_PARAMETERS with the full issue list instead.","value":{"error":{"code":"INPUT_TOO_LARGE","message":"inputText must be at most 10000 characters, received 24310","statusCode":400},"requestId":"req_abc124"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"Insufficient credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"error":{"code":"INSUFFICIENT_CREDITS","message":"This generation requires 40 credits, but 15 are available.","statusCode":402,"details":{"requiredCredits":40,"availableCredits":15,"creditsResetAt":"2026-04-01T00:00:00.000Z"},"action":{"type":"upgrade_plan","label":"Upgrade plan","url":"https://render.ai/billing"}},"requestId":"req_abc125"}}}},"403":{"description":"Plan upgrade required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"error":{"code":"PLAN_UPGRADE_REQUIRED","message":"This operation requires a paid plan.","statusCode":403,"action":{"type":"upgrade_plan","label":"Upgrade plan","url":"https://render.ai/billing"}},"requestId":"req_abc126"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/generations/{generationId}":{"get":{"operationId":"getGeneration","summary":"Get generation status","description":"Poll generation status. Returns current state including content and export URLs when completed.","tags":["Generations"],"parameters":[{"name":"generationId","in":"path","required":true,"description":"The generation ID returned from the create endpoint.","schema":{"type":"string","example":"gen_abc123def456"}}],"responses":{"200":{"description":"Generation status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationResponse"},"examples":{"processing":{"summary":"Still processing","value":{"generationId":"gen_abc123def456","status":"processing","metadata":{"numCards":10,"format":"presentation","createdAt":"2026-03-11T10:00:00.000Z"}}},"completed":{"summary":"Completed with export","value":{"generationId":"gen_abc123def456","status":"completed","contentUrl":"https://render.ai/chat/abc123","screenshotUrl":"https://render.ai/api/screenshots/abc123/thumbnail.jpeg","exportUrl":"https://render.ai/api/exports/abc123/presentation.pdf","exportExpiresAt":"2026-03-13T10:00:00.000Z","metadata":{"numCards":10,"format":"presentation","createdAt":"2026-03-11T10:00:00.000Z","completedAt":"2026-03-11T10:02:15.000Z"}}},"failed":{"summary":"Generation failed","value":{"generationId":"gen_abc123def456","status":"failed","error":{"code":"GENERATION_FAILED","message":"The AI generation process encountered an error."},"metadata":{"numCards":10,"format":"presentation","createdAt":"2026-03-11T10:00:00.000Z"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Plan upgrade required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"error":{"code":"PLAN_UPGRADE_REQUIRED","message":"This operation requires a paid plan.","statusCode":403,"action":{"type":"upgrade_plan","label":"Upgrade plan","url":"https://render.ai/billing"}},"requestId":"req_abc127"}}}},"404":{"description":"Generation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"error":{"code":"GENERATION_NOT_FOUND","message":"No generation found with this ID.","statusCode":404},"requestId":"req_abc128"}}}},"500":{"$ref":"#/components/responses/InternalError"}}},"delete":{"operationId":"cancelGeneration","summary":"Cancel generation","description":"Cancel a running generation. Only works for generations with `pending` or `processing` status.","tags":["Generations"],"parameters":[{"name":"generationId","in":"path","required":true,"description":"The generation ID to cancel.","schema":{"type":"string","example":"gen_abc123def456"}}],"responses":{"200":{"description":"Generation cancelled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationResponse"},"example":{"generationId":"gen_abc123def456","status":"cancelled","metadata":{"format":"presentation","createdAt":"2026-03-11T10:00:00.000Z"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Plan upgrade required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"error":{"code":"PLAN_UPGRADE_REQUIRED","message":"This operation requires a paid plan.","statusCode":403,"action":{"type":"upgrade_plan","label":"Upgrade plan","url":"https://render.ai/billing"}},"requestId":"req_abc129"}}}},"404":{"description":"Generation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"error":{"code":"GENERATION_NOT_FOUND","message":"No generation found with this ID.","statusCode":404},"requestId":"req_abc130"}}}},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/themes":{"get":{"operationId":"listThemes","summary":"List themes","description":"List all available presentation themes with preview colors.","tags":["Themes"],"responses":{"200":{"description":"List of themes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemesResponse"},"example":{"themes":[{"id":"blueprint","title":"Blueprint","description":"Clean and professional dark theme","category":"dark","previewColors":{"background":"#0f172a","accent":["#3b82f6","#60a5fa"]}}]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/usage":{"get":{"operationId":"getUsage","summary":"Check usage","description":"Check credit balance and recent generation history.","tags":["Usage"],"responses":{"200":{"description":"Credit balance and recent generations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageResponse"},"example":{"credits":{"available":960,"allocated":1000,"used":40,"planName":"Pro","resetsAt":"2026-04-01T00:00:00.000Z"},"recentGenerations":[{"generationId":"gen_abc123def456","status":"completed","creditsDeducted":40,"createdAt":"2026-03-11T10:00:00.000Z"}],"capabilities":{"generatePresentation":{"allowed":true},"getGenerationStatus":{"allowed":true},"cancelGeneration":{"allowed":true}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key obtained from the render.ai dashboard (Account > API Keys). Keys are prefixed with `sk-rndr-`."}},"headers":{"X-RateLimit-Limit":{"description":"Maximum requests allowed per hour","schema":{"type":"integer","example":100}},"X-RateLimit-Remaining":{"description":"Remaining requests in the current window","schema":{"type":"integer","example":99}},"X-RateLimit-Reset":{"description":"Unix timestamp (seconds) when the rate limit window resets","schema":{"type":"integer","example":1741699200}},"Retry-After":{"description":"Seconds to wait before retrying (only on 429 responses)","schema":{"type":"integer","example":60}}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"error":{"code":"INVALID_API_KEY","message":"Missing or invalid API key.","statusCode":401},"requestId":"req_unauth01"}}}},"RateLimited":{"description":"Rate limit or concurrent limit exceeded","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"examples":{"rateLimitExceeded":{"summary":"Hourly limit reached","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Hourly request limit reached.","statusCode":429},"requestId":"req_rate01"}},"concurrentLimit":{"summary":"Too many concurrent jobs","value":{"error":{"code":"CONCURRENT_LIMIT","message":"Too many active jobs running simultaneously.","statusCode":429},"requestId":"req_conc01"}}}}}},"InternalError":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"error":{"code":"INTERNAL_ERROR","message":"An unexpected error occurred.","statusCode":500},"requestId":"req_err01"}}}}},"schemas":{"CreateGenerationRequest":{"type":"object","required":["inputText","textMode"],"properties":{"inputText":{"type":"string","minLength":1,"maxLength":10000,"description":"Topic, content, or text to generate a presentation from. Maximum 10,000 characters — the same limit the render.ai web editor enforces."},"textMode":{"type":"string","enum":["generate","condense","preserve"],"description":"How the AI should handle the input text:\n- `generate` -- AI creates slides from a topic or prompt\n- `condense` -- AI summarizes longer content into slides\n- `preserve` -- AI formats the text as-is into slides\n"},"themeId":{"type":"string","description":"Theme ID from `GET /v1/themes`. If omitted, the platform default theme is used.","example":"blueprint"},"numCards":{"type":"integer","minimum":1,"maximum":75,"description":"Number of slides to generate (1-75).","example":10},"additionalInstructions":{"type":"string","maxLength":2000,"description":"Extra instructions for the AI. Maximum 2,000 characters."},"exportAs":{"type":"string","enum":["pdf"],"description":"Auto-export format after generation. Only `pdf` is supported.\n- `pdf` -- High-quality PDF, one slide per page. Download URL expires after 48 hours.\n\nOptional, and there is no default: if you omit it, no export is produced and `exportUrl` stays absent. The presentation is still available at `contentUrl` for viewing and editing.\n"},"textOptions":{"type":"object","description":"Fine-tune text generation behavior.","properties":{"amount":{"type":"string","enum":["brief","medium","detailed","extensive"],"description":"Controls text density per slide."},"tone":{"type":"string","maxLength":500,"description":"Desired tone, e.g. \"professional\", \"casual\".","example":"professional"},"audience":{"type":"string","maxLength":500,"description":"Target audience, e.g. \"executives\", \"students\".","example":"executives"},"language":{"type":"string","maxLength":10,"description":"Language code, e.g. `en`, `fr`, `es`.","example":"en"}}},"imageOptions":{"type":"object","description":"Configure image generation for slides.","properties":{"source":{"type":"string","enum":["aiGenerated","stock","none"],"description":"Image source:\n- `aiGenerated` -- AI creates images\n- `stock` -- stock photos\n- `none` -- no images\n"},"style":{"type":"string","enum":["photorealistic","illustration","3dRendering"],"description":"Image style. Only applies when `source` is `aiGenerated`."}}}}},"GenerationResponse":{"type":"object","required":["generationId","status"],"properties":{"generationId":{"type":"string","description":"Unique identifier for the generation.","example":"gen_abc123def456"},"status":{"type":"string","enum":["pending","processing","completed","failed","cancelled"],"description":"Current generation status:\n- `pending` -- Job created, queued for processing\n- `processing` -- AI is generating the presentation\n- `completed` -- Done; `contentUrl` and `exportUrl` (if requested) are available\n- `failed` -- Generation failed; check the `error` object\n- `cancelled` -- Cancelled via `DELETE` request\n"},"phase":{"type":"string","enum":["queued","generating_outline","generating_deck","generating_images","exporting","finalizing","completed","failed","cancelled"],"description":"Fine-grained progress within `status`. Where `status` tells you whether the job is still running, `phase` tells you what it is doing right now, so it is the field to surface in a progress indicator. A generation in `status: processing` moves through `generating_outline`, `generating_deck`, `generating_images`, `exporting` (only when `exportAs` was set), and `finalizing`. Treat this list as open: new phases may be added, so do not fail on an unrecognized value.\n"},"contentUrl":{"type":"string","format":"uri","description":"URL to view and edit the presentation in the browser. Available when `completed`.","example":"https://render.ai/chat/abc123"},"screenshotUrl":{"type":"string","format":"uri","description":"URL of a thumbnail image of the first slide. Available once the thumbnail is captured, which happens before the PDF export starts, so it can appear while the generation is still `processing`. Absent if the capture failed.","example":"https://render.ai/api/screenshots/abc123/thumbnail.jpeg"},"exportUrl":{"type":"string","format":"uri","description":"PDF download URL. Available when `completed` and `exportAs` was set on the request; absent otherwise.","example":"https://render.ai/api/exports/abc123/presentation.pdf"},"exportExpiresAt":{"type":"string","format":"date-time","description":"Expiration time for the export download URL, 48 hours after the export is produced.","example":"2026-03-13T10:00:00.000Z"},"credits":{"type":"object","description":"Credit information. Present on the initial create response.","properties":{"deducted":{"type":"integer","description":"Credits deducted for this generation.","example":40},"remaining":{"type":"integer","description":"Remaining credit balance after deduction.","example":960}}},"error":{"type":"object","description":"Error details. Present when `status` is `failed`.","properties":{"code":{"type":"string","description":"Machine-readable error code.","example":"GENERATION_FAILED"},"message":{"type":"string","description":"Human-readable error message.","example":"The AI generation process encountered an error."}}},"warnings":{"type":"array","description":"Non-fatal degradations. A generation can reach `completed` and still carry warnings -- most commonly an individual image or infographic that failed to render, in which case the slide is delivered without that asset. Omitted when there are none. Clients that need a fully-rendered deck should check this field rather than relying on `status` alone.","items":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable warning code.","example":"IMAGE_GENERATION_FAILED"},"message":{"type":"string","description":"Human-readable warning message.","example":"Image generation failed for infographic_3f2a1c."},"assetKey":{"type":"string","description":"Identifies the affected asset when the warning is asset-scoped.","example":"infographic_3f2a1c"}}}},"metadata":{"type":"object","description":"Generation metadata.","properties":{"numCards":{"type":"integer","description":"Number of slides generated.","example":10},"format":{"type":"string","description":"Output format.","example":"presentation"},"createdAt":{"type":"string","format":"date-time","description":"When the generation was created.","example":"2026-03-11T10:00:00.000Z"},"completedAt":{"type":"string","format":"date-time","description":"When the generation completed. Only present for terminal statuses.","example":"2026-03-11T10:02:15.000Z"}}}}},"ThemesResponse":{"type":"object","required":["themes"],"properties":{"themes":{"type":"array","items":{"$ref":"#/components/schemas/ThemeListItem"}}}},"ThemeListItem":{"type":"object","required":["id","title","description","category","previewColors"],"properties":{"id":{"type":"string","description":"Theme identifier to use in `CreateGenerationRequest.themeId`.","example":"blueprint"},"title":{"type":"string","description":"Display name.","example":"Blueprint"},"description":{"type":"string","description":"Short theme description.","example":"Clean and professional dark theme"},"category":{"type":"string","enum":["light","dark"],"description":"Theme color category."},"previewColors":{"type":"object","description":"Preview color palette.","properties":{"background":{"type":"string","description":"Background color hex code.","example":"#0f172a"},"accent":{"type":"array","items":{"type":"string"},"description":"Accent color hex codes.","example":["#3b82f6","#60a5fa"]}}}}},"UsageResponse":{"type":"object","required":["credits","recentGenerations","capabilities","concurrency"],"properties":{"concurrency":{"type":"object","description":"Capacity snapshot for the authenticated API key using its current plan limit. Counts unexpired admission leases, including completed jobs awaiting lease release. This does not reserve capacity or override capabilities.","required":["limit","occupied","available","generationIds"],"properties":{"limit":{"type":"integer","description":"Maximum concurrent generation slots for the current plan.","example":5},"occupied":{"type":"integer","description":"Slots within the current plan limit held by unexpired leases.","example":5},"available":{"type":"integer","description":"Slots currently available for admission.","example":0},"generationIds":{"type":"array","description":"Generations holding the occupied slots for this API key.","items":{"type":"string"},"example":["gen_abc123def456"]}}},"credits":{"type":"object","required":["available","allocated","used","planName"],"properties":{"available":{"type":"integer","description":"Credits currently available.","example":960},"allocated":{"type":"integer","description":"Total credits allocated for the billing period.","example":1000},"used":{"type":"integer","description":"Credits used in the current billing period.","example":40},"planName":{"type":"string","description":"Name of the active plan.","example":"Pro"},"resetsAt":{"type":"string","format":"date-time","nullable":true,"description":"When credits reset. Null if credits do not reset.","example":"2026-04-01T00:00:00.000Z"}}},"recentGenerations":{"type":"array","description":"Recent generation history (most recent first).","items":{"type":"object","properties":{"generationId":{"type":"string","example":"gen_abc123def456"},"status":{"type":"string","example":"completed"},"creditsDeducted":{"type":"integer","nullable":true,"example":40},"createdAt":{"type":"string","format":"date-time","example":"2026-03-11T10:00:00.000Z"}}}},"capabilities":{"type":"object","description":"Indicates which operations are allowed for this API key.","required":["generatePresentation","getGenerationStatus","cancelGeneration"],"properties":{"generatePresentation":{"type":"object","description":"Ability to create new presentations.","required":["allowed"],"properties":{"allowed":{"type":"boolean","description":"Whether the operation is allowed.","example":true},"reason":{"type":"string","enum":["PLAN_UPGRADE_REQUIRED","INSUFFICIENT_CREDITS"],"description":"Reason why the operation is not allowed (present only when allowed is false)."},"action":{"type":"object","description":"Optional actionable prompt for resolution.","properties":{"type":{"type":"string","enum":["upgrade_plan"]},"label":{"type":"string","example":"Upgrade plan"},"url":{"type":"string","format":"uri","example":"https://render.ai/billing"}}}}},"getGenerationStatus":{"type":"object","description":"Ability to poll generation status.","required":["allowed"],"properties":{"allowed":{"type":"boolean","example":true},"reason":{"type":"string","enum":["PLAN_UPGRADE_REQUIRED","INSUFFICIENT_CREDITS"]},"action":{"type":"object","properties":{"type":{"type":"string","enum":["upgrade_plan"]},"label":{"type":"string","example":"Upgrade plan"},"url":{"type":"string","format":"uri","example":"https://render.ai/billing"}}}}},"cancelGeneration":{"type":"object","description":"Ability to cancel running generations.","required":["allowed"],"properties":{"allowed":{"type":"boolean","example":true},"reason":{"type":"string","enum":["PLAN_UPGRADE_REQUIRED","INSUFFICIENT_CREDITS"]},"action":{"type":"object","properties":{"type":{"type":"string","enum":["upgrade_plan"]},"label":{"type":"string","example":"Upgrade plan"},"url":{"type":"string","format":"uri","example":"https://render.ai/billing"}}}}}}}}},"ApiErrorResponse":{"type":"object","required":["error","requestId"],"properties":{"error":{"type":"object","required":["code","message","statusCode"],"properties":{"code":{"type":"string","enum":["INVALID_API_KEY","PLAN_UPGRADE_REQUIRED","INSUFFICIENT_CREDITS","RATE_LIMIT_EXCEEDED","INVALID_PARAMETERS","GENERATION_FAILED","GENERATION_NOT_FOUND","THEME_NOT_FOUND","INPUT_TOO_LARGE","CONCURRENT_LIMIT","INTERNAL_ERROR"],"description":"Machine-readable error code."},"message":{"type":"string","description":"Human-readable error message."},"statusCode":{"type":"integer","description":"HTTP status code."},"details":{"type":"object","additionalProperties":true,"description":"Additional error context (e.g., validation issues)."},"action":{"type":"object","description":"Optional actionable prompt for error resolution (e.g., upgrade plan, add credits).","properties":{"type":{"type":"string","enum":["upgrade_plan"],"description":"Action type."},"label":{"type":"string","description":"User-facing call-to-action label.","example":"Upgrade plan"},"url":{"type":"string","format":"uri","description":"URL to perform the action.","example":"https://render.ai/billing"}}}}},"requestId":{"type":"string","description":"Unique request identifier for support reference.","example":"req_abc123"}}}}}}