{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Requesty Docs","description":"Documentation for Requesty, a unified LLM gateway and OpenAI-compatible API for 600+ AI models.","colors":{"primary":"#C8956A","light":"#D4A574","dark":"#E0B88A"},"logo":{"light":"https://mintcdn.com/requesty/o8v2COiz3OtlSbqG/logo/light.svg?fit=max\u0026auto=format\u0026n=o8v2COiz3OtlSbqG\u0026q=85\u0026s=33d22576c8ec4d1e68f24969181684df","dark":"https://mintcdn.com/requesty/o8v2COiz3OtlSbqG/logo/dark.svg?fit=max\u0026auto=format\u0026n=o8v2COiz3OtlSbqG\u0026q=85\u0026s=c21a835e0692187f8c47df7ab6528af9","href":"https://docs.requesty.ai"},"favicon":"https://mintcdn.com/requesty/MM5cSf0NbVkrpoDF/favicon.svg?fit=max\u0026auto=format\u0026n=MM5cSf0NbVkrpoDF\u0026q=85\u0026s=706185ad27099920b149c4ad2f15a5ca","api":{"openapi":["api-reference/requesty_inference-openapi.json","api-reference/requesty_management-openapi.json"],"playground":{}},"appearance":{"default":"dark"},"navbar":{"links":[{"href":"https://docs.requesty.ai/changelog","label":"Changelog"},{"href":"https://docs.requesty.ai/api-reference/requesty_openapi.json","label":"OpenAPI"},{"href":"https://discord.com/invite/Td3rwAHgt4","label":"Discord"}],"primary":{"type":"button","label":"Get Started","href":"https://app.requesty.ai/sign-up"}},"footer":{"socials":{"x":"https://x.com/requestyAI","linkedin":"https://linkedin.com/company/requesty"}},"search":{"prompt":"Search..."},"seo":{"metatags":{"og:site_name":"Requesty Docs"},"indexing":"navigable"},"fonts":{"heading":{"family":"Inter","weight":600},"body":{"family":"Inter"}},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":true},"integrations":{"amplitude":{"apiKey":"ce02ec2dce31d2745bd8a3ffaedd53cc"}},"contextual":{"options":["copy","chatgpt","claude","perplexity"],"display":"header"},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"requesty","hasAudioNarration":false,"actualSubdomain":"requesty","customDomains":["docs.requesty.ai"],"gitSource":{"type":"github","owner":"requestyai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adb7acb1ada5501057a632e","collectionId":"a8e13621-4f5a-44ca-89f9-512c3c8421dc","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb7acb1ada5501057a632e"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adb7acb1ada5501057a632e","clientVersion":"0.0.3964","searchFilterCounts":[{"language":"default","tag":"Gateway","count":58},{"language":"default","tag":"Management API","count":37},{"language":"default","tag":"Integrations","count":26},{"language":"default","tag":"Inference API","count":21},{"language":"default","tag":"Inference APIs","count":21},{"language":"default","tag":"Organization","count":15},{"language":"default","tag":"LLM Gateway","count":14},{"language":"default","tag":"Analytics \u0026 Monitoring","count":12},{"language":"default","tag":"Coding Assistants","count":10},{"language":"default","tag":"API Keys","count":9}]},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"[email protected]","showHelpButton":true}},"hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"styles/custom.css","content":":root{--requesty-gold:#C8956A;--requesty-gold-light:#E0B88A;--requesty-gold-muted:rgba(200, 149, 106, 0.15)}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:rgba(128,128,128,.15);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:rgba(128,128,128,.3)}#navbar{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}img.nav-logo{height:2.25rem!important;max-width:18rem!important;max-height:2.25rem!important}#sidebar{font-size:13.5px!important}#sidebar-content{padding-top:.5rem}sidebar-group-header{font-weight:600!important;letter-spacing:.01em;text-transform:none!important}#content-area{max-width:100%}#page-title{font-size:2rem!important;font-weight:600!important;letter-spacing:-.025em!important;line-height:1.2!important}mdx-content{font-size:15px!important;line-height:1.65!important}mdx-content h2{font-size:1.35rem!important;font-weight:600!important;letter-spacing:-.015em!important;margin-top:2rem!important;margin-bottom:.75rem!important}mdx-content h3{font-size:1.1rem!important;font-weight:600!important;margin-top:1.5rem!important;margin-bottom:.4rem!important}mdx-content p{margin-top:.6em!important;margin-bottom:.6em!important}mdx-content li{margin-top:.2rem!important;margin-bottom:.2rem!important}#request-example,#response-example,code-block{border-radius:12px!important;overflow:hidden}mdx-content code:not(pre code){border:0!important;border-radius:5px!important;padding:2px 6px!important;font-size:.9em!important}:root:not(.dark) mdx-content code:not(pre code){background:rgba(0,0,0,.05)!important}:root.dark mdx-content code:not(pre code){background:rgba(255,255,255,.08)!important}card{border-radius:12px!important;transition:border-color .2s ease,background-color .2s ease}:root:not(.dark) card{border:1px solid rgba(0,0,0,.08)!important}:root:not(.dark) card:hover{border-color:rgba(0,0,0,.15)!important;background:rgba(0,0,0,.01)!important}:root.dark card{border:1px solid rgba(255,255,255,.06)!important}:root.dark card:hover{border-color:rgba(255,255,255,.12)!important;background:rgba(255,255,255,.02)!important}callout{border-left-width:3px!important}mdx-content table{overflow:hidden}mdx-content table th{font-weight:600!important;font-size:.85rem!important;letter-spacing:.02em;text-transform:uppercase}accordion,callout,mdx-content img,mdx-content table{border-radius:10px!important}api-section{padding-bottom:2rem}:root:not(.dark) api-section{border-bottom:1px solid rgba(0,0,0,.06)}:root.dark api-section{border-bottom:1px solid rgba(255,255,255,.05)}api-section-heading-title{font-size:1.75rem!important;font-weight:600!important;letter-spacing:-.02em!important}#table-of-contents,breadcrumb-list{font-size:13px!important}toc-item{transition:color .15s ease}breadcrumb-list{opacity:.7}nav-tabs-item{font-weight:500!important;letter-spacing:.01em}#pagination{margin-top:2rem!important;padding-top:1rem!important}:root:not(.dark) #pagination{border-top:1px solid rgba(0,0,0,.06)!important}:root.dark #pagination{border-top:1px solid rgba(255,255,255,.05)!important}steps{border-left-color:rgba(200,149,106,.3)!important}step-content{padding-bottom:.75rem!important}#search-bar-entry,expandable{border-radius:8px!important}nav-tag-pill{font-size:11px!important;font-weight:600!important;letter-spacing:.03em;border-radius:4px!important}[data-component-part=update-tag]{padding:2px 8px!important;border-radius:6px!important;font-size:12px!important}:root:not(.dark) [data-component-part=update-tag]{background:rgba(0,0,0,.06)!important;color:#374151!important}:root.dark [data-component-part=update-tag]{background:rgba(255,255,255,.1)!important;color:#d1d5db!important}:root:not(.dark) #footer{border-top:1px solid rgba(0,0,0,.06)!important}:root.dark #footer{border-top:1px solid rgba(255,255,255,.05)!important}"}],"page":{"pagePath":"api-reference/endpoint/images-generations-create","slug":"/api-reference/endpoint/images-generations-create","pageMetadata":{"title":"Create Image","openapi":"POST /v1/images/generations","description":"Generate images from a text prompt using image generation models","href":"/api-reference/endpoint/images-generations-create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Generate images from a text prompt using image generation models\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Generate images from a text prompt using OpenAI-compatible image generation models through Requesty’s routing.`}),`\n`,_jsx(Heading,{level:`2`,id:`base-url`,children:`Base URL`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://router.requesty.ai/v1/images/generations`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(_components.p,{children:`Include your Requesty API key in the request headers:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` Bearer`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` YOUR_REQUESTY_API_KEY`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`example-request`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` https://router.requesty.ai/v1/images/generations`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_REQUESTY_API_KEY\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"azure/openai/gpt-image-1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A watercolor painting of a Japanese garden in autumn\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"n\": 1,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"size\": \"1024x1024\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"quality\": \"auto\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`supported-models`,children:`Supported Models`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`azure/openai/gpt-image-1`}),` — OpenAI’s GPT Image 1 model via Azure`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`azure/openai/gpt-image-1.5`}),` — OpenAI’s GPT Image 1.5 model via Azure`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`transparent-backgrounds`,children:`Transparent Backgrounds`}),`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(_components.code,{children:`background`}),` parameter to generate images with transparent backgrounds (useful for logos, icons, and design assets):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` https://router.requesty.ai/v1/images/generations`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_REQUESTY_API_KEY\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"azure/openai/gpt-image-1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A simple icon of a rocket ship\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"background\": \"transparent\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"output_format\": \"png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error Handling`}),`\n`,_jsx(_components.p,{children:`The API returns standard HTTP status codes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`200`}),` - Success`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`400`}),` - Bad Request (invalid parameters)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`401`}),` - Unauthorized (invalid API key)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`429`}),` - Rate Limited`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`500`}),` - Internal Server Error`]}),`\n`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`This endpoint is fully compatible with the OpenAI Images API. You can use the OpenAI SDK’s `,_jsx(_components.code,{children:`client.images.generate()`}),` method directly.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`To edit or extend an existing image instead of generating a new one, use the `,_jsx(_components.a,{href:`/api-reference/endpoint/images-edits-create`,children:`Edit Image endpoint`}),`. For models that generate images as part of a conversational response (e.g., Gemini), use the `,_jsx(_components.a,{href:`/api-reference/endpoint/chat-completions-create`,children:`Chat Completions endpoint`}),` instead. See the `,_jsx(_components.a,{href:`/features/image-generation`,children:`Image Generation feature guide`}),` for a full comparison.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Create Image","openapi":"POST /v1/images/generations","description":"Generate images from a text prompt using image generation models","href":"/api-reference/endpoint/images-generations-create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Base URL","slug":"base-url","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Example Request","slug":"example-request","depth":2,"children":[]},{"title":"Supported Models","slug":"supported-models","depth":2,"children":[]},{"title":"Transparent Backgrounds","slug":"transparent-backgrounds","depth":2,"children":[]},{"title":"Error Handling","slug":"error-handling","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create image","description":"Generate images from a text prompt using image generation models","requestBody":"e2e30385-d63e-45a2-bdaf-8d6c9dcf02ed","responses":{"200":"6d640605-7dce-4dba-8a16-5296e2e6dca8","400":"85570963-ba92-4a2e-81b8-4e0d0bd57c2a","401":"2549c373-a156-4b81-8922-bb8ce9d2006b","402":"ad1954bb-c0ee-4822-acb7-2163f662d9e1","403":"21f44841-90b8-4347-bfb3-632c4c130562","404":"85cf4ed9-27fb-4920-8c36-97385eae3bb0","429":"9e27ab2a-e29a-4bac-946f-180078bdf0b1","500":"8def5f55-8935-4d3b-a5b1-3d98083e2a99","502":"35f1ffe9-680c-4f67-8935-d5ecc102784c"},"operationId":"createImage","method":"post","type":"path","servers":["f362145d-a201-46f6-8eea-080cdac55282"],"security":["1e7bd623-e11e-42fd-b1fc-1d4f511b2857"],"path":"/v1/images/generations","baseUrlOptions":["https://router.requesty.ai"],"title":"Create image","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt","model"],"properties":{"model":{"type":"string","description":"The model to use for image generation","example":"azure/openai/gpt-image-1","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"prompt":{"type":"string","description":"A text description of the desired image","example":"A watercolor painting of a Japanese garden in autumn","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"n":{"type":"integer","description":"The number of images to generate","default":1,"minimum":1,"example":1,"uniqueKey":"n","typeLabel":"integer"},"size":{"type":"string","description":"The size of the generated images","enum":["1024x1024","1536x1024","1024x1536"],"default":"1024x1024","example":"1024x1024","uniqueKey":"size","typeLabel":"enum\u003cstring>"},"quality":{"type":"string","description":"The quality of the generated image","enum":["auto","high","medium","low"],"default":"auto","example":"auto","uniqueKey":"quality","typeLabel":"enum\u003cstring>"},"response_format":{"type":"string","description":"The format in which the generated images are returned","enum":["url","b64_json"],"default":"url","example":"url","uniqueKey":"response_format","typeLabel":"enum\u003cstring>"},"background":{"type":"string","description":"The background type for the generated image","enum":["auto","transparent","opaque"],"default":"auto","example":"auto","uniqueKey":"background","typeLabel":"enum\u003cstring>"},"output_format":{"type":"string","description":"The file format of the generated image","enum":["png","jpeg","webp"],"default":"png","example":"png","uniqueKey":"output_format","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"azure/openai/gpt-image-1","prompt":"A watercolor painting of a Japanese garden in autumn","n":1,"size":"1024x1024","quality":"auto","response_format":"url","background":"auto","output_format":"png"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6d640605-7dce-4dba-8a16-5296e2e6dca8":{"description":"Image generation response","content":{"application/json":{"schema":{"type":"object","required":["created","data"],"properties":{"created":{"type":"integer","description":"The Unix timestamp of when the image was created","example":1719000000,"isRequired":true,"uniqueKey":"created","typeLabel":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"The URL of the generated image (when response_format is url)","uniqueKey":"data.items.[INDEX].url","typeLabel":"string"},"b64_json":{"type":"string","description":"The base64-encoded JSON of the generated image (when response_format is b64_json)","uniqueKey":"data.items.[INDEX].b64_json","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"description":"The list of generated images","isRequired":true,"uniqueKey":"data","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"created":1719000000,"data":[{"url":"\u003cstring>","b64_json":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"85570963-ba92-4a2e-81b8-4e0d0bd57c2a":{"description":"Bad request - malformed payload or invalid parameters.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["origin","message"],"properties":{"origin":{"type":"string","enum":["router","provider"],"description":"Whether the error originated from Requesty's router or an upstream provider.","isRequired":true,"uniqueKey":"error.origin","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"origin":"router","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"2549c373-a156-4b81-8922-bb8ce9d2006b":{"description":"Unauthorized - missing or empty Authorization header.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["origin","message"],"properties":{"origin":{"type":"string","enum":["router","provider"],"description":"Whether the error originated from Requesty's router or an upstream provider.","isRequired":true,"uniqueKey":"error.origin","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"origin":"router","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"ad1954bb-c0ee-4822-acb7-2163f662d9e1":{"description":"Payment required - organization balance exhausted.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["origin","message"],"properties":{"origin":{"type":"string","enum":["router","provider"],"description":"Whether the error originated from Requesty's router or an upstream provider.","isRequired":true,"uniqueKey":"error.origin","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"origin":"router","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"21f44841-90b8-4347-bfb3-632c4c130562":{"description":"Forbidden - invalid token or model not in access list.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["origin","message"],"properties":{"origin":{"type":"string","enum":["router","provider"],"description":"Whether the error originated from Requesty's router or an upstream provider.","isRequired":true,"uniqueKey":"error.origin","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"origin":"router","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"85cf4ed9-27fb-4920-8c36-97385eae3bb0":{"description":"Not found - provider/model not supported.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["origin","message"],"properties":{"origin":{"type":"string","enum":["router","provider"],"description":"Whether the error originated from Requesty's router or an upstream provider.","isRequired":true,"uniqueKey":"error.origin","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"origin":"router","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"9e27ab2a-e29a-4bac-946f-180078bdf0b1":{"description":"Rate limit exceeded. Retry after the Retry-After header value.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["origin","message"],"properties":{"origin":{"type":"string","enum":["router","provider"],"description":"Whether the error originated from Requesty's router or an upstream provider.","isRequired":true,"uniqueKey":"error.origin","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"origin":"router","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"8def5f55-8935-4d3b-a5b1-3d98083e2a99":{"description":"Internal server error.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["origin","message"],"properties":{"origin":{"type":"string","enum":["router","provider"],"description":"Whether the error originated from Requesty's router or an upstream provider.","isRequired":true,"uniqueKey":"error.origin","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"origin":"router","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"35f1ffe9-680c-4f67-8935-d5ecc102784c":{"description":"Bad gateway - upstream provider returned an invalid response.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["origin","message"],"properties":{"origin":{"type":"string","enum":["router","provider"],"description":"Whether the error originated from Requesty's router or an upstream provider.","isRequired":true,"uniqueKey":"error.origin","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error description.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"origin":"router","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1e7bd623-e11e-42fd-b1fc-1d4f511b2857":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key for authentication","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"f362145d-a201-46f6-8eea-080cdac55282":{"url":"https://router.requesty.ai","description":"Inference router endpoint"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key for authentication","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key for authentication","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"requesty","siteName":"Requesty Docs","title":"Create Image - Requesty Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-26T17:23:16.471Z","gitLastModified":"2026-04-29T14:01:01.000Z","originalFileLocation":"api-reference/endpoint/images-generations-create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generate images from a text prompt using image generation models\">\u003cmeta data-mint-head name=\"application-name\" content=\"Requesty Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Image - Requesty Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate images from a text prompt using image generation models\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Requesty Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://requesty.mintlify.app/_mintlify/api/og/v2?division=Inference+APIs\u0026amp;title=Create+Image\u0026amp;description=Generate+images+from+a+text+prompt+using+image+generation+models\u0026amp;theme=1b9a5094c3592451956d887a\u0026amp;signature=89bc6737f72c7b476e017595c15b6b98fb0e187eee88138b1481dd02298c16e6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Image - Requesty Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate images from a text prompt using image generation models\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://requesty.mintlify.app/_mintlify/api/og/v2?division=Inference+APIs\u0026amp;title=Create+Image\u0026amp;description=Generate+images+from+a+text+prompt+using+image+generation+models\u0026amp;theme=1b9a5094c3592451956d887a\u0026amp;signature=89bc6737f72c7b476e017595c15b6b98fb0e187eee88138b1481dd02298c16e6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/requesty/bWQG6e3TK2khNMP8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Requesty Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C8956A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/images-generations-create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.requesty.ai/#organization\",\"name\":\"Requesty Docs\",\"url\":\"https://docs.requesty.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/requesty/o8v2COiz3OtlSbqG/logo/light.svg?fit=max\u0026auto=format\u0026n=o8v2COiz3OtlSbqG\u0026q=85\u0026s=33d22576c8ec4d1e68f24969181684df\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.requesty.ai#website\",\"name\":\"Requesty Docs\",\"url\":\"https://docs.requesty.ai\",\"publisher\":{\"@id\":\"https://docs.requesty.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create#webpage\",\"url\":\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create\",\"name\":\"Create Image\",\"description\":\"Generate images from a text prompt using image generation models\",\"dateModified\":\"2026-04-29T14:01:01.000Z\",\"isPartOf\":{\"@id\":\"https://docs.requesty.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inference APIs\",\"item\":\"https://docs.requesty.ai/api-reference/inference-apis\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Image\",\"item\":\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create#apireference\",\"headline\":\"Create Image\",\"name\":\"Create Image\",\"description\":\"Generate images from a text prompt using image generation models\",\"url\":\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.requesty.ai/api-reference/endpoint/images-generations-create#webpage\"},\"dateModified\":\"2026-04-29T14:01:01.000Z\",\"publisher\":{\"@id\":\"https://docs.requesty.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.requesty.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Requesty Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Requesty Docs","nav":{"global":null,"tabs":[{"tab":"Gateway","pages":[{"title":"Gateway","href":"/quickstart"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/requesty-cli"}]},{"tab":"Inference API","groups":[{"group":"Inference APIs","pages":[{"title":"Overview","href":"/api-reference/inference-apis"},{"title":"Create Chat Completion","openapi":"POST /v1/chat/completions","href":"/api-reference/endpoint/chat-completions-create"},{"title":"Create Message","openapi":"POST /v1/messages","href":"/api-reference/endpoint/messages-create"},{"title":"Create Response","openapi":"POST /v1/responses","href":"/api-reference/endpoint/responses-create"},{"title":"Create Embedding","openapi":"POST /v1/embeddings","href":"/api-reference/endpoint/embeddings-create"},{"title":"Create Speech","openapi":"POST /v1/audio/speech","href":"/api-reference/endpoint/audio-speech-create"},{"title":"Create Transcription","openapi":"POST /v1/audio/transcriptions","description":"Transcribes audio into text using a speech-to-text model. The audio file is sent as `multipart/form-data`.","href":"/api-reference/endpoint/audio-transcriptions-create"},{"title":"Create Image","openapi":"POST /v1/images/generations","href":"/api-reference/endpoint/images-generations-create"},{"title":"Edit Image","openapi":"POST /v1/images/edits","description":"Edit or extend an existing image from a text prompt using image editing models. Accepts multipart/form-data (for file uploads) or application/json (with image references as base64 data URLs or file IDs).","href":"/api-reference/endpoint/images-edits-create"},{"title":"Create Decision","openapi":"POST /v1/decisions","href":"/api-reference/endpoint/decisions-create"},{"title":"Create System One Decision","openapi":"POST /v1/systemone","href":"/api-reference/endpoint/systemone-create"},{"title":"List All Models","openapi":"GET /v1/models/all","href":"/api-reference/endpoint/models-all-list"},{"title":"List Models","openapi":"GET /v1/models","href":"/api-reference/endpoint/models-list"},{"title":"List Chat Models","openapi":"GET /v1/models/chat","href":"/api-reference/endpoint/models-chat-list"},{"title":"List Embedding Models","openapi":"GET /v1/models/embedding","href":"/api-reference/endpoint/models-embedding-list"},{"title":"List Image Models","openapi":"GET /v1/models/image","href":"/api-reference/endpoint/models-image-list"},{"title":"List Transcription Models","openapi":"GET /v1/models/transcription","href":"/api-reference/endpoint/models-transcription-list"},{"title":"List Speech Models","openapi":"GET /v1/models/speech","href":"/api-reference/endpoint/models-speech-list"},{"title":"List Decision Models","openapi":"GET /v1/models/decision","href":"/api-reference/endpoint/models-decision-list"},{"title":"List Managed Policies","openapi":"GET /v1/models/managed","href":"/api-reference/endpoint/models-managed-list"},{"title":"OpenAPI Spec","icon":"download","href":"/api-reference/openapi-inference-spec"}]}]},{"tab":"Management API","pages":[{"title":"Management API","href":"/api-reference/management-apis"}]}]},"title":"Create Image - Requesty Docs","buildId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","deploymentId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BRm_l__d.js","utils-f1l1Oc-G.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BlhqDhJO.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DHCB7rsC.js","snippetPresets-CYXLx6Hv.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-B78P2dEq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C4YLPVAh.js","shallow-vlLnTDkQ.js","getApiPlaygroundDisplay-D_98hhvf.js","CodeSnippet-DtnZHGqq.js","CodeSnippets-CLFb8KJt.js","Page-kQh739Uz.js","getPastedJson-Cq-zlbnU.js","icon-sN3t983t.js","MethodPill-P_YQ2s09.js","DuplicateIcon-BVzyNsGJ.js","createIcon-B3jqgqC6.js","DynamicMarkdown-Crwq6WG_.js","SectionHeading-C7pGS2Bb.js","axios-vUo_bRtp.js","Markdown-BuPH8yuW.js","clsx-CCOYKgaU.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BnkC_6oA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BM4S31-f.js"]}