{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"TTAPI Docs","description":"Official documentation for TTAPI APIs including Suno API, Midjourney API, Producer API and AI image, video, music services.","colors":{"primary":"#0F7BDE","light":"#0F7BDE","dark":"#0F7BDE"},"logo":"https://mintcdn.com/acme-ce820e56/fUNMlVTRb_WNonix/favicon.ico?fit=max\u0026auto=format\u0026n=fUNMlVTRb_WNonix\u0026q=85\u0026s=e18fef3148d7082fb4075aad93474247","favicon":"https://mintcdn.com/acme-ce820e56/fUNMlVTRb_WNonix/favicon.ico?fit=max\u0026auto=format\u0026n=fUNMlVTRb_WNonix\u0026q=85\u0026s=e18fef3148d7082fb4075aad93474247","navbar":{"links":[{"href":"mailto:support@ttapi.io","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.ttapi.io"}},"footer":{"socials":{"telegram":"https://t.me/+UE4KymT8r7ZjMTVl","discord":"https://discord.gg/edugm4QmCb"}},"seo":{"metatags":{"canonical":"https://docs.ttapi.io","description":"TTAPI unified AI API platform providing Suno API, Midjourney API, Producer API and image, video, music generation APIs.","keywords":"AI API aggregation, Suno API, Midjourney API, Midjourney API documentation, Midjourney imagine API, Midjourney fetch API image generation API, video generation API, music generation API","author":"TTAPI","application-name":"TTAPI","apple-mobile-web-app-title":"TTAPI","og:site_name":"TTAPI","robots":"index, follow","googlebot":"index, follow","google-site-verification":"s1XjZs9Wp2uv51os_g7d7_pJcUVLb0QVbV0d-HI077A","og:image":"https://docs.ttapi.io/og.png"},"indexing":"navigable"},"fonts":{"family":"Open Sans"},"icons":{"library":"fontawesome"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"markdown":{"instructions":["Send API requests to https://api.ttapi.io with the TT-API-KEY header. Midjourney account hosting uses https://hold.ttapi.io. Claude Code uses https://cc.ttapi.io.","Most generation endpoints are asynchronous. The submit response returns a job id. Poll that product's fetch endpoint, or pass a webhook on the submit request. A fetch call does not start a new generation.","1 USD = 100 quota. Check the pricing page for that product before estimating cost.","This file lists the English docs. Follow every /_llms/ link recursively for the API reference, Chinese, and Russian. Open a page's .md URL for the endpoint schema."]},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Home","icon":"house","href":"https://ttapi.io"}]},"languages":[{"language":"en","default":true,"href":""},{"language":"cn","href":"grids/cn/start/introduction"},{"language":"ru","href":"grids/ru/start/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"acme-ce820e56","hasAudioNarration":false,"actualSubdomain":"acme-ce820e56","customDomains":["docs.ttapi.io"],"gitSource":{"type":"github","owner":"y1466382670","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae074afd03bec028f09c519","collectionId":"41cb44d5-ba03-4476-9a77-b0a27e12f431","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae074afd03bec028f09c519"},"entitlements":{},"buildId":"6ae074afd03bec028f09c519","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"cn","tag":"API参考","count":152},{"language":"en","tag":"API Reference","count":152},{"language":"ru","tag":"Справочник API","count":152},{"language":"cn","tag":"音乐生成","count":64},{"language":"en","tag":"Music Generation","count":64},{"language":"ru","tag":"Генерация музыки","count":64},{"language":"cn","tag":"图片生成","count":49},{"language":"en","tag":"Image Generation","count":49},{"language":"ru","tag":"Генерация изображений","count":49},{"language":"cn","tag":"Suno","count":42},{"language":"en","tag":"Suno","count":42},{"language":"ru","tag":"Suno","count":42},{"language":"cn","tag":"视频生成","count":32},{"language":"en","tag":"Video Generation","count":32},{"language":"ru","tag":"Генерация видео","count":32},{"language":"cn","tag":"指南","count":20},{"language":"en","tag":"Guides","count":20},{"language":"ru","tag":"Руководства","count":20},{"language":"cn","tag":"Flux AI","count":15},{"language":"en","tag":"Flux AI","count":15},{"language":"ru","tag":"Flux AI","count":15},{"language":"cn","tag":"Midjourney","count":14},{"language":"cn","tag":"Producer","count":14},{"language":"en","tag":"Midjourney","count":14},{"language":"en","tag":"Producer","count":14},{"language":"ru","tag":"Midjourney","count":14},{"language":"ru","tag":"Producer","count":14},{"language":"cn","tag":"Grok","count":13},{"language":"en","tag":"Grok","count":13},{"language":"ru","tag":"Grok","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"workos-sso-scim","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},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":true},"customCss":[{"filePath":"public/style.css","content":".group.flex.items-start{align-items:center!important;justify-content:flex-start!important}.group.flex.items-start img.h-4.w-4{flex-shrink:0;display:block}.group.flex.items-start div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group.flex.items-start svg{margin-left:auto!important;align-self:center!important}.tt-history--timeline{--tt-timeline-date-width:5rem;--tt-timeline-gap:2rem;--tt-timeline-line:rgba(15, 123, 222, 0.18);--tt-timeline-dot:#0f7bde;display:grid;grid-template-columns:var(--tt-timeline-date-width) minmax(0,1fr);column-gap:var(--tt-timeline-gap);row-gap:1rem;position:relative;align-items:start;margin-top:.75rem}.tt-history--timeline::before{content:\"\";position:absolute;top:.4rem;bottom:.4rem;left:calc(var(--tt-timeline-date-width) + (var(--tt-timeline-gap)/2));transform:translateX(-50%);width:2px;background:linear-gradient(180deg,rgba(15,123,222,.1),rgba(15,123,222,.3),rgba(15,123,222,.1));border-radius:999px}.tt-history--timeline>h2{grid-column:1;margin:0;padding-top:.15rem;font-size:.95rem;line-height:1.4;text-align:right;color:rgba(71,85,105,.95);position:relative}.tt-history--timeline>h2::after{content:\"\";position:absolute;top:.35rem;right:calc(-1*((var(--tt-timeline-gap)/2) + .4rem));width:.8rem;height:.8rem;background:#fff;border:3px solid var(--tt-timeline-dot);border-radius:999px;box-shadow:0 0 0 6px rgba(15,123,222,.08)}.tt-history--timeline>ul{grid-column:2;margin:0;padding:1rem 1.25rem 1rem 1rem;font-size:.9rem;line-height:1.6;border:1px solid rgba(15,123,222,.12);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,250,255,.96));box-shadow:0 10px 30px rgba(15,23,42,.05);position:relative}.tt-history--timeline>ul li+li{margin-top:.65rem}.tt-history--timeline>ul li::marker{color:rgba(15,123,222,.8)}.tt-history--timeline>ul a{text-decoration-thickness:1.5px}@media (max-width:900px){.tt-history--timeline{grid-template-columns:1fr;row-gap:.55rem}.tt-history--timeline::before{left:.55rem;transform:translateX(-50%)}.tt-history--timeline>h2{grid-column:1;text-align:left;padding-left:1.7rem;font-size:.9rem}.tt-history--timeline>h2::after{left:.15rem;right:auto}.tt-history--timeline>ul{grid-column:1;margin-left:1.7rem}}[data-streamdown=list-item]::marker{display:none}"}],"page":{"pagePath":"api/cn/openai/images-edits","slug":"/api/cn/openai/images-edits","pageMetadata":{"sidebarTitle":"GPT 图像编辑 [官转]","title":"OpenAI Images Edits","openapi":"openapi/cn/openai.json POST /v1/images/edits","description":null,"href":"/api/cn/openai/images-edits"},"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`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`根据一个或多个源图像和提示创建编辑或扩展后的图像。该接口与 OpenAI 官方 Images API 的 `,_jsx(_components.code,{children:`POST /v1/images/edits`}),` 请求和响应结构保持一致。文档翻译自 `,_jsx(`a`,{href:`https://developers.openai.com/api/reference/resources/images/methods/edit`,target:`_self`,children:`官方文档`}),`。”,`]}),`\n`,_jsxs(_components.p,{children:[`支持模型包括 `,_jsx(_components.code,{children:`gpt-image-2`}),`、`,_jsx(_components.code,{children:`gpt-image-1.5`}),`、`,_jsx(_components.code,{children:`gpt-image-1`}),` 和 `,_jsx(_components.code,{children:`dall-e-2`}),`。`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`由于 OpenAI 图像编辑是同步响应,生成时间较长,建议使用 `,_jsx(_components.strong,{children:_jsx(_components.a,{href:`https://api.ttapi.org`,children:`https://api.ttapi.org`})}),` 网关`]})})]})}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":{"config":{},"pageMetadata":{"sidebarTitle":"GPT 图像编辑 [官转]","title":"OpenAI Images Edits","openapi":"openapi/cn/openai.json POST /v1/images/edits","description":null,"href":"/api/cn/openai/images-edits"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/acme-ce820e56/6de44831c3c57b37/public/language-route-switcher.js"],"openApiReferenceData":{"operation":{"security":["ab2b9bd7-4f27-46b0-8984-0e735b71967a"],"requestBody":"9cdbd181-30de-4be2-9c9f-449d0d4299ce","responses":{"200":"9c9f9388-14c1-48dc-8f5b-61fc1d51daf2","400":"5a000e7c-2af2-4a9b-845a-273179485bcb","401":"3826959e-b58c-4a3d-84b3-bb7392b26d65"},"method":"post","type":"path","servers":["b834c06f-47b2-4770-a40c-98906b88a1c2"],"path":"/v1/images/edits","baseUrlOptions":["https://api.ttapi.io"],"title":"","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"images":{"type":"array","items":{"type":"object","properties":{"file_id":{"type":"string","description":"已上传图片的 File API ID。","uniqueKey":"images.items.[INDEX].file_id","typeLabel":"string"},"image_url":{"type":"string","description":"完整 URL 或 base64 编码的数据 URL。","format":"uri","uniqueKey":"images.items.[INDEX].image_url","typeLabel":"string\u003curi>"}},"uniqueKey":"images.items.[INDEX]","typeLabel":"object"},"description":"要编辑的输入图片引用。GPT Image 模型最多可提供 16 张图片。每个对象需提供 `file_id` 或 `image_url`。","isRequired":true,"uniqueKey":"images","typeLabel":"object[]"},"prompt":{"type":"string","description":"描述目标编辑结果的文本提示。GPT Image 模型最多支持 32000 个字符;`dall-e-2` 最多支持 1000 个字符。","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"model":{"type":"string","description":"用于图像编辑的模型。","enum":["gpt-image-2","gpt-image-1.5","gpt-image-1"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"mask":{"type":"object","properties":{"file_id":{"type":"string","description":"已上传蒙版图片的 File API ID。","uniqueKey":"mask.file_id","typeLabel":"string"},"image_url":{"type":"string","description":"完整 URL 或 base64 编码的数据 URL。","format":"uri","uniqueKey":"mask.image_url","typeLabel":"string\u003curi>"}},"description":"可选蒙版图片引用。需且仅需提供 `file_id` 或 `image_url` 之一。","uniqueKey":"mask","typeLabel":"object"},"background":{"type":"string","description":"设置输出图像背景的透明度。仅适用于 GPT Image 模型。可选 `transparent`、`opaque` 或 `auto`(默认)。透明背景需要 `png` 或 `webp` 输出格式。","enum":["transparent","opaque","auto"],"default":"auto","uniqueKey":"background","typeLabel":"enum\u003cstring>"},"input_fidelity":{"type":"string","description":"控制输入图像细节保留程度。可选 `high` 或 `low`,默认值为 `low`。仅适用于 GPT Image 模型。","enum":["high","low"],"default":"low","uniqueKey":"input_fidelity","typeLabel":"enum\u003cstring>"},"moderation":{"type":"string","description":"GPT Image 模型的审核级别。可选 `low` 或 `auto`。","enum":["low","auto"],"default":"auto","uniqueKey":"moderation","typeLabel":"enum\u003cstring>"},"n":{"type":"integer","description":"要生成的图像数量,默认值为 1。可选范围 `1-10`。","uniqueKey":"n","typeLabel":"integer"},"output_compression":{"type":"integer","description":"生成图像的压缩级别(0-100)。仅适用于 `output_format` 为 `webp` 或 `jpeg` 的 GPT Image 模型,默认值为 100。","default":100,"uniqueKey":"output_compression","typeLabel":"integer"},"output_format":{"type":"string","description":"生成图像的返回格式。仅适用于 GPT Image 模型。可选 `png`(默认)、`jpeg` 或 `webp`。","enum":["png","jpeg","webp"],"default":"png","uniqueKey":"output_format","typeLabel":"enum\u003cstring>"},"partial_images":{"type":"integer","description":"流式响应中要返回的部分图片数量,范围 `0-3`,默认值为 0。仅当 `stream` 为 `true` 时可用。","default":0,"uniqueKey":"partial_images","typeLabel":"integer"},"quality":{"type":"string","description":"图像质量。`auto`(默认)会为给定模型自动选择最佳质量。\n\nGPT Image 模型支持 `high`、`medium`、`low`;\n\n`dall-e-2` 仅支持 `standard`。","default":"auto","uniqueKey":"quality","typeLabel":"string"},"response_format":{"type":"string","description":"返回数据格式。仅 `dall-e-2` 支持 `url` 或 `b64_json`;URL 有效期为 60 分钟。GPT Image 模型始终返回 `b64_json`。","enum":["url","b64_json"],"uniqueKey":"response_format","typeLabel":"enum\u003cstring>"},"size":{"type":"string","description":"图像尺寸。\n\nGPT Image 模型支持 `1024x1024`、`1536x1024`、`1024x1536`、`auto`(默认);\n\n`dall-e-2` 支持 `256x256`、`512x512`、`1024x1024`。","default":"auto","uniqueKey":"size","typeLabel":"string"},"stream":{"type":"boolean","description":"是否以流式方式返回编辑进度。启用后可通过 `partial_images` 获取部分图片事件。","default":false,"uniqueKey":"stream","typeLabel":"boolean"},"user":{"type":"string","description":"代表最终用户的唯一标识,可帮助 OpenAI 监测和检测滥用。","uniqueKey":"user","typeLabel":"string"}},"required":["images","prompt","model"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"images":[{"file_id":"\u003cstring>","image_url":"\u003cstring>"}],"prompt":"\u003cstring>","mask":{"file_id":"\u003cstring>","image_url":"\u003cstring>"},"background":"auto","input_fidelity":"low","moderation":"auto","n":123,"output_compression":100,"output_format":"png","partial_images":0,"quality":"auto","size":"auto","stream":false,"user":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"9c9f9388-14c1-48dc-8f5b-61fc1d51daf2":{"description":"请求成功,返回Base64格式图像生成结果(当前仅支持该格式)","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer","description":"生成时间戳(秒)","example":1713833628,"isRequired":true,"uniqueKey":"created","typeLabel":"integer"},"data":{"type":"array","items":{"type":"object","properties":{"b64_json":{"type":"string","description":"生成图像的Base64编码字符串","example":"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSItDnaQIpKhOlkQVFIwU8CR1NZBLi4iFg8B4R33PTK77Z22p22e+628923923f/jH53eV73923/...","isRequired":true,"uniqueKey":"data.items.[INDEX].b64_json","typeLabel":"string"}},"required":["b64_json"],"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"description":"图像生成结果列表","isRequired":true,"uniqueKey":"data","typeLabel":"object[]"},"usage":{"type":"object","description":"Token使用量(Base64格式必返回)","properties":{"input_tokens":{"type":"integer","description":"输入Token数","example":50,"isRequired":true,"uniqueKey":"usage.input_tokens","typeLabel":"integer"},"input_tokens_details":{"type":"object","properties":{"image_tokens":{"type":"integer","description":"图片Token数","example":40,"isRequired":true,"uniqueKey":"usage.input_tokens_details.image_tokens","typeLabel":"integer"},"text_tokens":{"type":"integer","description":"文本Token数","example":10,"isRequired":true,"uniqueKey":"usage.input_tokens_details.text_tokens","typeLabel":"integer"}},"required":["image_tokens","text_tokens"],"example":{"image_tokens":40,"text_tokens":10},"isRequired":true,"uniqueKey":"usage.input_tokens_details","typeLabel":"object"},"output_tokens":{"type":"integer","description":"输出Token数","example":50,"isRequired":true,"uniqueKey":"usage.output_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","description":"总Token数","example":100,"isRequired":true,"uniqueKey":"usage.total_tokens","typeLabel":"integer"}},"required":["input_tokens","input_tokens_details","output_tokens","total_tokens"],"example":{"input_tokens":50,"input_tokens_details":{"image_tokens":40,"text_tokens":10},"output_tokens":50,"total_tokens":100},"isRequired":true,"uniqueKey":"usage","typeLabel":"object"}},"required":["created","data","usage"],"example":{"created":1713833628,"data":[{"b64_json":"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSItDnaQIpKhOlkQVFIwU8CR1NZBLi4iFg8B4R33PTK77Z22p22e+628923923f/jH53eV73923/..."}],"usage":{"total_tokens":100,"input_tokens":50,"output_tokens":50,"input_tokens_details":{"text_tokens":10,"image_tokens":40}}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"created":1713833628,"data":[{"b64_json":"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSItDnaQIpKhOlkQVFIwU8CR1NZBLi4iFg8B4R33PTK77Z22p22e+628923923f/jH53eV73923/..."}],"usage":{"total_tokens":100,"input_tokens":50,"output_tokens":50,"input_tokens_details":{"text_tokens":10,"image_tokens":40}}}}},"exampleType":"generated"}},"exampleType":"generated"},"5a000e7c-2af2-4a9b-845a-273179485bcb":{"description":"参数错误","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"FAILED","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","example":"\"prompt\" cannot be empty.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","uniqueKey":"data","typeLabel":"object"}},"required":["status","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"FAILED","message":"\"prompt\" cannot be empty.","data":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"3826959e-b58c-4a3d-84b3-bb7392b26d65":{"description":"授权失败","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"FAILED","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","example":"Wrong TT-API-KEY or email is not activated.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"FAILED","message":"Wrong TT-API-KEY or email is not activated."}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ab2b9bd7-4f27-46b0-8984-0e735b71967a":{"CustomApiKey":{"type":"apiKey","in":"header","name":"TT-API-KEY","description":"请前往 \u003ca href='https://dashboard.ttapi.io' target='_blank'>TTAPI 控制台\u003c/a> 获取 API 密钥。","scopes":[]}}},"servers":{"b834c06f-47b2-4770-a40c-98906b88a1c2":{"url":"https://api.ttapi.io"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"TT-API-KEY","description":"请前往 \u003ca href='https://dashboard.ttapi.io' target='_blank'>TTAPI 控制台\u003c/a> 获取 API 密钥。","scopes":[]},"schema":{"title":"TT-API-KEY","type":"string","description":"请前往 \u003ca href='https://dashboard.ttapi.io' target='_blank'>TTAPI 控制台\u003c/a> 获取 API 密钥。","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"CustomApiKey","name":"TT-API-KEY"}],"title":"CustomApiKey"}]},"originalFileLocation":"openapi/cn/openai.json"},"subdomain":"acme-ce820e56","siteName":"TTAPI Docs","title":"OpenAI Images Edits - TTAPI Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api/en/openai/images-edits","matchLevel":1},"cn":{"href":"/api/cn/openai/images-edits","matchLevel":0},"ru":{"href":"/api/ru/openai/images-edits","matchLevel":1}}},"lastModified":"2026-10-27T09:54:28.130Z","gitLastModified":"2026-06-16T05:47:02.000Z","originalFileLocation":"api/cn/openai/images-edits.mdx","locale":"cn"},"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=\"system\"}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=\"TTAPI unified AI API platform providing Suno API, Midjourney API, Producer API and image, video, music generation APIs.\">\u003cmeta data-mint-head name=\"keywords\" content=\"AI API aggregation, Suno API, Midjourney API, Midjourney API documentation, Midjourney imagine API, Midjourney fetch API image generation API, video generation API, music generation API\">\u003cmeta data-mint-head name=\"application-name\" content=\"TTAPI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/acme-ce820e56/7zfqBF-tQ3OTWOFw/_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/acme-ce820e56/7zfqBF-tQ3OTWOFw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/acme-ce820e56/7zfqBF-tQ3OTWOFw/_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/acme-ce820e56/7zfqBF-tQ3OTWOFw/_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/acme-ce820e56/7zfqBF-tQ3OTWOFw/_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/acme-ce820e56/7zfqBF-tQ3OTWOFw/_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/acme-ce820e56/7zfqBF-tQ3OTWOFw/_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/acme-ce820e56/7zfqBF-tQ3OTWOFw/_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/acme-ce820e56/7zfqBF-tQ3OTWOFw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"OpenAI Images Edits - TTAPI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"TTAPI unified AI API platform providing Suno API, Midjourney API, Producer API and image, video, music generation APIs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TTAPI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ttapi.io/api/cn/openai/images-edits\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.ttapi.io/og.png\">\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=\"OpenAI Images Edits - TTAPI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"TTAPI unified AI API platform providing Suno API, Midjourney API, Producer API and image, video, music generation APIs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.ttapi.io/og.png\">\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/acme-ce820e56/7zfqBF-tQ3OTWOFw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TTAPI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F7BDE\">\u003cmeta data-mint-head name=\"author\" content=\"TTAPI\">\u003cmeta data-mint-head name=\"application-name\" content=\"TTAPI\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"s1XjZs9Wp2uv51os_g7d7_pJcUVLb0QVbV0d-HI077A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ttapi.io/api/cn/openai/images-edits\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/cn/openai/images-edits.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.ttapi.io/api/cn/openai/images-edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.ttapi.io/api/en/openai/images-edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.ttapi.io/api/ru/openai/images-edits\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.ttapi.io/api/en/openai/images-edits\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ttapi.io/#organization\",\"name\":\"TTAPI Docs\",\"url\":\"https://docs.ttapi.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/acme-ce820e56/fUNMlVTRb_WNonix/favicon.ico?fit=max\u0026auto=format\u0026n=fUNMlVTRb_WNonix\u0026q=85\u0026s=e18fef3148d7082fb4075aad93474247\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ttapi.io#website\",\"name\":\"TTAPI Docs\",\"url\":\"https://docs.ttapi.io\",\"publisher\":{\"@id\":\"https://docs.ttapi.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ttapi.io/api/cn/openai/images-edits#webpage\",\"url\":\"https://docs.ttapi.io/api/cn/openai/images-edits\",\"name\":\"OpenAI Images Edits\",\"dateModified\":\"2026-06-16T05:47:02.000Z\",\"isPartOf\":{\"@id\":\"https://docs.ttapi.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ttapi.io/api/cn/openai/images-edits#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ttapi.io/api/cn/openai/images-edits#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"图片生成\",\"item\":\"https://docs.ttapi.io/api/cn/midjourney/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OpenAI Image\",\"item\":\"https://docs.ttapi.io/api/cn/openai/index\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"OpenAI Images Edits\",\"item\":\"https://docs.ttapi.io/api/cn/openai/images-edits\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ttapi.io/api/cn/openai/images-edits#apireference\",\"headline\":\"OpenAI Images Edits\",\"name\":\"OpenAI Images Edits\",\"url\":\"https://docs.ttapi.io/api/cn/openai/images-edits\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ttapi.io/api/cn/openai/images-edits#webpage\"},\"image\":\"https://docs.ttapi.io/og.png\",\"dateModified\":\"2026-06-16T05:47:02.000Z\",\"publisher\":{\"@id\":\"https://docs.ttapi.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ttapi.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"TTAPI Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"TTAPI Docs","nav":{"global":{"anchors":[{"anchor":"Home","icon":"house","href":"https://ttapi.io"}]},"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/api/en/openai/images-edits"}]},{"language":"cn","tabs":[{"tab":"指南","pages":[{"title":"指南","href":"/grids/cn/start/introduction"}]},{"tab":"API参考","pages":[{"group":"图片生成","pages":[{"group":"Midjourney","icon":"/images/Midjourney.png","pages":[{"sidebarTitle":"📖 Midjourney API 总览","title":"Midjourney API 文档","href":"/api/cn/midjourney"},{"sidebarTitle":"图像生成","title":"Midjourney Imagine API 文档","openapi":"openapi/cn/midjourney.json POST /midjourney/v1/imagine","href":"/api/cn/midjourney/imagine"},{"sidebarTitle":"图像操作","title":"Midjourney 图像操作 API 文档","openapi":"openapi/cn/midjourney.json POST /midjourney/v1/action","href":"/api/cn/midjourney/action"},{"sidebarTitle":"图片混合","title":"Midjourney Blend API 文档","openapi":"openapi/cn/midjourney.json POST /midjourney/v1/blend","href":"/api/cn/midjourney/blend"},{"sidebarTitle":"图像描述","title":"Midjourney Describe API 文档","openapi":"openapi/cn/midjourney.json POST /midjourney/v1/describe","href":"/api/cn/midjourney/describe"},{"sidebarTitle":"获取 Seed","title":"Midjourney Seed 查询 API 文档","openapi":"openapi/cn/midjourney.json POST /midjourney/v1/seed","href":"/api/cn/midjourney/seed"},{"sidebarTitle":"局部重绘","title":"Midjourney 局部重绘 API 文档","openapi":"openapi/cn/midjourney.json POST /midjourney/v1/inpaint","href":"/api/cn/midjourney/inpaint"},{"sidebarTitle":"查询结果","title":"Midjourney 任务结果查询 API 文档","openapi":"openapi/cn/midjourney.json GET /midjourney/v1/fetch","href":"/api/cn/midjourney/fetch"}]},{"group":"Midjourney Edit","icon":"/images/Midjourney.png","pages":[{"title":"编辑图像","openapi":"openapi/cn/midjourneyedit.json POST /midjourney/image-edits/submit","href":"/api/cn/midjourneyedit/submit"},{"title":"获取任务状态","openapi":"openapi/cn/midjourneyedit.json get /midjourney/image-edits/fetch","href":"/api/cn/midjourneyedit/fetch"}]},{"group":"Nano Banana","icon":"/images/Gemini.png","pages":[{"sidebarTitle":"📖 Nano Banana API 总览","title":"Nano Banana API 文档","href":"/api/cn/gemini/index"},{"sidebarTitle":"图像生成","title":"Nano Banana 图像生成 API 文档","openapi":"openapi/cn/gemini.json POST /gemini/image/generate","href":"/api/cn/gemini/generate"},{"title":"结果查询","openapi":"openapi/cn/gemini.json get /gemini/image/fetch","href":"/api/cn/gemini/fetch"}]},{"group":"OpenAI Image","icon":"/images/open-ai.png","pages":[{"sidebarTitle":"📖 OpenAI 图片 API 总览","title":"OpenAI 图片 API 文档","href":"/api/cn/openai/index"},{"sidebarTitle":"GPT 图像生成 [官转]","title":"OpenAI Images Generations","openapi":"openapi/cn/openai.json POST /v1/images/generations","description":null,"href":"/api/cn/openai/images-generations"},{"sidebarTitle":"GPT 图像编辑 [官转]","title":"OpenAI Images Edits","openapi":"openapi/cn/openai.json POST /v1/images/edits","href":"/api/cn/openai/images-edits"},{"title":"GPT-生成图像 [非官转]","openapi":"openapi/cn/openai.json POST /openai/gpt/generations","description":"根据文本提示以及图片资源生成图片","href":"/api/cn/openai/gpt-generations"},{"title":"GPT-生成结果查询 [非官转]","openapi":"openapi/cn/openai.json get /openai/gpt/fetch","href":"/api/cn/openai/gpt-fetch"}]},{"group":"Novel AI","icon":"/images/novel.png","pages":[{"sidebarTitle":"文生图","title":"NovelAI 文生图 API 文档","openapi":"openapi/cn/novel.json POST /novelai/text-to-image","href":"/api/cn/novel/text-to-image"},{"sidebarTitle":"图生图","title":"NovelAI 图生图 API 文档","openapi":"openapi/cn/novel.json POST /novelai/image-to-image","href":"/api/cn/novel/image-to-image"},{"sidebarTitle":"查询结果","title":"NovelAI 查询 API 文档","openapi":"openapi/cn/novel.json get /novelai/fetch","href":"/api/cn/novel/fetch"}]},{"group":"Flux AI","icon":"/images/flux.png","pages":[{"sidebarTitle":"📖 Flux API 总览","title":"Flux API","href":"/api/cn/flux/index"},{"group":"Flux 3","pages":[{"sidebarTitle":"FLUX 3 Image","title":"使用 FLUX 3 生成图像","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-3-image","href":"/api/cn/flux/flux-3-image"},{"sidebarTitle":"FLUX 3 Image Klein","title":"使用 FLUX 3 Image Klein 生成图像","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-3-image-klein","href":"/api/cn/flux/flux-3-image-klein"}]},{"group":"Flux 2","pages":[{"sidebarTitle":"Flux.2[klein] 4B","title":"Flux.2[klein] 4B API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-2-klein-4b","href":"/api/cn/flux/flux-2-klein-4b"},{"sidebarTitle":"Flux.2[klein] 9B","title":"Flux.2[klein] 9B API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-2-klein-9b","href":"/api/cn/flux/flux-2-klein-9b"},{"sidebarTitle":"Flux.2[max]","title":"Flux.2[max] API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-2-max","href":"/api/cn/flux/flux-2-max"},{"sidebarTitle":"Flux.2[flex]","title":"Flux.2[flex] API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-2-flex","href":"/api/cn/flux/flux-2-flex"},{"sidebarTitle":"Flux.2[pro]","title":"Flux.2[pro] API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-2-pro","href":"/api/cn/flux/flux-2-pro"}]},{"group":"Flux 1","pages":[{"sidebarTitle":"Flux.1 Kontext[max]","title":"Flux.1 Kontext[max] API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-kontext-max","href":"/api/cn/flux/flux-kontext-max"},{"sidebarTitle":"Flux.1 Kontext[pro]","title":"Flux.1 Kontext[pro] API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-kontext-pro","href":"/api/cn/flux/flux-kontext-pro"},{"sidebarTitle":"Flux1.1[pro] Ultra","title":"Flux1.1[pro] Ultra API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-pro-1.1-ultra","href":"/api/cn/flux/flux-pro-1.1-ultra"},{"sidebarTitle":"Flux1.1[pro]","title":"Flux1.1[pro] API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-pro-1.1","href":"/api/cn/flux/flux-pro-1.1"},{"sidebarTitle":"Flux.1[pro]","title":"Flux.1[pro] API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-pro","href":"/api/cn/flux/flux-pro"},{"sidebarTitle":"Flux.1[dev]","title":"Flux.1[dev] API 文档","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-dev","href":"/api/cn/flux/flux-dev"}]},{"sidebarTitle":"查询结果","title":"Flux 查询 API 文档","openapi":"openapi/cn/flux.json GET /flux/fetch","href":"/api/cn/flux/fetch"}]},{"group":"Grok Image","icon":"/images/grok.svg","pages":[{"title":"生成图片","openapi":"openapi/cn/grokimage.json POST /grok/image","href":"/api/cn/grokimage/image"},{"title":"编辑图片","openapi":"openapi/cn/grokimage.json POST /grok/image/edits","href":"/api/cn/grokimage/editimage"},{"title":"查询任务结果","openapi":"openapi/cn/grokimage.json post /grok/image/fetch","href":"/api/cn/grokimage/fetch"}]},{"group":"SwapFace","icon":"/images/face.png","pages":[{"title":"SwapFace换脸","openapi":"openapi/cn/swapface.json POST /insightFace/v1/swap","href":"/api/cn/swapface/swap"},{"title":"获取换脸结果 Fetch SwapFace","openapi":"openapi/cn/swapface.json get /insightFace/v1/fetch","href":"/api/cn/swapface/fetch"}]},{"group":"Seedream","icon":"/images/huoshan.jpg","pages":[{"sidebarTitle":"Seedream 图片生成 API 总览","title":"Seedream 图片生成 API 文档","href":"/api/cn/seedream/index"},{"title":"文生图","openapi":"openapi/cn/seedream-text-to-image.json POST /sd/api/v3/images/generations/tasks","href":"/api/cn/seedream/text-to-image"},{"title":"图生图","openapi":"openapi/cn/seedream-image-to-image.json POST /sd/api/v3/images/generations/tasks","href":"/api/cn/seedream/image-to-image"},{"title":"多图融合","openapi":"openapi/cn/seedream-multi-image.json POST /sd/api/v3/images/generations/tasks","href":"/api/cn/seedream/multi-image"},{"title":"图层拆分","openapi":"openapi/cn/seedream-layer-decomposition.json POST /sd/api/v3/images/generations/tasks","href":"/api/cn/seedream/layer-decomposition"},{"title":"交互编辑","openapi":"openapi/cn/seedream-interactive-edit.json POST /sd/api/v3/images/generations/tasks","href":"/api/cn/seedream/interactive-edit"},{"title":"查询结果","openapi":"openapi/cn/seedream.json GET /sd/api/v3/images/generations/tasks/{id}","href":"/api/cn/seedream/fetch"},{"title":"文生图(同步)","openapi":"openapi/cn/seedream-text-to-image-sync.json POST /sd/api/v3/images/generations","href":"/api/cn/seedream/text-to-image-sync"}]}]},{"group":"视频生成","pages":[{"group":"Midjourney","icon":"/images/Midjourney.png","pages":[{"title":"生成视频","openapi":"openapi/cn/sora.json POST /midjourney/video/submit","href":"/api/cn/videoapi/submit"},{"title":"视频延伸","openapi":"openapi/cn/sora.json POST /midjourney/video/extend","href":"/api/cn/videoapi/extend"},{"title":"获取任务状态 - fetch","openapi":"openapi/cn/sora.json get /midjourney/video/fetch","href":"/api/cn/videoapi/fetch"}]},{"group":"Grok","icon":"/images/grok.svg","pages":[{"sidebarTitle":"📖 Grok 视频 API 总览","title":"Grok 视频 API 中文文档","href":"/api/cn/grok/index"},{"title":"文生视频","openapi":"openapi/cn/grok-text-to-video.json POST /grok/generations","href":"/api/cn/grok/text-to-video"},{"title":"首帧生视频","openapi":"openapi/cn/grok-first-frame-to-video.json POST /grok/generations","href":"/api/cn/grok/first-frame-to-video"},{"title":"尾帧生视频","openapi":"openapi/cn/grok-last-frame-to-video.json POST /grok/generations","href":"/api/cn/grok/last-frame-to-video"},{"title":"首尾帧生视频","openapi":"openapi/cn/grok-first-last-frame-to-video.json POST /grok/generations","href":"/api/cn/grok/first-last-frame-to-video"},{"title":"关键帧生视频","openapi":"openapi/cn/grok-keyframe-to-video.json POST /grok/generations","href":"/api/cn/grok/keyframe-to-video"},{"title":"参考生视频","openapi":"openapi/cn/grok-reference-to-video.json POST /grok/generations","href":"/api/cn/grok/reference-to-video"},{"title":"视频扩展","sidebarTitle":"视频扩展(非官转)","openapi":"openapi/cn/grok.json POST /grok/extensions","href":"/api/cn/grok/extensions"},{"title":"查询任务结果","sidebarTitle":"查询任务结果(非官转)","openapi":"openapi/cn/grok.json get /grok/fetch","href":"/api/cn/grok/fetch"},{"title":"生成视频-官转","openapi":"openapi/cn/grok_video.json POST /grok/v1/videos/generations","href":"/api/cn/grok/video-generations"},{"title":"视频扩展-官转","openapi":"openapi/cn/grok_video.json POST /grok/v1/videos/extensions","href":"/api/cn/grok/video-extensions"},{"title":"查询视频结果-官转","openapi":"openapi/cn/grok_video.json GET /grok/v1/videos/{request_id}","href":"/api/cn/grok/video-fetch"}]},{"group":"HappyHorse","icon":"/images/happyhorse.png","pages":[{"sidebarTitle":" HappyHorse 视频 API 总览","title":"HappyHorse 视频 API 文档","href":"/api/cn/happyhorse/index"},{"title":"文生视频","openapi":"openapi/cn/happyhorse.json POST /happyhorse/api/v1/services/aigc/video-generation/video-synthesis","href":"/api/cn/happyhorse/generations"},{"title":"图生视频 - 基于首帧","openapi":"openapi/cn/happyhorse-image-to-video.json POST /happyhorse/api/v1/services/aigc/video-generation/video-synthesis","href":"/api/cn/happyhorse/image-to-video"},{"title":"参考生视频","openapi":"openapi/cn/happyhorse-reference-to-video.json POST /happyhorse/api/v1/services/aigc/video-generation/video-synthesis","href":"/api/cn/happyhorse/reference-to-video"},{"title":"视频编辑","openapi":"openapi/cn/happyhorse-video-edit.json POST /happyhorse/api/v1/services/aigc/video-generation/video-synthesis","href":"/api/cn/happyhorse/video-edit"},{"title":"查询任务结果","openapi":"openapi/cn/happyhorse.json GET /happyhorse/api/v1/tasks/{task_id}","href":"/api/cn/happyhorse/fetch"}]},{"group":"Gemini","icon":"/images/Gemini.png","pages":[{"sidebarTitle":"视频生成","title":"Gemini 视频生成 API 文档","openapi":"openapi/cn/gemini.json POST /gemini/video/generations","href":"/api/cn/gemini/video-generations"},{"sidebarTitle":"视频延长","title":"Gemini 视频延长 API 文档","openapi":"openapi/cn/gemini.json POST /gemini/video/extend","href":"/api/cn/gemini/video-extend"},{"sidebarTitle":"视频结果查询","title":"Gemini 视频结果查询 API 文档","openapi":"openapi/cn/gemini.json get /gemini/video/fetch","href":"/api/cn/gemini/video-fetch"}]},{"group":"FLUX 3","icon":"/images/flux.png","pages":[{"sidebarTitle":"FLUX 3 Video","title":"使用 FLUX 3 生成视频","openapi":"openapi/cn/flux.json POST /bfl/v1/flux-3-video","href":"/api/cn/flux/flux-3-video"},{"sidebarTitle":"获取结果","title":"获取 Flux 视频结果","openapi":"openapi/cn/flux.json GET /bfl/v1/fetch","href":"/api/cn/flux/video-result"}]},{"group":"Wan 3.0","icon":"/images/wan.ico","pages":[{"title":"参考文件生视频","openapi":"openapi/cn/wan-file-to-video.json POST /wan/api/v1/services/aigc/video-generation/video-synthesis","href":"/api/cn/wan/file-to-video"},{"title":"参考生视频","openapi":"openapi/cn/wan-reference-to-video.json POST /wan/api/v1/services/aigc/video-generation/video-synthesis","href":"/api/cn/wan/reference-to-video"},{"title":"文生视频","openapi":"openapi/cn/wan-text-to-video.json POST /wan/api/v1/services/aigc/video-generation/video-synthesis","href":"/api/cn/wan/text-to-video"},{"title":"首帧生视频","openapi":"openapi/cn/wan-first-frame-to-video.json POST /wan/api/v1/services/aigc/video-generation/video-synthesis","href":"/api/cn/wan/first-frame-to-video"},{"title":"首尾帧生视频","openapi":"openapi/cn/wan-first-last-frame-to-video.json POST /wan/api/v1/services/aigc/video-generation/video-synthesis","href":"/api/cn/wan/first-last-frame-to-video"},{"title":"查询任务结果","openapi":"openapi/cn/wan-task-result.json GET /wan/api/v1/tasks/{task_id}","href":"/api/cn/wan/task-result"}]}]},{"group":"音乐生成","pages":[{"group":"Suno","icon":"/images/Suno.png","pages":[{"sidebarTitle":"📖 Suno API 中文文档","title":"Suno API 中文文档 — AI 音乐生成、歌词与音频","href":"/api/cn/suno/index"},{"sidebarTitle":"生成音乐","title":"Suno 音乐生成 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/music","href":"/api/cn/suno/suno_music"},{"sidebarTitle":"生成歌词","title":"Suno 歌词生成 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/lyrics","href":"/api/cn/suno/suno_lyrics"},{"sidebarTitle":"续写扩展","title":"Suno Extend API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/extend","href":"/api/cn/suno/suno_extend"},{"sidebarTitle":"风格翻唱","title":"Suno Cover API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/cover","href":"/api/cn/suno/suno_cover"},{"sidebarTitle":"上传并翻唱","title":"Suno Upload Cover API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/upload-cover","href":"/api/cn/suno/suno_upload_cover"},{"sidebarTitle":"上传并延伸","title":"Suno Upload Extend API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/upload-extend","href":"/api/cn/suno/suno_upload_extend"},{"sidebarTitle":"分轨提取","title":"Suno Stems API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/stems","href":"/api/cn/suno/suno_stems"},{"sidebarTitle":"全量分轨","title":"Suno Stems All API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/stems-all","href":"/api/cn/suno/suno_stems_all"},{"sidebarTitle":"添加人声","title":"Suno Add Vocals API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/add-vocals","href":"/api/cn/suno/suno_add_vocals"},{"sidebarTitle":"添加伴奏","title":"Suno Add Instrumental API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/add-instrumental","href":"/api/cn/suno/suno_add_instrumental"},{"sidebarTitle":"添加音轨","title":"Suno Add Stem API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/add-stem","href":"/api/cn/suno/suno_add_stem"},{"sidebarTitle":"母带优化","title":"Suno Remaster API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/remaster","href":"/api/cn/suno/suno_remaster"},{"sidebarTitle":"段落替换","title":"Suno Replace Section API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/replace-section","href":"/api/cn/suno/suno_replace_section"},{"sidebarTitle":"生成混搭","title":"Suno Mashup API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/mashup","href":"/api/cn/suno/suno_mashup"},{"sidebarTitle":"灵感生成","title":"Suno Inspo API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/inspo","href":"/api/cn/suno/suno_inspo"},{"sidebarTitle":"样本生成","title":"Suno Sample API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/sample","href":"/api/cn/suno/suno_sample"},{"sidebarTitle":"生成音效","title":"Suno Sounds API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/sounds","href":"/api/cn/suno/suno_sounds"},{"sidebarTitle":"语音朗读","title":"Suno Speech API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/speech","href":"/api/cn/suno/suno_speech"},{"sidebarTitle":"裁剪音频","title":"Suno Crop API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/crop","href":"/api/cn/suno/suno_crop"},{"sidebarTitle":"删除片段","title":"Suno Remove Section API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/remove-section","href":"/api/cn/suno/suno_remove_section"},{"sidebarTitle":"淡入","title":"Suno Fade In API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/fade-in","href":"/api/cn/suno/suno_fade_in"},{"sidebarTitle":"淡出","title":"Suno Fade Out API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/fade-out","href":"/api/cn/suno/suno_fade_out"},{"sidebarTitle":"调整速度","title":"Suno Adjust Speed API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/adjust-speed","href":"/api/cn/suno/suno_adjust_speed"},{"sidebarTitle":"完整歌曲合成","title":"Suno 完整歌曲合成 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/concat","href":"/api/cn/suno/suno_concat"},{"sidebarTitle":"上传音频","title":"Suno Upload API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/upload","href":"/api/cn/suno/suno_upload"},{"sidebarTitle":"生成 MIDI","title":"Suno MIDI 生成 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/gen-midi","href":"/api/cn/suno/suno_midi"},{"sidebarTitle":"歌词时间轴","title":"Suno 歌词时间轴 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/alignedLyrics","href":"/api/cn/suno/suno_aligned_lyrics"},{"sidebarTitle":"生成音乐视频","title":"Suno 音乐视频生成 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/generateVideo","href":"/api/cn/suno/suno_generate_video"},{"sidebarTitle":"文件下载","title":"Suno 文件下载 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/download","href":"/api/cn/suno/suno_download"},{"sidebarTitle":"创建语音","title":"Suno Create Voice API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/create-voice","href":"/api/cn/suno/suno_create_voice"},{"sidebarTitle":"创建自定义模型","title":"Suno Create Model API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/create-model","href":"/api/cn/suno/suno_create_model"},{"sidebarTitle":"Persona","title":"Suno Persona API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/persona","href":"/api/cn/suno/suno_persona"},{"sidebarTitle":"标签增强","title":"Suno 标签增强 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/upsample-tags","href":"/api/cn/suno/suno_upsample_tags"},{"sidebarTitle":"BPM 获取","title":"Suno BPM 获取 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/gen-bpm","href":"/api/cn/suno/suno_bpm"},{"sidebarTitle":"任务结果 V2","title":"Suno 任务结果查询 V2 API 文档","openapi":"openapi/cn/suno.json GET /suno/v2/fetch","href":"/api/cn/suno/suno_fetch_v2"},{"sidebarTitle":"导出 WAV","title":"Suno WAV 导出 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/wav","deprecated":true,"href":"/api/cn/suno/suno_wav"},{"sidebarTitle":"提取 Vox","title":"Suno Vox 提取 API 文档","openapi":"openapi/cn/suno.json POST /suno/v1/vox","deprecated":true,"href":"/api/cn/suno/suno_vox"},{"sidebarTitle":"任务结果","title":"Suno 任务结果查询 API 文档","openapi":"openapi/cn/suno.json GET /suno/v1/fetch","deprecated":true,"href":"/api/cn/suno/suno_fetch"}]},{"group":"Producer","icon":"/images/producer.ico","pages":[{"sidebarTitle":"📖 Producer API 总览","title":"Producer API 文档","href":"/api/cn/producer/index"},{"title":"生成音乐","openapi":"openapi/cn/producer.json POST /producer/v1/music","deprecated":true,"href":"/api/cn/producer/producer_music"},{"title":"生成歌词","openapi":"openapi/cn/producer.json POST /producer/v1/lyrics","deprecated":true,"href":"/api/cn/producer/producer_lyrics"},{"title":"音乐延伸","openapi":"openapi/cn/producer.json POST /producer/v1/extend","deprecated":true,"href":"/api/cn/producer/producer_extend"},{"title":"音乐翻版","openapi":"openapi/cn/producer.json POST /producer/v1/cover","deprecated":true,"href":"/api/cn/producer/producer_cover"},{"title":"音乐变换","openapi":"openapi/cn/producer.json POST /producer/v1/variation","deprecated":true,"href":"/api/cn/producer/producer_variation"},{"title":"音乐片段替换","openapi":"openapi/cn/producer.json POST /producer/v1/replace","deprecated":true,"href":"/api/cn/producer/producer_replace"},{"title":"人声翻版","openapi":"openapi/cn/producer.json POST /producer/v1/vocals-swap","deprecated":true,"href":"/api/cn/producer/producer_vocals-swap"},{"title":"伴奏翻版","openapi":"openapi/cn/producer.json POST /producer/v1/instrumentals-swap","deprecated":true,"href":"/api/cn/producer/producer_instrumentals-swap"},{"title":"词曲分离","openapi":"openapi/cn/producer.json POST /producer/v1/stems","deprecated":true,"href":"/api/cn/producer/producer_stems"},{"title":"下载音频","openapi":"openapi/cn/producer.json POST /producer/v1/download","deprecated":true,"href":"/api/cn/producer/producer_download"},{"title":"上传音频 【免费接口】","openapi":"openapi/cn/producer.json POST /producer/v1/upload","deprecated":true,"href":"/api/cn/producer/producer_upload"},{"title":"生成视频 【免费接口】","openapi":"openapi/cn/producer.json POST /producer/v1/generate-video","deprecated":true,"href":"/api/cn/producer/producer_generate-video"},{"title":"获取任务状态 - fetch","openapi":"openapi/cn/producer.json get /producer/v1/fetch","deprecated":true,"href":"/api/cn/producer/producer_fetch"}]},{"group":"Flowmusic","icon":"/images/flowmuisc.ico","pages":[{"sidebarTitle":"📖 FlowMusic API 总览","title":"FlowMusic API 文档","href":"/api/cn/flowmuisc/index"},{"title":"生成音乐","openapi":"openapi/cn/flowmuisc.json POST /flowmusic/v1/generations","href":"/api/cn/flowmuisc/flowmuisc_generate"},{"title":"生成歌词","openapi":"openapi/cn/flowmuisc.json POST /flowmusic/v1/lyrics-create","href":"/api/cn/flowmuisc/flowmuisc_lyricscreate"},{"title":"音乐片段替换","openapi":"openapi/cn/flowmuisc.json POST /flowmusic/v1/replace","href":"/api/cn/flowmuisc/flowmuisc_replace"},{"title":"音乐延伸","openapi":"openapi/cn/flowmuisc.json POST /flowmusic/v1/extend","href":"/api/cn/flowmuisc/flowmuisc_extend"},{"title":"音乐翻唱","openapi":"openapi/cn/flowmuisc.json POST /flowmusic/v1/cover","href":"/api/cn/flowmuisc/flowmuisc_cover"},{"title":"词曲分离","openapi":"openapi/cn/flowmuisc.json POST /flowmusic/v1/stems","href":"/api/cn/flowmuisc/flowmuisc_stems"},{"title":"上传音频","openapi":"openapi/cn/flowmuisc.json POST /flowmusic/v1/upload-audio","href":"/api/cn/flowmuisc/flowmuisc_uploadaudio"},{"title":"下载音频","openapi":"openapi/cn/flowmuisc.json POST /flowmusic/v1/download-audio","href":"/api/cn/flowmuisc/flowmuisc_download"},{"title":"下载视频","openapi":"openapi/cn/flowmuisc.json POST /flowmusic/v1/video-clip","href":"/api/cn/flowmuisc/flowmuisc_videoclip"},{"title":"获取任务状态 - fetch","openapi":"openapi/cn/flowmuisc.json get /flowmusic/v1/fetch","href":"/api/cn/flowmuisc/flowmuisc_fetch"}]}]},{"group":"语言对话","pages":[{"group":"OpenAI","icon":"/images/open-ai.png","pages":[{"title":"Completions","openapi":"openapi/cn/llm.json POST /v1/chat/completions","href":"/api/cn/llm/completions"},{"title":"Responses","openapi":"openapi/cn/llm.json POST /v1/responses","href":"/api/cn/llm/responses"}]},{"group":"Claude","icon":"/images/claude.png","pages":[{"sidebarTitle":"Messages","title":"Claude Messages 接口","openapi":"openapi/cn/llm.json POST /v1/messages","href":"/api/cn/llm/messages"}]},{"group":"Google","icon":"/images/Gemini.png","pages":[{"sidebarTitle":"GenerateContent","title":"Gemini Generate Content","openapi":"openapi/cn/llm.json POST /v1beta/models/{model}:generateContent","href":"/api/cn/llm/gemini-generate-content"},{"title":"Completions","openapi":"openapi/cn/llm.json POST /gemini/chat/completions","href":"/api/cn/llm/gemini-completions"}]},{"group":"Grok","icon":"/images/grok.svg","pages":[{"sidebarTitle":"Completions","title":"Grok Completions","openapi":"openapi/cn/llm.json POST /v1/chat/completions","href":"/api/cn/llm/grok_chat"}]}]},{"group":"账户","pages":[{"title":"获取用户信息","openapi":"openapi/cn/user.json get /user-info","href":"/api/cn/user/user-info"}]}]}]},{"language":"ru","pages":[{"title":"ru","href":"/api/ru/openai/images-edits"}]}]},"title":"OpenAI Images Edits - TTAPI Docs","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-WRhTSUDL.js","utils-ChMov4Kr.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-_REmC2bI.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp6nVRCu.js","snippetPresets-DZadmXoU.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CY2WdoTl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DwYG-Q4l.js","shallow-BXQIGwv4.js","getApiPlaygroundDisplay-CK5nK5B9.js","CodeSnippet-TH4a2aGW.js","CodeSnippets-DwsQiOFS.js","Page-R3M_BF4L.js","getPastedJson-DD7kUzi_.js","icon-holE3QoJ.js","MethodPill-DUW0T8us.js","DuplicateIcon-CI_p4be-.js","createIcon-BdbRvavb.js","DynamicMarkdown-DN96a4Ur.js","SectionHeading-SCu36A9d.js","axios-vUo_bRtp.js","Markdown-CCeGv-zI.js","clsx-BGBGWFTt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-Cv_O2fky.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-2C5OB2eV.js"]}