{"openapi":"3.1.0","info":{"title":"Rogue API","version":"1.0.0","description":"A documented API over Rogue Studio. Authenticate with an API key from the console\n(`Authorization: Bearer rk_live_...`). Generations are asynchronous jobs: create one, then wait with\n`GET /v1/generations/{id}?wait=60` or receive a webhook. Errors are RFC 9457 problem details."},"servers":[{"url":"https://rogue-api.sentryq-va.com"}],"tags":[{"name":"Account","description":"The Rogue account behind the key"},{"name":"Catalog","description":"Models, styles and prompt suggestions"},{"name":"Projects","description":"Rogue projects"},{"name":"Library","description":"Generated images and videos"},{"name":"Uploads","description":"Source and reference media"},{"name":"Generations","description":"Images, edits and videos as asynchronous jobs"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key from the console: `rk_live_...`"}},"schemas":{"Account":{"type":"object","properties":{"object":{"type":"string","enum":["account"]},"id":{"type":"string"},"email":{"type":["string","null"]},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"tier":{"type":["object","null"],"properties":{"key":{"type":["string","null"]},"name":{"type":["string","null"]}},"required":["key","name"]},"organization":{"type":"boolean"},"age_verified":{"type":"boolean"},"credits":{"$ref":"#/components/schemas/Balance"},"capabilities":{"type":"object","properties":{"audio_upload":{"type":"boolean"},"video_upload":{"type":"boolean"},"uploads":{"type":"boolean"},"custom_models":{"type":"boolean"},"character_creation_modes":{"type":"array","items":{"type":"string"}}},"required":["audio_upload","video_upload","uploads","custom_models","character_creation_modes"]}},"required":["object","id","email","name","username","tier","organization","age_verified","credits","capabilities"]},"Balance":{"type":["object","null"],"properties":{"object":{"type":"string","enum":["balance"]},"balance":{"type":"number","description":"Credits available now","example":174020},"monthly":{"type":["number","null"],"description":"Monthly (subscription) credits"},"lifetime":{"type":["number","null"],"description":"Purchased credits"},"monthly_allowance":{"type":["number","null"]},"next_refill":{"type":["string","null"]}},"required":["object","balance","monthly","lifetime","monthly_allowance","next_refill"]},"Problem":{"type":"object","properties":{"type":{"type":"string","example":"https://rogue.sentryq-va.com/docs/errors#invalid_request"},"title":{"type":"string","example":"Bad Request"},"status":{"type":"integer","example":400},"code":{"type":"string","example":"invalid_request"},"detail":{"type":"string","example":"aspect_ratio: must be one of: 1:1, 16:9, 9:16"},"request_id":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}},"required":["field","message"]}}},"required":["type","title","status","code","detail"]},"Limits":{"type":"object","properties":{"object":{"type":"string","enum":["limits"]},"overall":{"type":"object","properties":{"limit":{"type":"number"},"running":{"type":"number"}},"required":["limit","running"]},"image":{"type":"object","properties":{"limit":{"type":"number"},"running":{"type":"number"},"queued":{"type":"number"}},"required":["limit","running","queued"]},"edit":{"type":"object","properties":{"limit":{"type":"number"},"running":{"type":"number"},"queued":{"type":"number"}},"required":["limit","running","queued"]},"video":{"type":"object","properties":{"limit":{"type":"number"},"running":{"type":"number"},"queued":{"type":"number"}},"required":["limit","running","queued"]}},"required":["object","overall","image","edit","video"],"description":"How many generations Rogue runs at once for this account, and how many wait in our queue."},"ModelList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Model"}},"page":{"type":"integer"},"limit":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["object","data","page","limit","has_more"]},"Model":{"type":"object","properties":{"id":{"type":"string","example":"xxxv2alt-sd-50prostandard"},"object":{"type":"string","enum":["model"]},"name":{"type":"string"},"kind":{"type":"string","enum":["system","custom","character"]},"suites":{"type":"array","items":{"type":"string","enum":["image","edit","video","extend"]}},"default_for":{"type":"array","items":{"type":"string","enum":["image","edit","video","extend"]}},"inpaint":{"type":"boolean"},"nsfw":{"type":"boolean"},"description":{"type":["string","null"]},"thumbnail":{"type":["string","null"]},"prompt_required":{"type":"boolean"},"tiers":{"type":"array","items":{"type":"string"}},"batch_size":{"type":"object","additionalProperties":{"type":"number"},"description":"Outputs per generation, by upstream suite (Conjure, Transform, Motion, ExtendVideo)"},"parameters":{"type":"object","properties":{"aspect_ratios":{"type":"array","items":{"type":"object","properties":{"ratio":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"}},"required":["ratio","width","height"]}},"same_ratio_supported":{"type":"boolean"},"video_aspect_ratios":{"type":"array","items":{"type":"string"}},"durations":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"cfg":{"type":["object","null"],"properties":{"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"},"default":{"type":"number"}},"required":["min","max","step","default"]},"weight":{"type":["object","null"],"properties":{"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"},"default":{"type":"number"}},"required":["min","max","step","default"]},"clip_skip":{"type":["object","null"],"properties":{"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"},"default":{"type":"number"}},"required":["min","max","step","default"]},"mask_blur":{"type":["object","null"],"properties":{"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"},"default":{"type":"number"}},"required":["min","max","step","default"]},"sampler":{"type":["string","null"]},"max_reference_images":{"type":"number"},"frames":{"type":"object","properties":{"start":{"type":"boolean"},"start_required":{"type":"boolean"},"end":{"type":"boolean"},"end_required":{"type":"boolean"}},"required":["start","start_required","end","end_required"]},"audio":{"type":["object","null"],"properties":{"max_quantity":{"type":"number"},"max_duration":{"type":"number"}},"required":["max_quantity","max_duration"]},"source_video":{"type":["object","null"],"properties":{"max_duration":{"type":"number"},"min_width":{"type":["number","null"]},"min_height":{"type":["number","null"]},"max_filesize_mb":{"type":["number","null"]}},"required":["max_duration","min_width","min_height","max_filesize_mb"]},"options":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["select","toggle","slider"]},"values":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number"},"default":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["key","name","type","default"]}}},"required":["aspect_ratios","same_ratio_supported","video_aspect_ratios","durations","cfg","weight","clip_skip","mask_blur","sampler","max_reference_images","frames","audio","source_video","options"]},"base_models":{"type":"object","additionalProperties":{"type":"object","properties":{"options":{"type":"array","items":{"type":"string"}},"default":{"type":"string"}},"required":["options","default"]}},"element":{"type":"boolean"}},"required":["id","object","name","kind","suites","default_for","inpaint","nsfw","description","thumbnail","prompt_required","tiers","batch_size","parameters"]},"StyleList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Style"}},"page":{"type":"integer"},"limit":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["object","data","page","limit","has_more"]},"Style":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["style"]},"name":{"type":"string"},"type":{"type":"string","enum":["image","video"]},"custom":{"type":"boolean"}},"required":["id","object","name","type","custom"]},"SuggestionList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Suggestion"}},"page":{"type":"integer"},"limit":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["object","data","page","limit","has_more"]},"Suggestion":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["suggestion"]},"name":{"type":"string"},"category":{"type":["string","null"]},"category_id":{"type":["string","null"]},"suites":{"type":"array","items":{"type":"string","enum":["image","edit","video","extend"]}},"media_seconds":{"type":"number"}},"required":["id","object","name","category","category_id","suites","media_seconds"],"description":"A prompt building block (the chips in the Rogue editor). Send its id in `suggestions`."},"ProjectList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"page":{"type":"integer"},"limit":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["object","data","page","limit","has_more"]},"Project":{"type":"object","properties":{"object":{"type":"string","enum":["project"]},"id":{"type":"string"},"title":{"type":"string"},"updated_at":{"type":["string","null"]},"last_generation":{"type":["object","null"],"properties":{"type":{"type":["string","null"]},"url":{"type":["string","null"]},"thumb_url":{"type":["string","null"]},"nsfw":{"type":"boolean"}},"required":["type","url","thumb_url","nsfw"]}},"required":["object","id","title","updated_at","last_generation"]},"AssetList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"page":{"type":"integer"},"limit":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["object","data","page","limit","has_more"]},"Asset":{"type":"object","properties":{"object":{"type":"string","enum":["asset"]},"id":{"type":"string"},"type":{"type":"string","enum":["image","video"]},"generation_type":{"type":["string","null"]},"url":{"type":["string","null"]},"thumb_url":{"type":["string","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]},"duration":{"type":["number","null"]},"aspect_ratio":{"type":["string","null"]},"nsfw":{"type":"boolean"},"favorite":{"type":"boolean"},"project_id":{"type":["string","null"]},"prompt_id":{"type":["string","null"]},"created_at":{"type":["string","null"]}},"required":["object","id","type","generation_type","url","thumb_url","width","height","duration","aspect_ratio","nsfw","favorite","project_id","prompt_id","created_at"]},"Upload":{"type":"object","properties":{"id":{"type":"string","example":"upl_01j9z8x7w6v5t4s3r2q1p0n9m8"},"object":{"type":"string","enum":["upload"]},"status":{"type":"string","enum":["processing","ready","rejected"]},"type":{"type":"string","enum":["image","video","audio"]},"url":{"type":"string"},"file_name":{"type":"string"},"content_type":{"type":"string"},"size_bytes":{"type":"number"},"width":{"type":["number","null"]},"height":{"type":["number","null"]},"error":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","object","status","type","url","file_name","content_type","size_bytes","width","height","error","created_at"]},"Generation":{"type":"object","properties":{"id":{"type":"string","example":"gen_01j9z8x7w6v5t4s3r2q1p0n9m8"},"object":{"type":"string","enum":["generation"]},"kind":{"type":"string","enum":["image","image_edit","video","video_extend"]},"status":{"type":"string","enum":["queued","running","succeeded","failed","canceled"]},"model":{"type":"string"},"project_id":{"type":["string","null"]},"cost":{"type":"object","properties":{"credits":{"type":["number","null"]}},"required":["credits"]},"expected_outputs":{"type":"number"},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["image","video"]},"url":{"type":"string"},"thumb_url":{"type":["string","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]},"duration":{"type":["number","null"]},"nsfw":{"type":"boolean"},"request_id":{"type":["number","null"]}},"required":["id","type","url","thumb_url","width","height","duration","nsfw","request_id"]}},"error":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]},"prompt_id":{"type":["string","null"]},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"created_at":{"type":"string"},"submitted_at":{"type":["string","null"]},"completed_at":{"type":["string","null"]}},"required":["id","object","kind","status","model","project_id","cost","expected_outputs","outputs","error","prompt_id","metadata","created_at","submitted_at","completed_at"]},"ImageGenerationRequest":{"type":"object","properties":{"model":{"type":"string","maxLength":200,"description":"Model id from GET /v1/models. Defaults to the platform default for the suite."},"base_model":{"type":"string","maxLength":200,"description":"For character models: which base model renders it (see `base_models` on the model)."},"project_id":{"type":"string","maxLength":100,"description":"Rogue project to generate into. Defaults to a project named \"API\"."},"prompt":{"type":"string","maxLength":4096},"styles":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":3,"description":"Up to 3 style ids from GET /v1/styles."},"suggestions":{"type":"array","items":{"type":"string","maxLength":50},"maxItems":10,"description":"Suggestion ids from GET /v1/suggestions (one per category)."},"options":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Model-specific options, see `parameters.options` on the model.","example":{"resolution_sd50":"1k"}},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":500},"description":"Up to 20 string pairs echoed back on the generation and in webhooks."},"aspect_ratio":{"type":"string","maxLength":20,"example":"16:9"},"cfg":{"type":"number"},"weight":{"type":"number"},"clip_skip":{"type":"integer"},"sampler":{"type":"string","maxLength":100},"reference_images":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2048,"description":"An upload id (`upl_...`), an https URL (imported for you), or the id of an item in the Rogue library."},"maxItems":10}}},"ImageEditRequest":{"type":"object","properties":{"model":{"type":"string","maxLength":200,"description":"Model id from GET /v1/models. Defaults to the platform default for the suite."},"base_model":{"type":"string","maxLength":200,"description":"For character models: which base model renders it (see `base_models` on the model)."},"project_id":{"type":"string","maxLength":100,"description":"Rogue project to generate into. Defaults to a project named \"API\"."},"prompt":{"type":"string","maxLength":4096},"styles":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":3,"description":"Up to 3 style ids from GET /v1/styles."},"suggestions":{"type":"array","items":{"type":"string","maxLength":50},"maxItems":10,"description":"Suggestion ids from GET /v1/suggestions (one per category)."},"options":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Model-specific options, see `parameters.options` on the model.","example":{"resolution_sd50":"1k"}},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":500},"description":"Up to 20 string pairs echoed back on the generation and in webhooks."},"aspect_ratio":{"type":"string","maxLength":20,"example":"16:9"},"cfg":{"type":"number"},"weight":{"type":"number"},"clip_skip":{"type":"integer"},"sampler":{"type":"string","maxLength":100},"reference_images":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2048,"description":"An upload id (`upl_...`), an https URL (imported for you), or the id of an item in the Rogue library."},"maxItems":10},"image":{"type":"string","minLength":1,"maxLength":2048,"description":"The source image."},"mode":{"type":"string","enum":["transform","inpaint"],"description":"Default `transform`."},"strength":{"type":"number","minimum":0.1,"maximum":1,"description":"How far the result may move from the source (0.1 to 1). Default 0.5, or 0.8 for `fill`."},"mask":{"type":"string","maxLength":15000000,"description":"Inpaint only: a PNG data URL (or an upload id of a PNG) with white where the image should change."},"inpaint_type":{"type":"string","enum":["refine","fill"]},"mask_blur":{"type":"number"}},"required":["image"]},"VideoGenerationRequest":{"type":"object","properties":{"model":{"type":"string","maxLength":200,"description":"Model id from GET /v1/models. Defaults to the platform default for the suite."},"base_model":{"type":"string","maxLength":200,"description":"For character models: which base model renders it (see `base_models` on the model)."},"project_id":{"type":"string","maxLength":100,"description":"Rogue project to generate into. Defaults to a project named \"API\"."},"prompt":{"type":"string","maxLength":4096},"styles":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":3,"description":"Up to 3 style ids from GET /v1/styles."},"suggestions":{"type":"array","items":{"type":"string","maxLength":50},"maxItems":10,"description":"Suggestion ids from GET /v1/suggestions (one per category)."},"options":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Model-specific options, see `parameters.options` on the model.","example":{"resolution_sd50":"1k"}},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":500},"description":"Up to 20 string pairs echoed back on the generation and in webhooks."},"aspect_ratio":{"type":"string","maxLength":20,"example":"16:9"},"duration":{"anyOf":[{"type":"string","maxLength":10},{"type":"number"}],"description":"One of the model durations, in seconds.","example":"5"},"cfg":{"type":"number"},"start_image":{"type":"string","minLength":1,"maxLength":2048,"description":"An upload id (`upl_...`), an https URL (imported for you), or the id of an item in the Rogue library."},"end_image":{"type":"string","minLength":1,"maxLength":2048,"description":"An upload id (`upl_...`), an https URL (imported for you), or the id of an item in the Rogue library."},"reference_images":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2048,"description":"An upload id (`upl_...`), an https URL (imported for you), or the id of an item in the Rogue library."},"maxItems":10},"reference_audios":{"type":"array","items":{"type":"string","minLength":1,"maxLength":2048,"description":"An upload id (`upl_...`), an https URL (imported for you), or the id of an item in the Rogue library."},"maxItems":5},"source_video":{"type":"string","minLength":1,"maxLength":2048,"description":"An upload id (`upl_...`), an https URL (imported for you), or the id of an item in the Rogue library."}}},"VideoExtendRequest":{"type":"object","properties":{"video_id":{"type":"string","minLength":1,"maxLength":100,"description":"A finished video from the Rogue library (an output id of a video generation)."},"prompt":{"type":"string","maxLength":2048},"duration":{"anyOf":[{"type":"string","maxLength":10},{"type":"number"}]},"resolution":{"type":"string","maxLength":20},"project_id":{"type":"string","maxLength":100,"description":"Rogue project to generate into. Defaults to a project named \"API\"."},"styles":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":3,"description":"Up to 3 style ids from GET /v1/styles."},"suggestions":{"type":"array","items":{"type":"string","maxLength":50},"maxItems":10,"description":"Suggestion ids from GET /v1/suggestions (one per category)."},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":500},"description":"Up to 20 string pairs echoed back on the generation and in webhooks."}},"required":["video_id"]},"Frame":{"type":"object","properties":{"object":{"type":"string","enum":["frame"]},"url":{"type":"string"}},"required":["object","url"]},"Estimate":{"type":"object","properties":{"object":{"type":"string","enum":["estimate"]},"kind":{"type":"string","enum":["image","image_edit","video","video_extend"]},"model":{"type":"string"},"credits":{"type":"number"},"balance":{"type":["number","null"]},"sufficient":{"type":["boolean","null"]},"outputs":{"type":"number"}},"required":["object","kind","model","credits","balance","sufficient","outputs"]},"EstimateRequest":{"type":"object","properties":{"kind":{"type":"string","enum":["image","image_edit","video","video_extend"]}},"required":["kind"],"additionalProperties":{},"description":"The same body you would send to the matching create endpoint, plus `kind`."},"GenerationList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Generation"}},"page":{"type":"integer"},"limit":{"type":"integer"},"has_more":{"type":"boolean"}},"required":["object","data","page","limit","has_more"]}},"parameters":{}},"paths":{"/v1/account":{"get":{"tags":["Account"],"summary":"The Rogue account behind this key","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The account, its tier, credits and capabilities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/account/balance":{"get":{"tags":["Account"],"summary":"Credits available now","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Credit balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/account/limits":{"get":{"tags":["Account"],"summary":"Concurrency limits and queue depth","description":"Rogue runs a limited number of generations at once per account. Extra jobs wait in our queue and start automatically.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Limits per suite","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Limits"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/models":{"get":{"tags":["Catalog"],"summary":"Models available to this account","description":"Each model lists the parameters it accepts (ratios, durations, frames, options). Requests are validated against them.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["image","edit","video","extend"],"description":"Only models usable for this suite"},"required":false,"description":"Only models usable for this suite","name":"suite","in":"query"},{"schema":{"type":"string","enum":["system","custom","character"]},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"search","in":"query"}],"responses":{"200":{"description":"Models","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelList"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/models/{id}":{"get":{"tags":["Catalog"],"summary":"One model","description":"Model ids can contain slashes (for example `character/...`); URL-encode them.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The model","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/styles":{"get":{"tags":["Catalog"],"summary":"Styles (platform and your own)","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Styles","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StyleList"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/suggestions":{"get":{"tags":["Catalog"],"summary":"Prompt suggestions (the chips in the Rogue editor)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["image","edit","video"]},"required":false,"name":"suite","in":"query"}],"responses":{"200":{"description":"Suggestions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionList"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects":{"get":{"tags":["Projects"],"summary":"List projects","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"example":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"example":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"search","in":"query"}],"responses":{"200":{"description":"Projects, newest first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectList"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"tags":["Projects"],"summary":"Create a project","security":[{"bearerAuth":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":2,"maxLength":50,"pattern":"^[a-zA-Z0-9\\s]*$"}}}}}},"responses":{"201":{"description":"The new project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{id}":{"get":{"tags":["Projects"],"summary":"Get a project","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"tags":["Projects"],"summary":"Rename a project","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":2,"maxLength":50,"pattern":"^[a-zA-Z0-9\\s]*$"}},"required":["title"]}}}},"responses":{"200":{"description":"The project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"tags":["Projects"],"summary":"Delete a project","description":"Deletes the project in Rogue, like the web app does.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["project"]},"deleted":{"type":"boolean","enum":[true]}},"required":["id","object","deleted"]}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/assets":{"get":{"tags":["Library"],"summary":"Search the library","description":"Everything generated on the account (web app and API), newest first.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"example":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"example":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","enum":["image","video"]},"required":false,"name":"type","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"project_id","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"search","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"favorites","in":"query"}],"responses":{"200":{"description":"Library items","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetList"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/assets/images/{id}":{"get":{"tags":["Library"],"summary":"Get an image","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The image","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/assets/{type}/{id}":{"patch":{"tags":["Library"],"summary":"Favorite or unfavorite an item","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["image","video","frame"]},"required":true,"name":"type","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":100},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"favorite":{"type":"boolean"}},"required":["favorite"]}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["asset"]},"favorite":{"type":"boolean"}},"required":["id","object","favorite"]}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"tags":["Library"],"summary":"Delete an item","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["image","video","frame"]},"required":true,"name":"type","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":100},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["asset"]},"deleted":{"type":"boolean","enum":[true]}},"required":["id","object","deleted"]}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/uploads":{"post":{"tags":["Uploads"],"summary":"Upload a file (or import one from a URL)","description":"Send `multipart/form-data` with a `file` field, or JSON `{\"url\": \"https://...\"}` to import it. Images (JPEG, PNG) and videos (MP4, MOV) are moderated by Rogue: `status` starts as `processing` and becomes `ready` or `rejected`. You can reference an upload in a generation right away; the job waits until it is ready.","security":[{"bearerAuth":[]}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"project_id":{"type":"string"}},"required":["file"]}},"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"project_id":{"type":"string"}},"required":["url"]}}}},"responses":{"201":{"description":"The upload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Rogue rejected the input","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/uploads/{id}":{"get":{"tags":["Uploads"],"summary":"Get an upload","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The upload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/images/generations":{"post":{"tags":["Generations"],"summary":"Generate images from text","description":"Text to image with any image model. The number of images is set by the model (`batch_size.Conjure`).","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200,"description":"Retries with the same key return the first result and never charge twice."},"required":false,"description":"Retries with the same key return the first result and never charge twice.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationRequest"}}}},"responses":{"202":{"description":"Queued. Poll GET /v1/generations/{id}?wait=60 or use webhooks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"Not enough credits","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Rogue rejected the input","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"423":{"description":"The Rogue account is suspended or unverified","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited or queue full","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"451":{"description":"Not available in this location","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/images/edits":{"post":{"tags":["Generations"],"summary":"Edit an image","description":"Image to image (`mode: transform`) or inpaint (`mode: inpaint` with a mask).","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200,"description":"Retries with the same key return the first result and never charge twice."},"required":false,"description":"Retries with the same key return the first result and never charge twice.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageEditRequest"}}}},"responses":{"202":{"description":"Queued. Poll GET /v1/generations/{id}?wait=60 or use webhooks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"Not enough credits","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Rogue rejected the input","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"423":{"description":"The Rogue account is suspended or unverified","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited or queue full","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"451":{"description":"Not available in this location","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/videos/generations":{"post":{"tags":["Generations"],"summary":"Generate a video","description":"Text or image to video. Start and end frames, reference images, audio and a source video depend on the model.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200,"description":"Retries with the same key return the first result and never charge twice."},"required":false,"description":"Retries with the same key return the first result and never charge twice.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerationRequest"}}}},"responses":{"202":{"description":"Queued. Poll GET /v1/generations/{id}?wait=60 or use webhooks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"Not enough credits","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Rogue rejected the input","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"423":{"description":"The Rogue account is suspended or unverified","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited or queue full","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"451":{"description":"Not available in this location","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/videos/extend":{"post":{"tags":["Generations"],"summary":"Extend a video","description":"Continues a finished video from the library with the platform extend model.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200,"description":"Retries with the same key return the first result and never charge twice."},"required":false,"description":"Retries with the same key return the first result and never charge twice.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoExtendRequest"}}}},"responses":{"202":{"description":"Queued. Poll GET /v1/generations/{id}?wait=60 or use webhooks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"Not enough credits","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Rogue rejected the input","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"423":{"description":"The Rogue account is suspended or unverified","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limited or queue full","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"451":{"description":"Not available in this location","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/videos/{id}/frames":{"post":{"tags":["Generations"],"summary":"Extract a frame from a video","description":"Returns the URL of a still image. Pass `project_id` to also save it to that project. Free.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"time":{"anyOf":[{"type":"number","minimum":0},{"type":"string","enum":["last"]}],"description":"Seconds from the start, or \"last\" for the final frame."},"project_id":{"type":"string","maxLength":100}},"required":["time"]}}}},"responses":{"200":{"description":"The frame","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Frame"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/estimate":{"post":{"tags":["Generations"],"summary":"Quote the credit cost of a request","description":"Runs the same validation as the create endpoints and returns the cost the Rogue editor would show, plus the balance. Nothing is generated.","security":[{"bearerAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateRequest"}}}},"responses":{"200":{"description":"The quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Estimate"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Forbidden (scope, budget, tier or an expired Rogue connection)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Rogue is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/generations/{id}":{"get":{"tags":["Generations"],"summary":"Get a generation (optionally wait for it)","description":"With `wait` (1 to 60 seconds) the request holds until the generation finishes or the time runs out.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"id","in":"path"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":60},"required":false,"name":"wait","in":"query"}],"responses":{"200":{"description":"The generation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/generations":{"get":{"tags":["Generations"],"summary":"List generations made through the API","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"integer","minimum":1,"example":1},"required":false,"name":"page","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"example":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","enum":["queued","running","succeeded","failed","canceled"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string","enum":["image","image_edit","video","video_extend"]},"required":false,"name":"kind","in":"query"}],"responses":{"200":{"description":"Generations, newest first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationList"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/generations/{id}/cancel":{"post":{"tags":["Generations"],"summary":"Cancel a queued generation","description":"Only generations still waiting in our queue can be canceled; once sent to Rogue they run to completion.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Canceled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"401":{"description":"Missing or invalid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"webhooks":{}}