Pembuatan gambar, pengeditan, GIF, dan SVG menggunakan POST /v1/images/generations. Baca data[0].task_id dari respons pengiriman, lalu periksa tugas untuk mendapatkan URL berkas.
curl --request POST \ --url https://api.apimart.ai/v1/images/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-image-2.6-flare", "prompt": "A cozy reading nook by a rainy window, warm lamp light", "size": "1:1", "resolution": "1k", "quality": "medium", "n": 1}'
Gambar statis dan SVG mendukung 15 rasio, ukuran piksel seperti 1600x1200, atau auto. Nilai auto eksplisit menyerahkan pilihan ke penyedia. Jika dihilangkan saat mengedit, ukuran dipilih dari rasio gambar pertama dan resolution. GIF mengikuti aturan terpisah di bawah.
low / medium / high / xhigh / max / auto. Nilai lain mengembalikan HTTP 400 saat pengiriman. Jika parameter dihilangkan atau bernilai auto, model memilih tingkat kualitas secara otomatis. Tingkat yang dipilih dapat berubah dan tidak selalu low. Tentukan tingkat secara eksplisit jika memerlukan pengaturan tetap.Jika parameter dihilangkan atau bernilai auto, dana dicadangkan berdasarkan tingkat max, lalu biaya akhir dihitung sesuai tingkat kualitas yang benar-benar dipilih.
Bilangan bulat 1–4; untuk GIF, jumlah animasi. SVG harus 1. Nilai eksplisit 0, negatif, atau lebih dari 4 mengembalikan HTTP 400, bukan diganti dengan nilai bawaan.
transparent / opaque / auto; jika dihilangkan, memakai nilai bawaan penyedia. transparent eksplisit hanya boleh dengan png / webp. SVG memiliki latar transparan secara bawaan; hilangkan parameter ini untuk SVG.
Maksimal 16 gambar referensi; menyertakannya mengaktifkan mode edit. Gunakan URL gambar HTTP(S) yang dapat diakses publik. Unggah berkas lokal melalui API unggah gambar, lalu gunakan url yang dikembalikan.
Masker edit lokal; memerlukan image_urls. Gunakan PNG dengan kanal alfa dan ukuran sama dengan gambar pertama; area transparan sepenuhnya menandai bagian yang diedit. Mendukung URL gambar atau PNG Data URL. Tidak dapat digabungkan dengan anotasi; piksel di luar masker tidak dijamin tetap identik.
Intensitas perencanaan: low / medium / high, bawaan penyedia high, terpisah dari quality. Gunakan low untuk perubahan terarah dan high untuk teks padat, tata letak atau hubungan objek rumit; dapat memperlambat proses atau menambah perubahan. Tidak ada biaya terpisah; hanya didukung 2.6.
Identitas pengguna akhir yang stabil dan opsional, maksimal 128 karakter; disarankan hash nama pengguna atau email. Secara bawaan APIMart tidak meneruskannya ke penyedia, kecuali kanal mengizinkan. Boleh dihilangkan.
Ukuran piksel pasti harus kelipatan 16 pada kedua sumbu, setiap sisi maksimal 3840, rasio sisi panjang terhadap pendek maksimal 3:1, dan total 655.360–8.294.400 piksel. Resolusi di atas 2560×1440 bersifat eksperimental. Tabel sama dengan GPT-Image-2.5; jangan terapkan batas gambar statis ini langsung pada tiap frame GIF.
Permintaan ini mengedit area pada gambar pertama. Hilangkan mask_url untuk mengedit seluruh gambar sesuai prompt; hilangkan size untuk memilih ukuran dari rasio gambar pertama dan resolution. Ganti URL contoh dengan berkas yang dapat diakses.
{ "model": "gpt-image-2.6-sunburst", "prompt": "Replace the fully transparent masked area with a gold ribbon. Preserve the product and the rest of the background.", "image_urls": [ "https://example.com/product.png" ], "mask_url": "https://example.com/product-mask.png", "resolution": "2k", "quality": "high", "complexity": "low"}
Berikan markup_url sebagai URL HTTPS atau Base64 Data URL. Alias markup menerima string atau objek {"image_url":"..."}. file_id tidak didukung.
Sertakan image_urls. Anotasi diterapkan pada gambar pertama; gambar lain menjadi referensi.
Gunakan lapisan PNG transparan terpisah dengan ukuran persis sama dengan gambar pertama. Jangan gabungkan anotasi ke gambar asli.
Gambar pertama dan lapisan masing-masing maksimal 16.777.216 piksel; berkas lapisan maksimal 50 MB.
Jangan gabungkan dengan mask_url. Lapisan tidak memakai token gambar, tetapi permintaan dapat memakai token teks tambahan.
{ "model": "gpt-image-2.6-flare", "prompt": "Recolor the striped vase inside the red circle to solid cobalt blue ceramic. Keep everything else unchanged. Remove the red circle.", "image_urls": [ "https://example.com/kitchen.webp" ], "markup_url": "https://example.com/vase-circle-overlay.png", "quality": "medium"}
Tetapkan output_format: "gif". Hanya pembuatan dari teks: jangan sertakan image_urls, mask_url, markup_url, markup, atau output_compression.
Parameter
Bawaan
Keterangan
frame_count
9
Bilangan bulat 2–16. Batas APIMart saat ini 16 frame, bukan 64 seperti panduan penyedia.
frame_duration_ms
200
Durasi tiap frame dalam milidetik bulat, minimal 20, dibulatkan ke kelipatan 10 ms.
size
auto
Ukuran piksel tiap frame, kedua sisinya kelipatan 16. Jika dihilangkan atau auto, saat ini memakai 512×512. Nama rasio seperti 1:1 tidak didukung.
Penyedia menyusun frame pada satu lembar: 4×2 untuk 2–8 frame, 3×3 untuk 9, 4×3 untuk 10–12, dan 4×4 untuk 13–16. Baris dan kolom dapat ditukar agar mendekati persegi. Seluruh lembar harus memiliki sisi maksimal 3840, total maksimal 8.294.400 piksel, dan rasio maksimal 3:1; jika tidak, pengiriman mengembalikan 400.
512x512 mendukung semua 2–16 frame; 768x768 maksimal 12. Bahkan 2 frame 1024x1024 melebihi batas sisi lembar. Setiap animasi ditagihkan berdasarkan seluruh lembar; n > 1 membuat dan menagihkan beberapa animasi.
{ "model": "gpt-image-2.6-sunburst", "prompt": "A paper lantern swaying gently in the night breeze, seamless loop", "output_format": "gif", "frame_count": 9, "frame_duration_ms": 200, "quality": "low"}
Opsional: none / minimal / low / medium / high / xhigh / max. Nilai yang didukung bergantung pada model teks. Disarankan menghilangkan parameter ini untuk memakai nilai bawaan model.
Hanya pembuatan dari teks dengan n bernilai 1. Jangan berikan gambar referensi, masker, anotasi, atau output_compression.
quality dan complexity berlaku pada gambar referensi perantara. Hasilnya .svg statis tanpa skrip, sumber eksternal, atau bitmap tertanam.
Penggunaan teks svg.model dikenakan biaya selain pembuatan gambar. Akun dengan kontrak harga tetap per gambar belum mendukung SVG; pengiriman mengembalikan 400.
{ "model": "gpt-image-2.6-flare", "prompt": "A minimalist bakery logo with a wheat stalk, flat colors", "output_format": "svg", "svg": { "model": "gpt-5.4-mini" }, "size": "1:1", "quality": "low", "n": 1}
Setelah selesai, baca URL dari data.result.images[].url[] dan segera unduh berkas. Contoh hanya menampilkan kolom utama; jika failed, periksa data.error.message. Gunakan POST /v1/tasks/batch untuk memeriksa beberapa tugas.
Pada respons pemeriksaan tugas, data.usage.svg_usage melaporkan penggunaan model teks yang menulis SVG. Kolom token lain di data.usage merupakan penggunaan model gambar yang membuat referensi. Hitung setiap bagian sesuai aturan penagihan model terkait.
Kolom
Tipe
Keterangan
model
string
Model teks yang benar-benar digunakan untuk menulis SVG.
input_tokens
integer
Token masukan model teks.
output_tokens
integer
Token keluaran model teks, termasuk token penalaran.
reasoning_tokens
integer
Bagian token keluaran yang digunakan untuk penalaran; jangan tambahkan lagi ke output_tokens.
Contoh berikut menampilkan kolom utama respons tugas SVG. Nilai token menggambarkan hubungan antarkolom dan bukan konsumsi tetap.
Kesalahan validasi parameter berikut mengembalikan HTTP 400 secara sinkron saat pengiriman. Tugas tidak dibuat dan tidak ada biaya yang dikenakan. Perbaiki parameter sebelum mengirim ulang.
Kesalahan
Solusi
quality "ultra" is not supported by gpt-image-2.6-flare
Gunakan low / medium / high / xhigh / max / auto; nilai lain seperti ultra tidak didukung.
`n` must be an integer from 1 to 4
Tetapkan n sebagai bilangan bulat 1–4; 0, nilai negatif, dan nilai di atas 4 tidak valid.
output_compression must be an integer from 0 to 100
Tetapkan output_compression sebagai bilangan bulat 0–100.
output_compression is only supported with output_format jpeg or webp
Gunakan kompresi hanya untuk JPEG / WebP; hapus parameter untuk PNG / GIF / SVG.
moderation "xxx" is not supported
Tetapkan moderation ke low atau auto.
markup requires image_urls
Sertakan image_urls dan sesuaikan lapisan dengan gambar pertama.
markup cannot be combined with mask
Pilih anotasi atau masker, jangan keduanya.
frame_count must be an integer from 2 to 16
Tetapkan frame_count sebagai bilangan bulat dari 2 sampai 16.
no supported sheet fits N GIF frames at size WxH
Kurangi ukuran atau jumlah frame; jangan gunakan nama rasio.
output_format=svg requires svg.model
Sertakan objek svg dengan model teks yang didukung.
output_format=svg requires n=1
Gunakan n: 1 untuk SVG.
background=transparent requires an alpha-capable output_format
Transparansi eksplisit memerlukan PNG / WebP; hilangkan parameter untuk SVG.
Jangan kirim stream, partial_images, input_fidelity, prompt_rewriter, atau response_format. Endpoint ini mengembalikan tugas asinkron dan URL CDN, bukan gambar parsial streaming atau respons gambar Base64. frame_count / frame_duration_ms hanya untuk GIF; konfigurasi svg hanya untuk SVG.Flare dan Sunburst memakai tarif yang sama. GPT-Image-2.6 mengonsumsi lebih banyak token pada low / medium dibanding 2.5; jangan memakai estimasi lama tanpa penyesuaian. Tarif terbaru tersedia di halaman harga APIMart atau /api/pricing. Halaman ini tidak mencantumkan harga tetap.Lihat panduan pembuatan gambar OpenAI untuk fitur penyedia. Untuk APIMart, gunakan endpoint, respons asinkron, dan batas pada halaman ini.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"APIMart","colors":{"primary":"#2563EB","light":"#3B82F6","dark":"#1D4ED8"},"favicon":"https://mintcdn.com/apicore/1GnRrmOhqkTFCvFb/logo/logo.png?fit=max\u0026auto=format\u0026n=1GnRrmOhqkTFCvFb\u0026q=85\u0026s=609be15c3f1f4e4b765c5945c2871ae9","navbar":{"links":[{"icon":"x-twitter","href":"https://x.com/APIMart_","label":""},{"icon":"discord","href":"https://discord.gg/V8zqssyZ5c","label":""},{"icon":"weixin","href":"https://cdn.apimart.ai/social-media/wechat.jpg","label":""}],"primary":{"type":"button","label":"Dashboard","href":"https://apimart.ai"}},"footer":{"socials":{"x":"https://x.com/APIMart_","website":"https://apimart.ai","discord":"https://discord.gg/V8zqssyZ5c"}},"seo":{"metatags":{"og:site_name":"APIMart","og:type":"website","keywords":"OpenAI compatible, API gateway, GPT-5, Claude, Gemini, multi-provider, transparent pricing, SLA","twitter:card":"summary_large_image","twitter:site":"@APIMart_","twitter:creator":"@APIMart_"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"en"},{"language":"zh-Hans","href":"cn"},{"language":"ja","href":"ja"},{"language":"ko","href":"ko"},{"language":"ru","href":"ru"},{"language":"de","href":"de"},{"language":"fr","href":"fr"},{"language":"pt","href":"pt"},{"language":"id","href":"id"},{"language":"es","href":"es"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"apicore","hasAudioNarration":false,"actualSubdomain":"apicore","customDomains":["docs.apimart.ai"],"gitSource":{"type":"github","owner":"apimart-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae1c97b1297abb2484bbfc0"},"chroma":{"liveDeploymentHistoryId":"6aec23a95bde63e7c249e7ca","collectionId":"c8629b3a-8001-4790-84f4-5a16bc12181a","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aec23a95bde63e7c249e7ca"},"entitlements":{},"buildId":"6aec23a95bde63e7c249e7ca","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"zh-Hans","tag":"API 手册","count":164},{"language":"de","tag":"API-Handbuch","count":164},{"language":"en","tag":"API Manual","count":164},{"language":"es","tag":"Manual de la API","count":164},{"language":"fr","tag":"Manuel API","count":164},{"language":"id","tag":"Panduan API","count":164},{"language":"ja","tag":"APIマニュアル","count":164},{"language":"ko","tag":"API 매뉴얼","count":164},{"language":"pt","tag":"Manual da API","count":164},{"language":"ru","tag":"Руководство API","count":164},{"language":"zh-Hans","tag":"音频系列","count":51},{"language":"zh-Hans","tag":"图像系列","count":51},{"language":"de","tag":"Audioserie","count":51},{"language":"de","tag":"Bildserie","count":51},{"language":"en","tag":"Audio Series","count":51},{"language":"en","tag":"Image Series","count":51},{"language":"es","tag":"Serie de audio","count":51},{"language":"es","tag":"Serie de imágenes","count":51},{"language":"fr","tag":"Série Audio","count":51},{"language":"fr","tag":"Série Image","count":51},{"language":"id","tag":"Seri Audio","count":51},{"language":"id","tag":"Seri Gambar","count":51},{"language":"ja","tag":"オーディオシリーズ","count":51},{"language":"ja","tag":"画像シリーズ","count":51},{"language":"ko","tag":"오디오 시리즈","count":51},{"language":"ko","tag":"이미지 시리즈","count":51},{"language":"pt","tag":"Série de Áudio","count":51},{"language":"pt","tag":"Série de Imagem","count":51},{"language":"ru","tag":"Аудиосерия","count":51},{"language":"ru","tag":"Серия изображений","count":51},{"language":"zh-Hans","tag":"视频系列","count":43},{"language":"de","tag":"Videoserie","count":43},{"language":"en","tag":"Video Series","count":43},{"language":"es","tag":"Serie de video","count":43},{"language":"fr","tag":"Série Vidéo","count":43},{"language":"id","tag":"Seri Video","count":43},{"language":"ja","tag":"動画シリーズ","count":43},{"language":"ko","tag":"비디오 시리즈","count":43},{"language":"pt","tag":"Série de Vídeo","count":43},{"language":"ru","tag":"Видеосерия","count":43},{"language":"zh-Hans","tag":"Suno","count":35},{"language":"de","tag":"Suno","count":35},{"language":"en","tag":"Suno","count":35},{"language":"es","tag":"Suno","count":35},{"language":"fr","tag":"Suno","count":35},{"language":"id","tag":"Suno","count":35},{"language":"ja","tag":"Suno","count":35},{"language":"ko","tag":"Suno","count":35},{"language":"pt","tag":"Suno","count":35},{"language":"ru","tag":"Suno","count":35},{"language":"zh-Hans","tag":"Midjourney","count":19},{"language":"de","tag":"Midjourney","count":19},{"language":"en","tag":"Midjourney","count":19},{"language":"es","tag":"Midjourney","count":19},{"language":"fr","tag":"Midjourney","count":19},{"language":"id","tag":"Midjourney","count":19},{"language":"ja","tag":"Midjourney","count":19},{"language":"ko","tag":"Midjourney","count":19},{"language":"pt","tag":"Midjourney","count":19},{"language":"ru","tag":"Midjourney","count":19},{"language":"zh-Hans","tag":"Flow Music","count":14},{"language":"de","tag":"Flow Music","count":14},{"language":"en","tag":"Flow Music","count":14},{"language":"es","tag":"Flow Music","count":14},{"language":"fr","tag":"Flow Music","count":14},{"language":"id","tag":"Flow Music","count":14},{"language":"ja","tag":"Flow Music","count":14},{"language":"ko","tag":"Flow Music","count":14},{"language":"pt","tag":"Flow Music","count":14},{"language":"ru","tag":"Flow Music","count":14},{"language":"ja","tag":"よくある質問","count":12},{"language":"ko","tag":"자주 묻는 질문","count":12},{"language":"zh-Hans","tag":"集成指南","count":11},{"language":"de","tag":"Integrationen","count":11},{"language":"en","tag":"Integrations","count":11},{"language":"es","tag":"Integraciones","count":11},{"language":"fr","tag":"Intégrations","count":11},{"language":"id","tag":"Integrasi","count":11},{"language":"ja","tag":"統合ガイド","count":11},{"language":"ko","tag":"통합 가이드","count":11},{"language":"pt","tag":"Integrações","count":11},{"language":"ru","tag":"Интеграции","count":11},{"language":"zh-Hans","tag":"文字系列","count":10},{"language":"de","tag":"Textserie","count":10},{"language":"en","tag":"Text Series","count":10},{"language":"es","tag":"Serie de texto","count":10},{"language":"fr","tag":"Série Texte","count":10},{"language":"id","tag":"Seri Teks","count":10},{"language":"ja","tag":"テキストシリーズ","count":10},{"language":"ko","tag":"텍스트 시리즈","count":10},{"language":"pt","tag":"Série de Texto","count":10},{"language":"ru","tag":"Текстовая серия","count":10},{"language":"zh-Hans","tag":"概览","count":7},{"language":"de","tag":"Übersicht","count":7},{"language":"en","tag":"Overview","count":7},{"language":"es","tag":"Visión general","count":7},{"language":"fr","tag":"Aperçu","count":7},{"language":"id","tag":"Ikhtisar","count":7},{"language":"pt","tag":"Visão Geral","count":7},{"language":"ru","tag":"Обзор","count":7}]},"assistantConfig":{},"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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","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":"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":"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":"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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"[id^=\"param-\"] a[href^=\"#param-\"]{display:none}[id^=\"param-\"] button[data-component-part=\"field-name\"]{display:inline-flex;align-items:center;gap:6px;margin:-2px -4px;padding:2px 4px;border-radius:6px;cursor:copy;user-select:text;transition:background-color 150ms ease}[id^=\"param-\"] button[data-component-part=\"field-name\"]:hover{background:rgb(37 99 235 / 8%)}[id^=\"param-\"] button[data-component-part=\"field-name\"]:not([data-copy-state])::after{content:\"\";display:inline-block;flex:0 0 auto;width:16px;height:16px;background-color:rgb(100 116 139);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E\") center / contain no-repeat;transition:background-color 150ms ease}[id^=\"param-\"] button[data-component-part=\"field-name\"]:hover::after{background-color:rgb(37 99 235)}[id^=\"param-\"] button[data-component-part=\"field-name\"][data-copy-state=\"copied\"]::after{content:\"\";display:inline-block;flex:0 0 auto;width:16px;height:16px;background-color:rgb(5 150 105);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E\") center / contain no-repeat}[id^=\"param-\"] button[data-component-part=\"field-name\"][data-copy-state=\"failed\"]::after{content:\"\";display:inline-block;flex:0 0 auto;width:16px;height:16px;background-color:rgb(220 38 38);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E\") center / contain no-repeat}html.dark [id^=\"param-\"] button[data-component-part=\"field-name\"]:not([data-copy-state])::after{background-color:rgb(203 213 225)}"}],"page":{"pagePath":"id/api-reference/images/gpt-image-2.6/generation","slug":"/id/api-reference/images/gpt-image-2.6/generation","pageMetadata":{"title":"GPT-Image-2.6 Pembuatan Gambar","description":"Buat dan edit gambar secara asinkron dengan Flare dan Sunburst, termasuk anotasi, GIF animasi, dan keluaran SVG.","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.6/generation"},"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: \"Buat dan edit gambar secara asinkron dengan Flare dan Sunburst, termasuk anotasi, GIF animasi, dan keluaran SVG.\"\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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Pembuatan gambar, pengeditan, GIF, dan SVG menggunakan `,_jsx(_components.code,{children:`POST /v1/images/generations`}),`. Baca `,_jsx(_components.code,{children:`data[0].task_id`}),` dari respons pengiriman, lalu periksa tugas untuk mendapatkan URL berkas.`]}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`autentikasi`,children:`Autentikasi`}),`\n`,_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsxs(_components.p,{children:[`Gunakan autentikasi Bearer Token. Dapatkan kunci di `,_jsx(_components.a,{href:`https://apimart.ai/keys`,children:`halaman kunci API`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer YOUR_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`memilih-model`,children:`Memilih model`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsx(_components.th,{children:`Penggunaan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gpt-image-2.6-flare`})}),_jsx(_components.td,{children:`Mengutamakan kecepatan untuk iterasi cepat; pilihan bawaan yang direkomendasikan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gpt-image-2.6-sunburst`})}),_jsxs(_components.td,{children:[`Mengutamakan detail dan konsistensi edit berulang, terutama pada kualitas `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Keduanya memiliki tarif token dan konsumsi yang sama pada pengaturan identik. Pilih berdasarkan kebutuhan kecepatan dan detail.`}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-permintaan`,children:`Parameter permintaan`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Nama model: `,_jsx(_components.code,{children:`gpt-image-2.6-flare`}),` atau `,_jsx(_components.code,{children:`gpt-image-2.6-sunburst`}),`.`]})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:_jsx(_components.p,{children:`Instruksi pembuatan atau pengeditan, maksimal 32.000 karakter. Jelaskan subjek, komposisi, serta hal yang ingin diubah atau dipertahankan.`})}),`\n`,_jsx(ParamField,{body:`size`,type:`string`,default:`auto`,id:`param-size`,children:_jsxs(_components.p,{children:[`Gambar statis dan SVG mendukung 15 rasio, ukuran piksel seperti `,_jsx(_components.code,{children:`1600x1200`}),`, atau `,_jsx(_components.code,{children:`auto`}),`. Nilai `,_jsx(_components.code,{children:`auto`}),` eksplisit menyerahkan pilihan ke penyedia. Jika dihilangkan saat mengedit, ukuran dipilih dari rasio gambar pertama dan `,_jsx(_components.code,{children:`resolution`}),`. GIF mengikuti aturan terpisah di bawah.`]})}),`\n`,_jsx(ParamField,{body:`resolution`,type:`string`,default:`1k`,id:`param-resolution`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`1k`}),` / `,_jsx(_components.code,{children:`2k`}),` / `,_jsx(_components.code,{children:`4k`}),`, huruf kecil. Menentukan piksel bersama `,_jsx(_components.code,{children:`size`}),` berupa rasio; diabaikan jika ukuran piksel pasti diberikan.`]})}),`\n`,_jsxs(ParamField,{body:`quality`,type:`string`,default:`auto`,id:`param-quality`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),` / `,_jsx(_components.code,{children:`xhigh`}),` / `,_jsx(_components.code,{children:`max`}),` / `,_jsx(_components.code,{children:`auto`}),`. Nilai lain mengembalikan HTTP 400 saat pengiriman. Jika parameter dihilangkan atau bernilai `,_jsx(_components.code,{children:`auto`}),`, model memilih tingkat kualitas secara otomatis. Tingkat yang dipilih dapat berubah dan tidak selalu `,_jsx(_components.code,{children:`low`}),`. Tentukan tingkat secara eksplisit jika memerlukan pengaturan tetap.`]}),_jsxs(_components.p,{children:[`Jika parameter dihilangkan atau bernilai `,_jsx(_components.code,{children:`auto`}),`, dana dicadangkan berdasarkan tingkat `,_jsx(_components.code,{children:`max`}),`, lalu biaya akhir dihitung sesuai tingkat kualitas yang benar-benar dipilih.`]})]}),`\n`,_jsx(ParamField,{body:`n`,type:`integer`,default:`1`,id:`param-n`,children:_jsxs(_components.p,{children:[`Bilangan bulat `,_jsx(_components.code,{children:`1`}),`–`,_jsx(_components.code,{children:`4`}),`; untuk GIF, jumlah animasi. SVG harus `,_jsx(_components.code,{children:`1`}),`. Nilai eksplisit `,_jsx(_components.code,{children:`0`}),`, negatif, atau lebih dari `,_jsx(_components.code,{children:`4`}),` mengembalikan HTTP 400, bukan diganti dengan nilai bawaan.`]})}),`\n`,_jsx(ParamField,{body:`output_format`,type:`string`,default:`png`,id:`param-output-format`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`png`}),` / `,_jsx(_components.code,{children:`jpeg`}),` / `,_jsx(_components.code,{children:`webp`}),` / `,_jsx(_components.code,{children:`gif`}),` / `,_jsx(_components.code,{children:`svg`}),`. GIF dan SVG hanya mendukung pembuatan dari teks. Nilai lain mengembalikan HTTP 400 saat pengiriman.`]})}),`\n`,_jsx(ParamField,{body:`output_compression`,type:`integer`,id:`param-output-compression`,children:_jsxs(_components.p,{children:[`Bilangan bulat `,_jsx(_components.code,{children:`0`}),`–`,_jsx(_components.code,{children:`100`}),`, hanya untuk `,_jsx(_components.code,{children:`jpeg`}),` / `,_jsx(_components.code,{children:`webp`}),`. Nilai di luar rentang atau penggunaan dengan `,_jsx(_components.code,{children:`png`}),` / `,_jsx(_components.code,{children:`gif`}),` / `,_jsx(_components.code,{children:`svg`}),` mengembalikan HTTP 400 saat pengiriman.`]})}),`\n`,_jsx(ParamField,{body:`background`,type:`string`,id:`param-background`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`transparent`}),` / `,_jsx(_components.code,{children:`opaque`}),` / `,_jsx(_components.code,{children:`auto`}),`; jika dihilangkan, memakai nilai bawaan penyedia. `,_jsx(_components.code,{children:`transparent`}),` eksplisit hanya boleh dengan `,_jsx(_components.code,{children:`png`}),` / `,_jsx(_components.code,{children:`webp`}),`. SVG memiliki latar transparan secara bawaan; hilangkan parameter ini untuk SVG.`]})}),`\n`,_jsx(ParamField,{body:`moderation`,type:`string`,default:`low`,id:`param-moderation`,children:_jsxs(_components.p,{children:[`Tingkat moderasi konten: `,_jsx(_components.code,{children:`auto`}),` / `,_jsx(_components.code,{children:`low`}),`. Nilai lain mengembalikan HTTP 400 saat pengiriman.`]})}),`\n`,_jsx(ParamField,{body:`image_urls`,type:`string[]`,id:`param-image-urls`,children:_jsxs(_components.p,{children:[`Maksimal 16 gambar referensi; menyertakannya mengaktifkan mode edit. Gunakan URL gambar HTTP(S) yang dapat diakses publik. Unggah berkas lokal melalui `,_jsx(_components.a,{href:`/id/api-reference/uploads/images`,children:`API unggah gambar`}),`, lalu gunakan `,_jsx(_components.code,{children:`url`}),` yang dikembalikan.`]})}),`\n`,_jsx(ParamField,{body:`mask_url`,type:`string`,id:`param-mask-url`,children:_jsxs(_components.p,{children:[`Masker edit lokal; memerlukan `,_jsx(_components.code,{children:`image_urls`}),`. Gunakan PNG dengan kanal alfa dan ukuran sama dengan gambar pertama; area transparan sepenuhnya menandai bagian yang diedit. Mendukung URL gambar atau PNG Data URL. Tidak dapat digabungkan dengan anotasi; piksel di luar masker tidak dijamin tetap identik.`]})}),`\n`,_jsx(ParamField,{body:`complexity`,type:`string`,id:`param-complexity`,children:_jsxs(_components.p,{children:[`Intensitas perencanaan: `,_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),`, bawaan penyedia `,_jsx(_components.code,{children:`high`}),`, terpisah dari `,_jsx(_components.code,{children:`quality`}),`. Gunakan `,_jsx(_components.code,{children:`low`}),` untuk perubahan terarah dan `,_jsx(_components.code,{children:`high`}),` untuk teks padat, tata letak atau hubungan objek rumit; dapat memperlambat proses atau menambah perubahan. Tidak ada biaya terpisah; hanya didukung 2.6.`]})}),`\n`,_jsx(ParamField,{body:`safety_identifier`,type:`string`,id:`param-safety-identifier`,children:_jsx(_components.p,{children:`Identitas pengguna akhir yang stabil dan opsional, maksimal 128 karakter; disarankan hash nama pengguna atau email. Secara bawaan APIMart tidak meneruskannya ke penyedia, kecuali kanal mengizinkan. Boleh dihilangkan.`})}),`\n`,_jsx(Heading,{level:`2`,id:`ukuran-gambar-statis-dan-svg`,children:`Ukuran gambar statis dan SVG`}),`\n`,_jsx(_components.p,{children:`Ukuran piksel pasti harus kelipatan 16 pada kedua sumbu, setiap sisi maksimal 3840, rasio sisi panjang terhadap pendek maksimal 3:1, dan total 655.360–8.294.400 piksel. Resolusi di atas 2560×1440 bersifat eksperimental. Tabel sama dengan GPT-Image-2.5; jangan terapkan batas gambar statis ini langsung pada tiap frame GIF.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`size`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`1k`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`2k`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`4k`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2880×2880`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1360`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3520×2336`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1360×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2336×3520`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×768`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3312×2480`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`768×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2480×3312`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1280×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2560×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3216×2576`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:5`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1280`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×2560`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2576×3216`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`16:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×864`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1152`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×2160`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:16`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`864×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1152×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2160×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2688×1344`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1920`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1344×2688`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1920×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`21:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2016×864`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2688×1152`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1648`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:21`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`864×2016`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1152×2688`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1648×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×512`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3072×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1280`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`512×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×3072`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1280×3840`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`pengeditan-dan-masker`,children:`Pengeditan dan masker`}),`\n`,_jsxs(_components.p,{children:[`Permintaan ini mengedit area pada gambar pertama. Hilangkan `,_jsx(_components.code,{children:`mask_url`}),` untuk mengedit seluruh gambar sesuai prompt; hilangkan `,_jsx(_components.code,{children:`size`}),` untuk memilih ukuran dari rasio gambar pertama dan `,_jsx(_components.code,{children:`resolution`}),`. Ganti URL contoh dengan berkas yang dapat diakses.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2.6-sunburst\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Replace the fully transparent masked area with a gold ribbon. Preserve the product and the rest of the background.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/product.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mask_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/product-mask.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2k\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"high\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"complexity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"low\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`edit-dengan-panduan-anotasi`,children:`Edit dengan panduan anotasi`}),`\n`,_jsxs(_components.p,{children:[`Berikan `,_jsx(_components.code,{children:`markup_url`}),` sebagai URL HTTPS atau Base64 Data URL. Alias `,_jsx(_components.code,{children:`markup`}),` menerima string atau objek `,_jsx(_components.code,{children:`{\"image_url\":\"...\"}`}),`. `,_jsx(_components.code,{children:`file_id`}),` tidak didukung.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Sertakan `,_jsx(_components.code,{children:`image_urls`}),`. Anotasi diterapkan pada gambar pertama; gambar lain menjadi referensi.`]}),`\n`,_jsx(_components.li,{children:`Gunakan lapisan PNG transparan terpisah dengan ukuran persis sama dengan gambar pertama. Jangan gabungkan anotasi ke gambar asli.`}),`\n`,_jsx(_components.li,{children:`Gambar pertama dan lapisan masing-masing maksimal 16.777.216 piksel; berkas lapisan maksimal 50 MB.`}),`\n`,_jsxs(_components.li,{children:[`Jangan gabungkan dengan `,_jsx(_components.code,{children:`mask_url`}),`. Lapisan tidak memakai token gambar, tetapi permintaan dapat memakai token teks tambahan.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2.6-flare\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Recolor the striped vase inside the red circle to solid cobalt blue ceramic. Keep everything else unchanged. Remove the red circle.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/kitchen.webp\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"markup_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/vase-circle-overlay.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"medium\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`gif-animasi`,children:`GIF animasi`}),`\n`,_jsxs(_components.p,{children:[`Tetapkan `,_jsx(_components.code,{children:`output_format: \"gif\"`}),`. Hanya pembuatan dari teks: jangan sertakan `,_jsx(_components.code,{children:`image_urls`}),`, `,_jsx(_components.code,{children:`mask_url`}),`, `,_jsx(_components.code,{children:`markup_url`}),`, `,_jsx(_components.code,{children:`markup`}),`, atau `,_jsx(_components.code,{children:`output_compression`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Bawaan`}),_jsx(_components.th,{children:`Keterangan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frame_count`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9`})}),_jsxs(_components.td,{children:[`Bilangan bulat `,_jsx(_components.strong,{children:`2–16`}),`. Batas APIMart saat ini 16 frame, bukan 64 seperti panduan penyedia.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frame_duration_ms`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`200`})}),_jsx(_components.td,{children:`Durasi tiap frame dalam milidetik bulat, minimal 20, dibulatkan ke kelipatan 10 ms.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`size`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`auto`})}),_jsxs(_components.td,{children:[`Ukuran piksel `,_jsx(_components.strong,{children:`tiap frame`}),`, kedua sisinya kelipatan 16. Jika dihilangkan atau `,_jsx(_components.code,{children:`auto`}),`, saat ini memakai 512×512. Nama rasio seperti `,_jsx(_components.code,{children:`1:1`}),` tidak didukung.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Penyedia menyusun frame pada satu lembar: 4×2 untuk 2–8 frame, 3×3 untuk 9, 4×3 untuk 10–12, dan 4×4 untuk 13–16. Baris dan kolom dapat ditukar agar mendekati persegi. Seluruh lembar harus memiliki sisi maksimal 3840, total maksimal 8.294.400 piksel, dan rasio maksimal 3:1; jika tidak, pengiriman mengembalikan 400.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`512x512`}),` mendukung semua 2–16 frame; `,_jsx(_components.code,{children:`768x768`}),` maksimal 12. Bahkan 2 frame `,_jsx(_components.code,{children:`1024x1024`}),` melebihi batas sisi lembar. Setiap animasi ditagihkan berdasarkan seluruh lembar; `,_jsx(_components.code,{children:`n > 1`}),` membuat dan menagihkan beberapa animasi.`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2.6-sunburst\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A paper lantern swaying gently in the night breeze, seamless loop\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gif\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"frame_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"frame_duration_ms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"low\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`keluaran-svg`,children:`Keluaran SVG`}),`\n`,_jsxs(ParamField,{body:`svg`,type:`object`,id:`param-svg`,children:[_jsxs(_components.p,{children:[`Tetapkan `,_jsx(_components.code,{children:`output_format: \"svg\"`}),`. Model gambar membuat referensi terlebih dahulu, lalu model teks pada `,_jsx(_components.code,{children:`svg.model`}),` menulis SVG.`]}),_jsxs(Expandable,{title:`svg`,children:[_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model-1`,children:_jsxs(_components.p,{children:[`Wajib. Pilih model dengan tarif token teks di platform, misalnya `,_jsx(_components.code,{children:`gpt-5.4-mini`}),` atau `,_jsx(_components.code,{children:`gpt-5.6-sol`}),`.`]})}),_jsx(ParamField,{body:`reasoning`,type:`object`,id:`param-reasoning`,children:_jsx(Expandable,{title:`reasoning`,children:_jsx(ParamField,{body:`effort`,type:`string`,id:`param-effort`,children:_jsxs(_components.p,{children:[`Opsional: `,_jsx(_components.code,{children:`none`}),` / `,_jsx(_components.code,{children:`minimal`}),` / `,_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),` / `,_jsx(_components.code,{children:`xhigh`}),` / `,_jsx(_components.code,{children:`max`}),`. Nilai yang didukung bergantung pada model teks. Disarankan menghilangkan parameter ini untuk memakai nilai bawaan model.`]})})})})]})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Hanya pembuatan dari teks dengan `,_jsx(_components.code,{children:`n`}),` bernilai 1. Jangan berikan gambar referensi, masker, anotasi, atau `,_jsx(_components.code,{children:`output_compression`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`quality`}),` dan `,_jsx(_components.code,{children:`complexity`}),` berlaku pada gambar referensi perantara. Hasilnya `,_jsx(_components.code,{children:`.svg`}),` statis tanpa skrip, sumber eksternal, atau bitmap tertanam.`]}),`\n`,_jsxs(_components.li,{children:[`Penggunaan teks `,_jsx(_components.code,{children:`svg.model`}),` dikenakan biaya selain pembuatan gambar. Akun dengan kontrak harga tetap per gambar belum mendukung SVG; pengiriman mengembalikan 400.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2.6-flare\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A minimalist bakery logo with a wheat stalk, flat colors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"svg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"svg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-5.4-mini\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1:1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"low\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"n\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`memeriksa-hasil-tugas`,children:`Memeriksa hasil tugas`}),`\n`,_jsxs(_components.p,{children:[`Periksa `,_jsx(_components.a,{href:`/id/api-reference/tasks/status`,children:`API status tugas`}),` setiap 2–5 detik hingga `,_jsx(_components.code,{children:`completed`}),` atau `,_jsx(_components.code,{children:`failed`}),`. Jangan kirim ulang permintaan pembuatan saat menunggu.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.apimart.ai/v1/tasks/task_01KXXXXXXXXXXXXXXX`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Setelah selesai, baca URL dari `,_jsx(_components.code,{children:`data.result.images[].url[]`}),` dan segera unduh berkas. Contoh hanya menampilkan kolom utama; jika `,_jsx(_components.code,{children:`failed`}),`, periksa `,_jsx(_components.code,{children:`data.error.message`}),`. Gunakan `,_jsx(_components.code,{children:`POST /v1/tasks/batch`}),` untuk memeriksa beberapa tugas.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_01KXXXXXXXXXXXXXXX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"progress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://upload.apimart.ai/f/image/example.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`penggunaan-token-svg-dan-contoh-respons`,children:`Penggunaan token SVG dan contoh respons`}),`\n`,_jsxs(_components.p,{children:[`Pada respons pemeriksaan tugas, `,_jsx(_components.code,{children:`data.usage.svg_usage`}),` melaporkan penggunaan model teks yang menulis SVG. Kolom token lain di `,_jsx(_components.code,{children:`data.usage`}),` merupakan penggunaan model gambar yang membuat referensi. Hitung setiap bagian sesuai aturan penagihan model terkait.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Kolom`}),_jsx(_components.th,{children:`Tipe`}),_jsx(_components.th,{children:`Keterangan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Model teks yang benar-benar digunakan untuk menulis SVG.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input_tokens`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Token masukan model teks.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_tokens`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Token keluaran model teks, termasuk token penalaran.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reasoning_tokens`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Bagian token keluaran yang digunakan untuk penalaran; jangan tambahkan lagi ke `,_jsx(_components.code,{children:`output_tokens`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Contoh berikut menampilkan kolom utama respons tugas SVG. Nilai token menggambarkan hubungan antarkolom dan bukan konsumsi tetap.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`28`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_01KXXXXXXXXXXXXXXX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"progress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://upload.apimart.ai/f/image/example.svg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`40`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1800`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1840`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"svg_usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-5.4-mini\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`800`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reasoning_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`kesalahan-parameter-umum`,children:`Kesalahan parameter umum`}),`\n`,_jsx(_components.p,{children:`Kesalahan validasi parameter berikut mengembalikan HTTP 400 secara sinkron saat pengiriman. Tugas tidak dibuat dan tidak ada biaya yang dikenakan. Perbaiki parameter sebelum mengirim ulang.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Kesalahan`}),_jsx(_components.th,{children:`Solusi`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quality \"ultra\" is not supported by gpt-image-2.6-flare`})}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),` / `,_jsx(_components.code,{children:`xhigh`}),` / `,_jsx(_components.code,{children:`max`}),` / `,_jsx(_components.code,{children:`auto`}),`; nilai lain seperti `,_jsx(_components.code,{children:`ultra`}),` tidak didukung.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:\"`n` must be an integer from 1 to 4\"})}),_jsxs(_components.td,{children:[`Tetapkan `,_jsx(_components.code,{children:`n`}),` sebagai bilangan bulat 1–4; `,_jsx(_components.code,{children:`0`}),`, nilai negatif, dan nilai di atas 4 tidak valid.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_compression must be an integer from 0 to 100`})}),_jsxs(_components.td,{children:[`Tetapkan `,_jsx(_components.code,{children:`output_compression`}),` sebagai bilangan bulat 0–100.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_compression is only supported with output_format jpeg or webp`})}),_jsx(_components.td,{children:`Gunakan kompresi hanya untuk JPEG / WebP; hapus parameter untuk PNG / GIF / SVG.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`moderation \"xxx\" is not supported`})}),_jsxs(_components.td,{children:[`Tetapkan `,_jsx(_components.code,{children:`moderation`}),` ke `,_jsx(_components.code,{children:`low`}),` atau `,_jsx(_components.code,{children:`auto`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`markup requires image_urls`})}),_jsxs(_components.td,{children:[`Sertakan `,_jsx(_components.code,{children:`image_urls`}),` dan sesuaikan lapisan dengan gambar pertama.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`markup cannot be combined with mask`})}),_jsx(_components.td,{children:`Pilih anotasi atau masker, jangan keduanya.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frame_count must be an integer from 2 to 16`})}),_jsxs(_components.td,{children:[`Tetapkan `,_jsx(_components.code,{children:`frame_count`}),` sebagai bilangan bulat dari 2 sampai 16.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`no supported sheet fits N GIF frames at size WxH`})}),_jsx(_components.td,{children:`Kurangi ukuran atau jumlah frame; jangan gunakan nama rasio.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_format=svg requires svg.model`})}),_jsxs(_components.td,{children:[`Sertakan objek `,_jsx(_components.code,{children:`svg`}),` dengan model teks yang didukung.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_format=svg requires n=1`})}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`n: 1`}),` untuk SVG.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`background=transparent requires an alpha-capable output_format`})}),_jsx(_components.td,{children:`Transparansi eksplisit memerlukan PNG / WebP; hilangkan parameter untuk SVG.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-yang-tidak-didukung-dan-penagihan`,children:`Parameter yang tidak didukung dan penagihan`}),`\n`,_jsxs(_components.p,{children:[`Jangan kirim `,_jsx(_components.code,{children:`stream`}),`, `,_jsx(_components.code,{children:`partial_images`}),`, `,_jsx(_components.code,{children:`input_fidelity`}),`, `,_jsx(_components.code,{children:`prompt_rewriter`}),`, atau `,_jsx(_components.code,{children:`response_format`}),`. Endpoint ini mengembalikan tugas asinkron dan URL CDN, bukan gambar parsial streaming atau respons gambar Base64. `,_jsx(_components.code,{children:`frame_count`}),` / `,_jsx(_components.code,{children:`frame_duration_ms`}),` hanya untuk GIF; konfigurasi `,_jsx(_components.code,{children:`svg`}),` hanya untuk SVG.`]}),`\n`,_jsxs(_components.p,{children:[`Flare dan Sunburst memakai tarif yang sama. GPT-Image-2.6 mengonsumsi lebih banyak token pada `,_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` dibanding 2.5; jangan memakai estimasi lama tanpa penyesuaian. Tarif terbaru tersedia di `,_jsx(_components.a,{href:`https://apimart.ai/pricing`,children:`halaman harga APIMart`}),` atau `,_jsx(_components.code,{children:`/api/pricing`}),`. Halaman ini tidak mencantumkan harga tetap.`]}),`\n`,_jsxs(_components.p,{children:[`Lihat `,_jsx(_components.a,{href:`https://developers.openai.com/api/docs/guides/image-generation`,children:`panduan pembuatan gambar OpenAI`}),` untuk fitur penyedia. Untuk APIMart, gunakan endpoint, respons asinkron, dan batas pada halaman ini.`]})]})}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":{"title":"GPT-Image-2.6 Pembuatan Gambar","description":"Buat dan edit gambar secara asinkron dengan Flare dan Sunburst, termasuk anotasi, GIF animasi, dan keluaran SVG.","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.6/generation"}}},"mdxSourceWithNoJs":{"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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Pembuatan gambar, pengeditan, GIF, dan SVG menggunakan `,_jsx(_components.code,{children:`POST /v1/images/generations`}),`. Baca `,_jsx(_components.code,{children:`data[0].task_id`}),` dari respons pengiriman, lalu periksa tugas untuk mendapatkan URL berkas.`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.apimart.ai/v1/images/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"gpt-image-2.6-flare\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A cozy reading nook by a rainy window, warm lamp light\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"size\": \"1:1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"1k\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quality\": \"medium\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"n\": 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`16`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.apimart.ai/v1/images/generations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer \u003ctoken>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2.6-flare\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A cozy reading nook by a rainy window, warm lamp light\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1:1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1k\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"medium\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"n\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`18`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.apimart.ai/v1/images/generations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer \u003ctoken>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gpt-image-2.6-flare\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"A cozy reading nook by a rainy window, warm lamp light\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1:1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1k\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"medium\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"n\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`task_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submitted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"task_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_01KXXXXXXXXXXXXXXX\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`autentikasi`,children:`Autentikasi`}),`\n`,_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsxs(_components.p,{children:[`Gunakan autentikasi Bearer Token. Dapatkan kunci di `,_jsx(_components.a,{href:`https://apimart.ai/keys`,children:`halaman kunci API`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer YOUR_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`memilih-model`,children:`Memilih model`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsx(_components.th,{children:`Penggunaan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gpt-image-2.6-flare`})}),_jsx(_components.td,{children:`Mengutamakan kecepatan untuk iterasi cepat; pilihan bawaan yang direkomendasikan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gpt-image-2.6-sunburst`})}),_jsxs(_components.td,{children:[`Mengutamakan detail dan konsistensi edit berulang, terutama pada kualitas `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Keduanya memiliki tarif token dan konsumsi yang sama pada pengaturan identik. Pilih berdasarkan kebutuhan kecepatan dan detail.`}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-permintaan`,children:`Parameter permintaan`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`Nama model: `,_jsx(_components.code,{children:`gpt-image-2.6-flare`}),` atau `,_jsx(_components.code,{children:`gpt-image-2.6-sunburst`}),`.`]})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:_jsx(_components.p,{children:`Instruksi pembuatan atau pengeditan, maksimal 32.000 karakter. Jelaskan subjek, komposisi, serta hal yang ingin diubah atau dipertahankan.`})}),`\n`,_jsx(ParamField,{body:`size`,type:`string`,default:`auto`,id:`param-size`,children:_jsxs(_components.p,{children:[`Gambar statis dan SVG mendukung 15 rasio, ukuran piksel seperti `,_jsx(_components.code,{children:`1600x1200`}),`, atau `,_jsx(_components.code,{children:`auto`}),`. Nilai `,_jsx(_components.code,{children:`auto`}),` eksplisit menyerahkan pilihan ke penyedia. Jika dihilangkan saat mengedit, ukuran dipilih dari rasio gambar pertama dan `,_jsx(_components.code,{children:`resolution`}),`. GIF mengikuti aturan terpisah di bawah.`]})}),`\n`,_jsx(ParamField,{body:`resolution`,type:`string`,default:`1k`,id:`param-resolution`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`1k`}),` / `,_jsx(_components.code,{children:`2k`}),` / `,_jsx(_components.code,{children:`4k`}),`, huruf kecil. Menentukan piksel bersama `,_jsx(_components.code,{children:`size`}),` berupa rasio; diabaikan jika ukuran piksel pasti diberikan.`]})}),`\n`,_jsxs(ParamField,{body:`quality`,type:`string`,default:`auto`,id:`param-quality`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),` / `,_jsx(_components.code,{children:`xhigh`}),` / `,_jsx(_components.code,{children:`max`}),` / `,_jsx(_components.code,{children:`auto`}),`. Nilai lain mengembalikan HTTP 400 saat pengiriman. Jika parameter dihilangkan atau bernilai `,_jsx(_components.code,{children:`auto`}),`, model memilih tingkat kualitas secara otomatis. Tingkat yang dipilih dapat berubah dan tidak selalu `,_jsx(_components.code,{children:`low`}),`. Tentukan tingkat secara eksplisit jika memerlukan pengaturan tetap.`]}),_jsxs(_components.p,{children:[`Jika parameter dihilangkan atau bernilai `,_jsx(_components.code,{children:`auto`}),`, dana dicadangkan berdasarkan tingkat `,_jsx(_components.code,{children:`max`}),`, lalu biaya akhir dihitung sesuai tingkat kualitas yang benar-benar dipilih.`]})]}),`\n`,_jsx(ParamField,{body:`n`,type:`integer`,default:`1`,id:`param-n`,children:_jsxs(_components.p,{children:[`Bilangan bulat `,_jsx(_components.code,{children:`1`}),`–`,_jsx(_components.code,{children:`4`}),`; untuk GIF, jumlah animasi. SVG harus `,_jsx(_components.code,{children:`1`}),`. Nilai eksplisit `,_jsx(_components.code,{children:`0`}),`, negatif, atau lebih dari `,_jsx(_components.code,{children:`4`}),` mengembalikan HTTP 400, bukan diganti dengan nilai bawaan.`]})}),`\n`,_jsx(ParamField,{body:`output_format`,type:`string`,default:`png`,id:`param-output-format`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`png`}),` / `,_jsx(_components.code,{children:`jpeg`}),` / `,_jsx(_components.code,{children:`webp`}),` / `,_jsx(_components.code,{children:`gif`}),` / `,_jsx(_components.code,{children:`svg`}),`. GIF dan SVG hanya mendukung pembuatan dari teks. Nilai lain mengembalikan HTTP 400 saat pengiriman.`]})}),`\n`,_jsx(ParamField,{body:`output_compression`,type:`integer`,id:`param-output-compression`,children:_jsxs(_components.p,{children:[`Bilangan bulat `,_jsx(_components.code,{children:`0`}),`–`,_jsx(_components.code,{children:`100`}),`, hanya untuk `,_jsx(_components.code,{children:`jpeg`}),` / `,_jsx(_components.code,{children:`webp`}),`. Nilai di luar rentang atau penggunaan dengan `,_jsx(_components.code,{children:`png`}),` / `,_jsx(_components.code,{children:`gif`}),` / `,_jsx(_components.code,{children:`svg`}),` mengembalikan HTTP 400 saat pengiriman.`]})}),`\n`,_jsx(ParamField,{body:`background`,type:`string`,id:`param-background`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`transparent`}),` / `,_jsx(_components.code,{children:`opaque`}),` / `,_jsx(_components.code,{children:`auto`}),`; jika dihilangkan, memakai nilai bawaan penyedia. `,_jsx(_components.code,{children:`transparent`}),` eksplisit hanya boleh dengan `,_jsx(_components.code,{children:`png`}),` / `,_jsx(_components.code,{children:`webp`}),`. SVG memiliki latar transparan secara bawaan; hilangkan parameter ini untuk SVG.`]})}),`\n`,_jsx(ParamField,{body:`moderation`,type:`string`,default:`low`,id:`param-moderation`,children:_jsxs(_components.p,{children:[`Tingkat moderasi konten: `,_jsx(_components.code,{children:`auto`}),` / `,_jsx(_components.code,{children:`low`}),`. Nilai lain mengembalikan HTTP 400 saat pengiriman.`]})}),`\n`,_jsx(ParamField,{body:`image_urls`,type:`string[]`,id:`param-image-urls`,children:_jsxs(_components.p,{children:[`Maksimal 16 gambar referensi; menyertakannya mengaktifkan mode edit. Gunakan URL gambar HTTP(S) yang dapat diakses publik. Unggah berkas lokal melalui `,_jsx(_components.a,{href:`/id/api-reference/uploads/images`,children:`API unggah gambar`}),`, lalu gunakan `,_jsx(_components.code,{children:`url`}),` yang dikembalikan.`]})}),`\n`,_jsx(ParamField,{body:`mask_url`,type:`string`,id:`param-mask-url`,children:_jsxs(_components.p,{children:[`Masker edit lokal; memerlukan `,_jsx(_components.code,{children:`image_urls`}),`. Gunakan PNG dengan kanal alfa dan ukuran sama dengan gambar pertama; area transparan sepenuhnya menandai bagian yang diedit. Mendukung URL gambar atau PNG Data URL. Tidak dapat digabungkan dengan anotasi; piksel di luar masker tidak dijamin tetap identik.`]})}),`\n`,_jsx(ParamField,{body:`complexity`,type:`string`,id:`param-complexity`,children:_jsxs(_components.p,{children:[`Intensitas perencanaan: `,_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),`, bawaan penyedia `,_jsx(_components.code,{children:`high`}),`, terpisah dari `,_jsx(_components.code,{children:`quality`}),`. Gunakan `,_jsx(_components.code,{children:`low`}),` untuk perubahan terarah dan `,_jsx(_components.code,{children:`high`}),` untuk teks padat, tata letak atau hubungan objek rumit; dapat memperlambat proses atau menambah perubahan. Tidak ada biaya terpisah; hanya didukung 2.6.`]})}),`\n`,_jsx(ParamField,{body:`safety_identifier`,type:`string`,id:`param-safety-identifier`,children:_jsx(_components.p,{children:`Identitas pengguna akhir yang stabil dan opsional, maksimal 128 karakter; disarankan hash nama pengguna atau email. Secara bawaan APIMart tidak meneruskannya ke penyedia, kecuali kanal mengizinkan. Boleh dihilangkan.`})}),`\n`,_jsx(Heading,{level:`2`,id:`ukuran-gambar-statis-dan-svg`,children:`Ukuran gambar statis dan SVG`}),`\n`,_jsx(_components.p,{children:`Ukuran piksel pasti harus kelipatan 16 pada kedua sumbu, setiap sisi maksimal 3840, rasio sisi panjang terhadap pendek maksimal 3:1, dan total 655.360–8.294.400 piksel. Resolusi di atas 2560×1440 bersifat eksperimental. Tabel sama dengan GPT-Image-2.5; jangan terapkan batas gambar statis ini langsung pada tiap frame GIF.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`size`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`1k`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`2k`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`4k`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2880×2880`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1360`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3520×2336`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1360×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2336×3520`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×768`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3312×2480`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`768×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2480×3312`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5:4`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1280×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2560×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3216×2576`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4:5`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×1280`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×2560`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2576×3216`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`16:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×864`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1152`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×2160`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:16`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`864×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1152×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2160×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2048×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2688×1344`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1920`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:2`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×2048`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1344×2688`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1920×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`21:9`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2016×864`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2688×1152`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1648`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9:21`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`864×2016`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1152×2688`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1648×3840`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3:1`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1536×512`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3072×1024`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3840×1280`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1:3`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`512×1536`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1024×3072`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1280×3840`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`pengeditan-dan-masker`,children:`Pengeditan dan masker`}),`\n`,_jsxs(_components.p,{children:[`Permintaan ini mengedit area pada gambar pertama. Hilangkan `,_jsx(_components.code,{children:`mask_url`}),` untuk mengedit seluruh gambar sesuai prompt; hilangkan `,_jsx(_components.code,{children:`size`}),` untuk memilih ukuran dari rasio gambar pertama dan `,_jsx(_components.code,{children:`resolution`}),`. Ganti URL contoh dengan berkas yang dapat diakses.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2.6-sunburst\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Replace the fully transparent masked area with a gold ribbon. Preserve the product and the rest of the background.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/product.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mask_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/product-mask.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resolution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2k\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"high\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"complexity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"low\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`edit-dengan-panduan-anotasi`,children:`Edit dengan panduan anotasi`}),`\n`,_jsxs(_components.p,{children:[`Berikan `,_jsx(_components.code,{children:`markup_url`}),` sebagai URL HTTPS atau Base64 Data URL. Alias `,_jsx(_components.code,{children:`markup`}),` menerima string atau objek `,_jsx(_components.code,{children:`{\"image_url\":\"...\"}`}),`. `,_jsx(_components.code,{children:`file_id`}),` tidak didukung.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Sertakan `,_jsx(_components.code,{children:`image_urls`}),`. Anotasi diterapkan pada gambar pertama; gambar lain menjadi referensi.`]}),`\n`,_jsx(_components.li,{children:`Gunakan lapisan PNG transparan terpisah dengan ukuran persis sama dengan gambar pertama. Jangan gabungkan anotasi ke gambar asli.`}),`\n`,_jsx(_components.li,{children:`Gambar pertama dan lapisan masing-masing maksimal 16.777.216 piksel; berkas lapisan maksimal 50 MB.`}),`\n`,_jsxs(_components.li,{children:[`Jangan gabungkan dengan `,_jsx(_components.code,{children:`mask_url`}),`. Lapisan tidak memakai token gambar, tetapi permintaan dapat memakai token teks tambahan.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2.6-flare\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Recolor the striped vase inside the red circle to solid cobalt blue ceramic. Keep everything else unchanged. Remove the red circle.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_urls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/kitchen.webp\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"markup_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/vase-circle-overlay.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"medium\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`gif-animasi`,children:`GIF animasi`}),`\n`,_jsxs(_components.p,{children:[`Tetapkan `,_jsx(_components.code,{children:`output_format: \"gif\"`}),`. Hanya pembuatan dari teks: jangan sertakan `,_jsx(_components.code,{children:`image_urls`}),`, `,_jsx(_components.code,{children:`mask_url`}),`, `,_jsx(_components.code,{children:`markup_url`}),`, `,_jsx(_components.code,{children:`markup`}),`, atau `,_jsx(_components.code,{children:`output_compression`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Bawaan`}),_jsx(_components.th,{children:`Keterangan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frame_count`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`9`})}),_jsxs(_components.td,{children:[`Bilangan bulat `,_jsx(_components.strong,{children:`2–16`}),`. Batas APIMart saat ini 16 frame, bukan 64 seperti panduan penyedia.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frame_duration_ms`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`200`})}),_jsx(_components.td,{children:`Durasi tiap frame dalam milidetik bulat, minimal 20, dibulatkan ke kelipatan 10 ms.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`size`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`auto`})}),_jsxs(_components.td,{children:[`Ukuran piksel `,_jsx(_components.strong,{children:`tiap frame`}),`, kedua sisinya kelipatan 16. Jika dihilangkan atau `,_jsx(_components.code,{children:`auto`}),`, saat ini memakai 512×512. Nama rasio seperti `,_jsx(_components.code,{children:`1:1`}),` tidak didukung.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Penyedia menyusun frame pada satu lembar: 4×2 untuk 2–8 frame, 3×3 untuk 9, 4×3 untuk 10–12, dan 4×4 untuk 13–16. Baris dan kolom dapat ditukar agar mendekati persegi. Seluruh lembar harus memiliki sisi maksimal 3840, total maksimal 8.294.400 piksel, dan rasio maksimal 3:1; jika tidak, pengiriman mengembalikan 400.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`512x512`}),` mendukung semua 2–16 frame; `,_jsx(_components.code,{children:`768x768`}),` maksimal 12. Bahkan 2 frame `,_jsx(_components.code,{children:`1024x1024`}),` melebihi batas sisi lembar. Setiap animasi ditagihkan berdasarkan seluruh lembar; `,_jsx(_components.code,{children:`n > 1`}),` membuat dan menagihkan beberapa animasi.`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2.6-sunburst\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A paper lantern swaying gently in the night breeze, seamless loop\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gif\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"frame_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"frame_duration_ms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"low\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`keluaran-svg`,children:`Keluaran SVG`}),`\n`,_jsxs(ParamField,{body:`svg`,type:`object`,id:`param-svg`,children:[_jsxs(_components.p,{children:[`Tetapkan `,_jsx(_components.code,{children:`output_format: \"svg\"`}),`. Model gambar membuat referensi terlebih dahulu, lalu model teks pada `,_jsx(_components.code,{children:`svg.model`}),` menulis SVG.`]}),_jsxs(Expandable,{title:`svg`,children:[_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model-1`,children:_jsxs(_components.p,{children:[`Wajib. Pilih model dengan tarif token teks di platform, misalnya `,_jsx(_components.code,{children:`gpt-5.4-mini`}),` atau `,_jsx(_components.code,{children:`gpt-5.6-sol`}),`.`]})}),_jsx(ParamField,{body:`reasoning`,type:`object`,id:`param-reasoning`,children:_jsx(Expandable,{title:`reasoning`,children:_jsx(ParamField,{body:`effort`,type:`string`,id:`param-effort`,children:_jsxs(_components.p,{children:[`Opsional: `,_jsx(_components.code,{children:`none`}),` / `,_jsx(_components.code,{children:`minimal`}),` / `,_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),` / `,_jsx(_components.code,{children:`xhigh`}),` / `,_jsx(_components.code,{children:`max`}),`. Nilai yang didukung bergantung pada model teks. Disarankan menghilangkan parameter ini untuk memakai nilai bawaan model.`]})})})})]})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Hanya pembuatan dari teks dengan `,_jsx(_components.code,{children:`n`}),` bernilai 1. Jangan berikan gambar referensi, masker, anotasi, atau `,_jsx(_components.code,{children:`output_compression`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`quality`}),` dan `,_jsx(_components.code,{children:`complexity`}),` berlaku pada gambar referensi perantara. Hasilnya `,_jsx(_components.code,{children:`.svg`}),` statis tanpa skrip, sumber eksternal, atau bitmap tertanam.`]}),`\n`,_jsxs(_components.li,{children:[`Penggunaan teks `,_jsx(_components.code,{children:`svg.model`}),` dikenakan biaya selain pembuatan gambar. Akun dengan kontrak harga tetap per gambar belum mendukung SVG; pengiriman mengembalikan 400.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-image-2.6-flare\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A minimalist bakery logo with a wheat stalk, flat colors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"svg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"svg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-5.4-mini\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1:1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quality\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"low\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"n\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`memeriksa-hasil-tugas`,children:`Memeriksa hasil tugas`}),`\n`,_jsxs(_components.p,{children:[`Periksa `,_jsx(_components.a,{href:`/id/api-reference/tasks/status`,children:`API status tugas`}),` setiap 2–5 detik hingga `,_jsx(_components.code,{children:`completed`}),` atau `,_jsx(_components.code,{children:`failed`}),`. Jangan kirim ulang permintaan pembuatan saat menunggu.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.apimart.ai/v1/tasks/task_01KXXXXXXXXXXXXXXX`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Setelah selesai, baca URL dari `,_jsx(_components.code,{children:`data.result.images[].url[]`}),` dan segera unduh berkas. Contoh hanya menampilkan kolom utama; jika `,_jsx(_components.code,{children:`failed`}),`, periksa `,_jsx(_components.code,{children:`data.error.message`}),`. Gunakan `,_jsx(_components.code,{children:`POST /v1/tasks/batch`}),` untuk memeriksa beberapa tugas.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_01KXXXXXXXXXXXXXXX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"progress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://upload.apimart.ai/f/image/example.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`penggunaan-token-svg-dan-contoh-respons`,children:`Penggunaan token SVG dan contoh respons`}),`\n`,_jsxs(_components.p,{children:[`Pada respons pemeriksaan tugas, `,_jsx(_components.code,{children:`data.usage.svg_usage`}),` melaporkan penggunaan model teks yang menulis SVG. Kolom token lain di `,_jsx(_components.code,{children:`data.usage`}),` merupakan penggunaan model gambar yang membuat referensi. Hitung setiap bagian sesuai aturan penagihan model terkait.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Kolom`}),_jsx(_components.th,{children:`Tipe`}),_jsx(_components.th,{children:`Keterangan`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Model teks yang benar-benar digunakan untuk menulis SVG.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`input_tokens`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Token masukan model teks.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_tokens`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Token keluaran model teks, termasuk token penalaran.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reasoning_tokens`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Bagian token keluaran yang digunakan untuk penalaran; jangan tambahkan lagi ke `,_jsx(_components.code,{children:`output_tokens`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Contoh berikut menampilkan kolom utama respons tugas SVG. Nilai token menggambarkan hubungan antarkolom dan bukan konsumsi tetap.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`28`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"task_01KXXXXXXXXXXXXXXX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"progress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://upload.apimart.ai/f/image/example.svg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`40`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1800`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1840`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"svg_usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-5.4-mini\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`800`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reasoning_tokens\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`kesalahan-parameter-umum`,children:`Kesalahan parameter umum`}),`\n`,_jsx(_components.p,{children:`Kesalahan validasi parameter berikut mengembalikan HTTP 400 secara sinkron saat pengiriman. Tugas tidak dibuat dan tidak ada biaya yang dikenakan. Perbaiki parameter sebelum mengirim ulang.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Kesalahan`}),_jsx(_components.th,{children:`Solusi`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quality \"ultra\" is not supported by gpt-image-2.6-flare`})}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` / `,_jsx(_components.code,{children:`high`}),` / `,_jsx(_components.code,{children:`xhigh`}),` / `,_jsx(_components.code,{children:`max`}),` / `,_jsx(_components.code,{children:`auto`}),`; nilai lain seperti `,_jsx(_components.code,{children:`ultra`}),` tidak didukung.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:\"`n` must be an integer from 1 to 4\"})}),_jsxs(_components.td,{children:[`Tetapkan `,_jsx(_components.code,{children:`n`}),` sebagai bilangan bulat 1–4; `,_jsx(_components.code,{children:`0`}),`, nilai negatif, dan nilai di atas 4 tidak valid.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_compression must be an integer from 0 to 100`})}),_jsxs(_components.td,{children:[`Tetapkan `,_jsx(_components.code,{children:`output_compression`}),` sebagai bilangan bulat 0–100.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_compression is only supported with output_format jpeg or webp`})}),_jsx(_components.td,{children:`Gunakan kompresi hanya untuk JPEG / WebP; hapus parameter untuk PNG / GIF / SVG.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`moderation \"xxx\" is not supported`})}),_jsxs(_components.td,{children:[`Tetapkan `,_jsx(_components.code,{children:`moderation`}),` ke `,_jsx(_components.code,{children:`low`}),` atau `,_jsx(_components.code,{children:`auto`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`markup requires image_urls`})}),_jsxs(_components.td,{children:[`Sertakan `,_jsx(_components.code,{children:`image_urls`}),` dan sesuaikan lapisan dengan gambar pertama.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`markup cannot be combined with mask`})}),_jsx(_components.td,{children:`Pilih anotasi atau masker, jangan keduanya.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frame_count must be an integer from 2 to 16`})}),_jsxs(_components.td,{children:[`Tetapkan `,_jsx(_components.code,{children:`frame_count`}),` sebagai bilangan bulat dari 2 sampai 16.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`no supported sheet fits N GIF frames at size WxH`})}),_jsx(_components.td,{children:`Kurangi ukuran atau jumlah frame; jangan gunakan nama rasio.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_format=svg requires svg.model`})}),_jsxs(_components.td,{children:[`Sertakan objek `,_jsx(_components.code,{children:`svg`}),` dengan model teks yang didukung.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_format=svg requires n=1`})}),_jsxs(_components.td,{children:[`Gunakan `,_jsx(_components.code,{children:`n: 1`}),` untuk SVG.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`background=transparent requires an alpha-capable output_format`})}),_jsx(_components.td,{children:`Transparansi eksplisit memerlukan PNG / WebP; hilangkan parameter untuk SVG.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`parameter-yang-tidak-didukung-dan-penagihan`,children:`Parameter yang tidak didukung dan penagihan`}),`\n`,_jsxs(_components.p,{children:[`Jangan kirim `,_jsx(_components.code,{children:`stream`}),`, `,_jsx(_components.code,{children:`partial_images`}),`, `,_jsx(_components.code,{children:`input_fidelity`}),`, `,_jsx(_components.code,{children:`prompt_rewriter`}),`, atau `,_jsx(_components.code,{children:`response_format`}),`. Endpoint ini mengembalikan tugas asinkron dan URL CDN, bukan gambar parsial streaming atau respons gambar Base64. `,_jsx(_components.code,{children:`frame_count`}),` / `,_jsx(_components.code,{children:`frame_duration_ms`}),` hanya untuk GIF; konfigurasi `,_jsx(_components.code,{children:`svg`}),` hanya untuk SVG.`]}),`\n`,_jsxs(_components.p,{children:[`Flare dan Sunburst memakai tarif yang sama. GPT-Image-2.6 mengonsumsi lebih banyak token pada `,_jsx(_components.code,{children:`low`}),` / `,_jsx(_components.code,{children:`medium`}),` dibanding 2.5; jangan memakai estimasi lama tanpa penyesuaian. Tarif terbaru tersedia di `,_jsx(_components.a,{href:`https://apimart.ai/pricing`,children:`halaman harga APIMart`}),` atau `,_jsx(_components.code,{children:`/api/pricing`}),`. Halaman ini tidak mencantumkan harga tetap.`]}),`\n`,_jsxs(_components.p,{children:[`Lihat `,_jsx(_components.a,{href:`https://developers.openai.com/api/docs/guides/image-generation`,children:`panduan pembuatan gambar OpenAI`}),` untuk fitur penyedia. Untuk APIMart, gunakan endpoint, respons asinkron, dan batas pada halaman ini.`]})]})}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":{"title":"GPT-Image-2.6 Pembuatan Gambar","description":"Buat dan edit gambar secara asinkron dengan Flare dan Sunburst, termasuk anotasi, GIF animasi, dan keluaran SVG.","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.6/generation"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Autentikasi","slug":"autentikasi","depth":2,"children":[]},{"title":"Memilih model","slug":"memilih-model","depth":2,"children":[]},{"title":"Parameter permintaan","slug":"parameter-permintaan","depth":2,"children":[]},{"title":"Ukuran gambar statis dan SVG","slug":"ukuran-gambar-statis-dan-svg","depth":2,"children":[]},{"title":"Pengeditan dan masker","slug":"pengeditan-dan-masker","depth":2,"children":[]},{"title":"Edit dengan panduan anotasi","slug":"edit-dengan-panduan-anotasi","depth":2,"children":[]},{"title":"GIF animasi","slug":"gif-animasi","depth":2,"children":[]},{"title":"Keluaran SVG","slug":"keluaran-svg","depth":2,"children":[]},{"title":"Memeriksa hasil tugas","slug":"memeriksa-hasil-tugas","depth":2,"children":[{"title":"Penggunaan token SVG dan contoh respons","slug":"penggunaan-token-svg-dan-contoh-respons","depth":3,"children":[]}]},{"title":"Kesalahan parameter umum","slug":"kesalahan-parameter-umum","depth":2,"children":[]},{"title":"Parameter yang tidak didukung dan penagihan","slug":"parameter-yang-tidak-didukung-dan-penagihan","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.apimart.ai/v1/images/generations\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"gpt-image-2.6-flare\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"A cozy reading nook by a rainy window, warm lamp light\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"size\": \"1:1\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\": \"1k\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"quality\": \"medium\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"n\": 1\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.apimart.ai/v1/images/generations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u0026#x3C;token>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"gpt-image-2.6-flare\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"A cozy reading nook by a rainy window, warm lamp light\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"size\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1:1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1k\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"quality\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"medium\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"n\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response.raise_for_status()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.json()[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">][\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">][\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">])\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"18\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.apimart.ai/v1/images/generations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Bearer \u0026#x3C;token>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"gpt-image-2.6-flare\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"A cozy reading nook by a rainy window, warm lamp light\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"size\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"1:1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"1k\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"quality\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"medium\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"n\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 1\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">if\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">!\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">ok\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">throw\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">text\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">());\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> result\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">result\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">].\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">task_id\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">200\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"submitted\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"task_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"task_01KXXXXXXXXXXXXXXX\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"GPT-Image-2.6 Pembuatan Gambar","path":"/v1/images/generations","servers":[{"url":"https://api.apimart.ai"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"Gunakan autentikasi Bearer Token. Dapatkan kunci di halaman kunci API .","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"Nama model: `gpt-image-2.6-flare` atau `gpt-image-2.6-sunburst` .","required":true}],"prompt":[{"type":"string","description":"Instruksi pembuatan atau pengeditan, maksimal 32.000 karakter. Jelaskan subjek, komposisi, serta hal yang ingin diubah atau dipertahankan.","required":true}],"size":[{"type":"string","description":"Gambar statis dan SVG mendukung 15 rasio, ukuran piksel seperti `1600x1200` , atau `auto` . Nilai `auto` eksplisit menyerahkan pilihan ke penyedia. Jika dihilangkan saat mengedit, ukuran dipilih dari rasio gambar pertama dan `resolution` . GIF mengikuti aturan terpisah di bawah."}],"resolution":[{"type":"string","description":"`1k` / `2k` / `4k` , huruf kecil. Menentukan piksel bersama `size` berupa rasio; diabaikan jika ukuran piksel pasti diberikan."}],"quality":[{"type":"string","description":"`low` / `medium` / `high` / `xhigh` / `max` / `auto` . Nilai lain mengembalikan HTTP 400 saat pengiriman. Jika parameter dihilangkan atau bernilai `auto` , model memilih tingkat kualitas secara otomatis. Tingkat yang dipilih dapat berubah dan tidak selalu `low` . Tentukan tingkat secara eksplisit jika memerlukan pengaturan tetap. Jika parameter dihilangkan atau bernilai `auto` , dana dicadangkan berdasarkan tingkat `max` , lalu biaya akhir dihitung sesuai tingkat kualitas yang benar-benar dipilih."}],"n":[{"type":"integer","description":"Bilangan bulat `1` – `4` ; untuk GIF, jumlah animasi. SVG harus `1` . Nilai eksplisit `0` , negatif, atau lebih dari `4` mengembalikan HTTP 400, bukan diganti dengan nilai bawaan."}],"output_format":[{"type":"string","description":"`png` / `jpeg` / `webp` / `gif` / `svg` . GIF dan SVG hanya mendukung pembuatan dari teks. Nilai lain mengembalikan HTTP 400 saat pengiriman."}],"output_compression":[{"type":"integer","description":"Bilangan bulat `0` – `100` , hanya untuk `jpeg` / `webp` . Nilai di luar rentang atau penggunaan dengan `png` / `gif` / `svg` mengembalikan HTTP 400 saat pengiriman."}],"background":[{"type":"string","description":"`transparent` / `opaque` / `auto` ; jika dihilangkan, memakai nilai bawaan penyedia. `transparent` eksplisit hanya boleh dengan `png` / `webp` . SVG memiliki latar transparan secara bawaan; hilangkan parameter ini untuk SVG."}],"moderation":[{"type":"string","description":"Tingkat moderasi konten: `auto` / `low` . Nilai lain mengembalikan HTTP 400 saat pengiriman."}],"image_urls":[{"type":"array","items":[{"type":"string"}],"description":"Maksimal 16 gambar referensi; menyertakannya mengaktifkan mode edit. Gunakan URL gambar HTTP(S) yang dapat diakses publik. Unggah berkas lokal melalui API unggah gambar , lalu gunakan `url` yang dikembalikan."}],"mask_url":[{"type":"string","description":"Masker edit lokal; memerlukan `image_urls` . Gunakan PNG dengan kanal alfa dan ukuran sama dengan gambar pertama; area transparan sepenuhnya menandai bagian yang diedit. Mendukung URL gambar atau PNG Data URL. Tidak dapat digabungkan dengan anotasi; piksel di luar masker tidak dijamin tetap identik."}],"complexity":[{"type":"string","description":"Intensitas perencanaan: `low` / `medium` / `high` , bawaan penyedia `high` , terpisah dari `quality` . Gunakan `low` untuk perubahan terarah dan `high` untuk teks padat, tata letak atau hubungan objek rumit; dapat memperlambat proses atau menambah perubahan. Tidak ada biaya terpisah; hanya didukung 2.6."}],"safety_identifier":[{"type":"string","description":"Identitas pengguna akhir yang stabil dan opsional, maksimal 128 karakter; disarankan hash nama pengguna atau email. Secara bawaan APIMart tidak meneruskannya ke penyedia, kecuali kanal mengizinkan. Boleh dihilangkan."}],"svg":[{"type":"object","properties":{"model":[{"type":"string","description":"Wajib. Pilih model dengan tarif token teks di platform, misalnya `gpt-5.4-mini` atau `gpt-5.6-sol` .","required":true}],"reasoning":[{"type":"object","properties":{"effort":[{"type":"string","description":"Opsional: `none` / `minimal` / `low` / `medium` / `high` / `xhigh` / `max` . Nilai yang didukung bergantung pada model teks. Disarankan menghilangkan parameter ini untuk memakai nilai bawaan model."}]}}]},"description":"Tetapkan `output_format: \"svg\"` . Model gambar membuat referensi terlebih dahulu, lalu model teks pada `svg.model` menulis SVG."}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","prompt":"\u003cstring>","size":"\u003cstring>","resolution":"\u003cstring>","quality":"\u003cstring>","n":123,"output_format":"\u003cstring>","output_compression":123,"background":"\u003cstring>","moderation":"\u003cstring>","image_urls":["\u003cstring>"],"mask_url":"\u003cstring>","complexity":"\u003cstring>","safety_identifier":"\u003cstring>","svg":{"model":"\u003cstring>","reasoning":{"effort":"\u003cstring>"}}}}}}}},"response":{},"deprecated":false}},"jsLinks":["/_mintlify/custom/apicore/1f7e29c94a916812/cn-domain-rewrite.js","/_mintlify/custom/apicore/afc6076845564106/param-field-copy.js"],"subdomain":"apicore","siteName":"APIMart","title":"GPT-Image-2.6 Pembuatan Gambar - APIMart","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/images/gpt-image-2.6/generation","matchLevel":1},"zh-Hans":{"href":"/cn/api-reference/images/gpt-image-2.6/generation","matchLevel":1},"ja":{"href":"/ja/api-reference/images/gpt-image-2.6/generation","matchLevel":1},"ko":{"href":"/ko/api-reference/images/gpt-image-2.6/generation","matchLevel":1},"ru":{"href":"/ru/api-reference/images/gpt-image-2.6/generation","matchLevel":1},"de":{"href":"/de/api-reference/images/gpt-image-2.6/generation","matchLevel":1},"fr":{"href":"/fr/api-reference/images/gpt-image-2.6/generation","matchLevel":1},"pt":{"href":"/pt/api-reference/images/gpt-image-2.6/generation","matchLevel":1},"id":{"href":"/id/api-reference/images/gpt-image-2.6/generation","matchLevel":0},"es":{"href":"/es/api-reference/images/gpt-image-2.6/generation","matchLevel":1}}},"lastModified":"2026-11-05T06:35:27.662Z","originalFileLocation":"id/api-reference/images/gpt-image-2.6/generation.mdx","locale":"id"},"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=\"Buat dan edit gambar secara asinkron dengan Flare dan Sunburst, termasuk anotasi, GIF animasi, dan keluaran SVG.\">\u003cmeta data-mint-head name=\"keywords\" content=\"OpenAI compatible, API gateway, GPT-5, Claude, Gemini, multi-provider, transparent pricing, SLA\">\u003cmeta data-mint-head name=\"application-name\" content=\"APIMart\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_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/apicore/lN2mX6cSovqJeXFa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/apicore/lN2mX6cSovqJeXFa/_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/apicore/lN2mX6cSovqJeXFa/_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/apicore/lN2mX6cSovqJeXFa/_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/apicore/lN2mX6cSovqJeXFa/_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/apicore/lN2mX6cSovqJeXFa/_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/apicore/lN2mX6cSovqJeXFa/_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/apicore/lN2mX6cSovqJeXFa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"GPT-Image-2.6 Pembuatan Gambar - APIMart\">\u003cmeta data-mint-head property=\"og:description\" content=\"Buat dan edit gambar secara asinkron dengan Flare dan Sunburst, termasuk anotasi, GIF animasi, dan keluaran SVG.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"APIMart\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://apicore.mintlify.app/_mintlify/api/og/v2?division=GPT-Image-2.6\u0026amp;title=GPT-Image-2.6+Pembuatan+Gambar\u0026amp;description=Buat+dan+edit+gambar+secara+asinkron+dengan+Flare+dan+Sunburst%2C+termasuk+anotasi%2C+GIF+animasi%2C+dan+keluaran+SVG.\u0026amp;theme=85f832f8b30837d0268a5e67\u0026amp;signature=3074c589eefbc75e83fe8de215e6cf3915caa0f03d0536aca0c0b8dd6273fbda\">\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=\"GPT-Image-2.6 Pembuatan Gambar - APIMart\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Buat dan edit gambar secara asinkron dengan Flare dan Sunburst, termasuk anotasi, GIF animasi, dan keluaran SVG.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://apicore.mintlify.app/_mintlify/api/og/v2?division=GPT-Image-2.6\u0026amp;title=GPT-Image-2.6+Pembuatan+Gambar\u0026amp;description=Buat+dan+edit+gambar+secara+asinkron+dengan+Flare+dan+Sunburst%2C+termasuk+anotasi%2C+GIF+animasi%2C+dan+keluaran+SVG.\u0026amp;theme=85f832f8b30837d0268a5e67\u0026amp;signature=3074c589eefbc75e83fe8de215e6cf3915caa0f03d0536aca0c0b8dd6273fbda\">\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/apicore/lN2mX6cSovqJeXFa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"APIMart\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@APIMart_\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/id/api-reference/images/gpt-image-2.6/generation.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.apimart.ai/en/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://docs.apimart.ai/cn/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.apimart.ai/ja/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.apimart.ai/ko/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.apimart.ai/ru/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.apimart.ai/de/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.apimart.ai/fr/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.apimart.ai/pt/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.apimart.ai/es/api-reference/images/gpt-image-2.6/generation\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.apimart.ai/en/api-reference/images/gpt-image-2.6/generation\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.apimart.ai/#organization\",\"name\":\"APIMart\",\"url\":\"https://docs.apimart.ai\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.apimart.ai#website\",\"name\":\"APIMart\",\"url\":\"https://docs.apimart.ai\",\"publisher\":{\"@id\":\"https://docs.apimart.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation#webpage\",\"url\":\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation\",\"name\":\"GPT-Image-2.6 Pembuatan Gambar\",\"description\":\"Buat dan edit gambar secara asinkron dengan Flare dan Sunburst, termasuk anotasi, GIF animasi, dan keluaran SVG.\",\"dateModified\":\"2026-11-05T06:35:27.662Z\",\"isPartOf\":{\"@id\":\"https://docs.apimart.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Seri Gambar\",\"item\":\"https://docs.apimart.ai/id/api-reference/images/gemini-nano-banana-2.1/generation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GPT-Image-2.6 Pembuatan Gambar\",\"item\":\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation#apireference\",\"headline\":\"GPT-Image-2.6 Pembuatan Gambar\",\"name\":\"GPT-Image-2.6 Pembuatan Gambar\",\"description\":\"Buat dan edit gambar secara asinkron dengan Flare dan Sunburst, termasuk anotasi, GIF animasi, dan keluaran SVG.\",\"url\":\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.apimart.ai/id/api-reference/images/gpt-image-2.6/generation#webpage\"},\"dateModified\":\"2026-11-05T06:35:27.662Z\",\"publisher\":{\"@id\":\"https://docs.apimart.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.apimart.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"APIMart\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"APIMart","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/en/api-reference/images/gpt-image-2.6/generation"}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/cn/api-reference/images/gpt-image-2.6/generation"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/images/gpt-image-2.6/generation"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/images/gpt-image-2.6/generation"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/api-reference/images/gpt-image-2.6/generation"}]},{"language":"de","pages":[{"title":"de","href":"/de/api-reference/images/gpt-image-2.6/generation"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api-reference/images/gpt-image-2.6/generation"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/api-reference/images/gpt-image-2.6/generation"}]},{"language":"id","tabs":[{"tab":"Panduan API","groups":[{"group":"Ikhtisar","pages":[{"title":"APIMart — Gateway API yang Kompatibel dengan OpenAI (GPT-5, Claude, Gemini)","href":"/id"}]},{"group":"Model","pages":[{"title":"API metadata daftar model","api":"GET https://api.apimart.ai/v1/models","href":"/id/api-reference/texts/models/list"}]},{"group":"Seri Teks","icon":"text","pages":[{"title":"API Chat Umum (Streaming Bawaan)","api":"POST https://api.apimart.ai/v1/chat/completions","href":"/id/api-reference/texts/general/chat-completions"},{"title":"API Chat Umum (Non-Streaming Bawaan)","api":"POST https://api.apimart.ai/api/v1/chat/completions","href":"/id/api-reference/texts/general/chat-completions-nostream"},{"title":"Claude Messages API","api":"POST https://api.apimart.ai/v1/messages","href":"/id/api-reference/texts/general/claude-messages"},{"title":"Format Native Gemini","api":"POST https://api.apimart.ai/v1beta/models/{model}:{method}","href":"/id/api-reference/texts/gemini/quickstart"},{"title":"OpenAI Multimodal Responses API","api":"POST https://api.apimart.ai/v1/responses","href":"/id/api-reference/texts/openai/responses"},{"title":"Panduan Cache Konteks OpenAI","sidebarTitle":"Cache Konteks OpenAI","icon":"database","href":"/id/api-reference/texts/openai/context-cache"},{"title":"Panduan Penggunaan Cache Konteks Gemini","sidebarTitle":"Cache Konteks Gemini","icon":"database","href":"/id/api-reference/texts/gemini/context-cache"},{"title":"Panduan Penggunaan Cache Konteks Claude","sidebarTitle":"Cache Konteks Claude","icon":"database","href":"/id/api-reference/texts/general/claude-context-cache"},{"group":"qwen3.8-max","icon":"message","pages":[{"title":"qwen3.8-max Integration Guide","api":"POST https://api.apimart.ai/v1/chat/completions","href":"/id/api-reference/texts/qwen3.8-max/guide"},{"title":"Model Pricing API","api":"GET https://api.apimart.ai/api/pricing/model?model=qwen3.8-max","href":"/id/api-reference/texts/qwen3.8-max/pricing"}]}]},{"group":"Seri Gambar","icon":"image","pages":[{"group":"Nano banana 2.1","icon":"image","pages":[{"title":"Nano banana 2.1 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-nano-banana-2.1/generation"}]},{"group":"Nano banana2","icon":"image","pages":[{"title":"Nano banana2 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-3.1-flash/generation"},{"title":"Nano Banana Lite Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-3.1-flash/generation-lite"}]},{"group":"Nano banana Pro","icon":"image","pages":[{"title":"Nano banana Pro Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-3-pro/generation"}]},{"group":"Nano banana","icon":"image","pages":[{"title":"Nano banana Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gemini-2.5-flash/generation"}]},{"group":"Imagen-4.0","icon":"image","pages":[{"title":"Imagen 4.0 Apimart Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/imagen-4.0-apimart/generation"}]},{"group":"GPT-Image(1/1.5)","icon":"image","pages":[{"title":"GPT-Image(1/1.5) Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-1/generation"}]},{"group":"GPT-Image-2","icon":"image","pages":[{"title":"GPT-Image-2 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2/generation"},{"title":"GPT-Image-2 Official Channel Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2/official"}]},{"group":"GPT-Image-2.5","icon":"image","pages":[{"title":"Pembuatan Gambar GPT-Image-2.5","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.5/generation"}]},{"group":"GPT-Image-2.5 Ext","icon":"image","pages":[{"title":"GPT-Image-2.5 Ext — Pembuatan Gambar","description":" - Gunakan gpt-image-2.5-ext dan pilih Flare atau Sunburst melalui version\n- Pemrosesan asinkron: periksa hasil menggunakan ID tugas setelah pengiriman\n- Mendukung pembuatan gambar dari teks dan dari gambar dengan hingga 16 gambar referensi\n- Mendukung 10 rasio aspek dan auto, dengan resolusi 1K / 2K / 4K\n- Buat 1–4 gambar per permintaan; biaya dihitung berdasarkan versi, resolusi, dan jumlah gambar yang benar-benar dihasilkan dan diserahkan ","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.5-ext/generation"}]},{"group":"GPT-Image-2.6","icon":"image","pages":[{"title":"GPT-Image-2.6 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/gpt-image-2.6/generation"}]},{"group":"Seedream-4.0","icon":"image","pages":[{"title":"Seedream-4.0 Pembuatan Gambar","description":" - Mode pemrosesan asinkron, mengembalikan ID tugas untuk kueri berikutnya\n- Mendukung beberapa mode pembuatan, termasuk text-to-image, image-to-image, dan pengeditan gambar\n- Tautan gambar yang dihasilkan berlaku selama 24 jam; harap segera simpan ","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-4/generation"}]},{"group":"Seedream-4.5","icon":"image","pages":[{"title":"Seedream-4.5 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-4.5/generation"}]},{"group":"Seedream-5.0-Lite","icon":"image","pages":[{"title":"Seedream-5.0-Lite Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-5-lite/generation"}]},{"group":"Seedream-5.0-Pro","icon":"image","pages":[{"title":"Seedream-5.0-Pro Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-5-0-pro/generation"}]},{"group":"Seedream-5.0-Flash","icon":"image","pages":[{"title":"Seedream-5.0-Flash Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/seedream-5-0-flash/generation"}]},{"group":"Flux Kontext","icon":"image","pages":[{"title":"Pembuatan dan Pengeditan Gambar FLUX Kontext","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/flux-kontext/generation"}]},{"group":"Flux 2.0","icon":"image","pages":[{"title":"Pembuatan Gambar FLUX.2","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/flux-2/generation"}]},{"group":"FLUX 3 Image","icon":"image","pages":[{"title":"FLUX 3 Image Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/flux-3-image/generation"}]},{"group":"FLUX 3 Image Klein","icon":"image","pages":[{"title":"FLUX 3 Image Klein Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/flux-3-image-klein/generation"}]},{"group":"Hy-Image-3.5 Preview","icon":"image","pages":[{"title":"Hy-Image-3.5 Preview Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/hy-image-v3.5-preview/generation"}]},{"group":"Muse Image Ext","icon":"image","pages":[{"title":"Pembuatan Gambar Muse Image Ext","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/muse-image-ext/generation"}]},{"group":"MAI-Image-2.6","icon":"image","pages":[{"title":"MAI-Image-2.6 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/mai-image-2.6/generation"}]},{"group":"Qwen Image 2.0","icon":"image","pages":[{"title":"Qwen Image 2.0 Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/qwen-image/generation"}]},{"group":"Qwen Image 3.0","icon":"image","pages":[{"title":"Pembuatan Gambar Qwen Image 3.0","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/qwen-image-3.0/generation"}]},{"group":"Z-Image-Turbo","icon":"image","pages":[{"title":"Z-Image-Turbo Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/z-image-turbo/generation"}]},{"group":"Grok Imagine","icon":"image","pages":[{"title":"Grok Imagine generasi gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/grok-imagine/generation"}]},{"group":"Grok Imagine 2.0 Ext","icon":"image","pages":[{"title":"Grok Imagine 2.0 Ext Pembuatan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/grok-imagine-2.0-ext/generation"},{"title":"Lapisan dan Pengeditan Wilayah Grok Imagine 2.0 Ext","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/grok-imagine-2.0-ext/layer-region-edit"},{"title":"Grok Imagine Image 2.0 — generasi dan pengeditan resmi","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/grok-imagine-2.0-ext/official"}]},{"group":"wan2.7-image","icon":"image","pages":[{"title":"wan2.7 Pembuatan \u0026 Pengeditan Gambar","api":"POST https://api.apimart.ai/v1/images/generations","href":"/id/api-reference/images/wan2.7-image/generation"}]},{"group":"Midjourney","icon":"image","pages":[{"title":"API Midjourney","href":"/id/api-reference/images/midjourney/generation"},{"title":"Imagine (teks ke gambar)","api":"POST https://api.apimart.ai/v1/midjourney/generations","href":"/id/api-reference/images/midjourney/imagine"},{"title":"Blend (gabungan multi-gambar)","api":"POST https://api.apimart.ai/v1/midjourney/generations/blend","href":"/id/api-reference/images/midjourney/blend"},{"title":"Describe (gambar ke teks)","api":"POST https://api.apimart.ai/v1/midjourney/generations/describe","href":"/id/api-reference/images/midjourney/describe"},{"title":"Edits (edit gambar)","api":"POST https://api.apimart.ai/v1/midjourney/generations/edits","href":"/id/api-reference/images/midjourney/edits"},{"title":"Upscale (perbesar tile)","api":"POST https://api.apimart.ai/v1/midjourney/generations/upscale","href":"/id/api-reference/images/midjourney/upscale"},{"title":"Variation (variasi)","api":"POST https://api.apimart.ai/v1/midjourney/generations/variation","href":"/id/api-reference/images/midjourney/variation"},{"title":"High Variation (variasi kuat)","api":"POST https://api.apimart.ai/v1/midjourney/generations/high-variation","href":"/id/api-reference/images/midjourney/high-variation"},{"title":"Low Variation (variasi halus)","api":"POST https://api.apimart.ai/v1/midjourney/generations/low-variation","href":"/id/api-reference/images/midjourney/low-variation"},{"title":"Reroll (regenerasi)","api":"POST https://api.apimart.ai/v1/midjourney/generations/reroll","href":"/id/api-reference/images/midjourney/reroll"},{"title":"Zoom (zoom out)","api":"POST https://api.apimart.ai/v1/midjourney/generations/zoom","href":"/id/api-reference/images/midjourney/zoom"},{"title":"Pan (pan)","api":"POST https://api.apimart.ai/v1/midjourney/generations/pan","href":"/id/api-reference/images/midjourney/pan"},{"title":"Inpaint (Vary Region)","api":"POST https://api.apimart.ai/v1/midjourney/generations/inpaint","href":"/id/api-reference/images/midjourney/inpaint"},{"title":"Modal (kirim parameter)","api":"POST https://api.apimart.ai/v1/midjourney/generations/modal","href":"/id/api-reference/images/midjourney/modal"},{"title":"Video (gambar ke video)","api":"POST https://api.apimart.ai/v1/midjourney/generations/video","href":"/id/api-reference/images/midjourney/video"},{"title":"Remix (reshape, hanya v8.1 / v8.2)","api":"POST https://api.apimart.ai/v1/midjourney/generations/remix-strong","href":"/id/api-reference/images/midjourney/remix"},{"title":"Query tugas","api":"GET https://api.apimart.ai/v1/midjourney/{task_id}","href":"/id/api-reference/images/midjourney/query"},{"title":"Praktik Terbaik","href":"/id/api-reference/images/midjourney/best-practices"},{"title":"Contoh Alur Kerja Lengkap","href":"/id/api-reference/images/midjourney/workflow"}]}]},{"group":"Seri Video","icon":"video","pages":[{"group":"seedance-1-0-pro","icon":"video","pages":[{"title":"Pembuatan Video seedance-1-0-pro","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/doubao/generation"}]},{"group":"seedance-1-5-pro","icon":"video","pages":[{"title":"Pembuatan Video seedance-1-5-pro","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/seedance-1-5-pro/generation"}]},{"group":"seedance-2-0","icon":"video","pages":[{"title":"Pembuatan Video seedance-2.0","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/seedance-2-0/generation"},{"title":"Aset Avatar Virtual","api":"POST https://api.apimart.ai/v1/seedance2/private-avatar","href":"/id/api-reference/videos/seedance-2-0/private-avatar"}]},{"group":"seedance-2-5","icon":"video","pages":[{"title":"seedance-2.5 Video Generation","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/seedance-2-5/generation"}]},{"group":"VEO3","icon":"video","pages":[{"title":"Pembuatan Video VEO3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/veo3/generation"},{"title":"Remix Video VEO3","api":"POST https://api.apimart.ai/v1/videos/{task_id}/remix","href":"/id/api-reference/videos/veo3/remix"},{"title":"Pembuatan Video Resmi VEO3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/veo3/generation-official"}]},{"group":"MiniMax-Hailuo-02","icon":"video","pages":[{"title":"Pembuatan Video MiniMax-Hailuo-02","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-hailuo/generation"}]},{"group":"MiniMax-Hailuo-2.3","icon":"video","pages":[{"title":"Pembuatan Video MiniMax-Hailuo-2.3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-hailuo-2.3/generation"}]},{"group":"MiniMax-H3","icon":"video","pages":[{"title":"Pembuatan Video MiniMax-H3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-h3/generation"},{"title":"Pembuatan Video MiniMax-H3-Max","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-h3/max"},{"title":"MiniMax-H3 Context-IR peningkatan prompt","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-h3/context-ir"},{"title":"MiniMax-H3 Regeneration","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/minimax-h3/regeneration"}]},{"group":"FLUX 3 Video","icon":"video","pages":[{"title":"Pembuatan Video FLUX 3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/flux-3-video/generation"}]},{"group":"SkyReels V4","icon":"video","pages":[{"title":"Pembuatan Video SkyReels V4","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/skyreels-v4/generation"}]},{"group":"HappyHorse","icon":"video","pages":[{"title":"Pembuatan Video HappyHorse 1.0","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/happyhorse-1.0/generation"},{"title":"Pembuatan Video HappyHorse 1.1","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/happyhorse-1.1/generation"}]},{"group":"Wan3.0","icon":"video","pages":[{"title":"Generasi Video Wan3.0","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan3.0-video/generation"}]},{"group":"Wan2.7","icon":"video","pages":[{"title":"Pembuatan Video Wan2.7","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.7/generation"},{"title":"Wan2.7-R2V Referensi-ke-Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.7-r2v/generation"},{"title":"Pengeditan Video Wan2.7-VideoEdit","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.7-videoedit/generation"}]},{"group":"Wan2.6","icon":"video","pages":[{"title":"Pembuatan Video Wan2.6","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.6/generation"},{"title":"Gambar-ke-Video wan2.6-i2v-flash","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.6/i2v-flash-generation"}]},{"group":"Wan2.5","icon":"video","pages":[{"title":"Pembuatan Video wan2.5-preview","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/wan2.5/generation"}]},{"group":"Kling 2.6","icon":"video","pages":[{"title":"Pembuatan Video Kling 2.6","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v2-6/generation"},{"title":"Pembuatan Video Kontrol Gerak Kling v2.6","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v2-6/kling-v2-6-motion-control-generation"}]},{"group":"Kling v3","icon":"video","pages":[{"title":"Pembuatan Video Kling v3","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v3/generation"}]},{"group":"Kling 3.0 Turbo","icon":"video","pages":[{"title":"Pembuatan Video Kling 3.0 Turbo","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-3.0-turbo/generation"}]},{"group":"Kling v3 Omni","icon":"video","pages":[{"title":"Pembuatan Video Kling v3 Omni","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v3-omni/generation"}]},{"group":"Kling V4","icon":"video","pages":[{"title":"Kling V4 Pembuatan Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-v4/generation"}]},{"group":"Kling Video O1","icon":"video","pages":[{"title":"Pembuatan Video Kling Video O1","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/kling-video-o1/generation"}]},{"group":"Vidu Q3(pro/turbo)","icon":"video","pages":[{"title":"Pembuatan Video Vidu Q3 (pro/turbo)","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/vidu-q3-pro/generation"}]},{"group":"Vidu Q4 Preview","icon":"video","pages":[{"title":"Vidu Q4 Preview Pembuatan Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/vidu-q4-preview/generation"}]},{"group":"Vidu Q3(mix/standard)","icon":"video","pages":[{"title":"Referensi-ke-Video Vidu Q3 (mix/standar)","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/vidu-q3/generation"}]},{"group":"Grok Imagine","icon":"video","pages":[{"title":"Pembuatan Video Grok Imagine 1.5","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/grok-imagine/generation"},{"title":"Model Video Resmi Grok","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/grok-imagine/official"}]},{"group":"Pixverse v6","icon":"video","pages":[{"title":"Pixverse v6 Pembuatan Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/pixverse-v6/generation"}]},{"group":"PixVerse V6 Max","icon":"video","pages":[{"title":"PixVerse V6 Max Pembuatan Video","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/pixverse-v6-max/generation"}]},{"group":"Muse Video Ext","icon":"video","pages":[{"title":"Pembuatan Video Muse Video Ext","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/muse-video-ext/generation"}]},{"group":"gemini-omni-1.1-flash-ext","icon":"video","pages":[{"title":"Pembuatan Video gemini-omni-1.1-flash-ext","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/omni-flash-ext/generation"}]},{"group":"Gemini Omni 1.1 Flash","icon":"video","pages":[{"title":"Pembuatan Video Gemini Omni 1.1 Flash","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/gemini-omni-1.1-flash/generation"}]},{"group":"Gemini Omni Flash","icon":"video","pages":[{"title":"Pembuatan Video Gemini Omni Flash","api":"POST https://api.apimart.ai/v1/videos/generations","href":"/id/api-reference/videos/gemini-omni-flash-preview/generation"}]}]},{"group":"Seri Audio","icon":"microphone","pages":[{"title":"Transkripsi Audio Whisper-1","api":"POST https://api.apimart.ai/v1/audio/transcriptions","href":"/id/api-reference/audios/whisper-1"},{"title":"TTS Text-to-Speech","api":"POST https://api.apimart.ai/v1/audio/speech","href":"/id/api-reference/audios/tts"},{"group":"Flow Music","icon":"music","pages":[{"title":"Membuat Musik","api":"POST https://api.apimart.ai/v1/music/generations","href":"/id/api-reference/audios/flow-music/music"},{"title":"Membuat Musik dengan Lyria 3.5","api":"POST https://api.apimart.ai/v1/music/generations","href":"/id/api-reference/audios/flow-music/music-lyria-3-5"},{"title":"Membuat Lirik","api":"POST https://api.apimart.ai/v1/music/generations/lyricsFlowMusic","href":"/id/api-reference/audios/flow-music/lyrics"},{"title":"Perpanjangan Musik","api":"POST https://api.apimart.ai/v1/music/generations/extendFlowMusic","href":"/id/api-reference/audios/flow-music/extend"},{"title":"Perpanjangan Musik dengan Lyria 3.5","api":"POST https://api.apimart.ai/v1/music/generations/extendFlowMusic","href":"/id/api-reference/audios/flow-music/extend-lyria-3-5"},{"title":"Penggantian Segmen","api":"POST https://api.apimart.ai/v1/music/generations/replaceFlowMusic","href":"/id/api-reference/audios/flow-music/replace"},{"title":"Penggantian Segmen dengan Lyria 3.5","api":"POST https://api.apimart.ai/v1/music/generations/replaceFlowMusic","href":"/id/api-reference/audios/flow-music/replace-lyria-3-5"},{"title":"Aransemen Cover","api":"POST https://api.apimart.ai/v1/music/generations/coverFlowMusic","href":"/id/api-reference/audios/flow-music/cover"},{"title":"Aransemen Cover Lyria 3.5","api":"POST https://api.apimart.ai/v1/music/generations/coverFlowMusic","href":"/id/api-reference/audios/flow-music/cover-lyria-3-5"},{"title":"Pemisahan Trek","api":"POST https://api.apimart.ai/v1/music/generations/stemsFlowMusic","href":"/id/api-reference/audios/flow-music/stems"},{"title":"Mengunggah Audio","api":"POST https://api.apimart.ai/v1/music/generations/uploadAudioFlowMusic","href":"/id/api-reference/audios/flow-music/upload-audio"},{"title":"Mengunduh Audio","api":"POST https://api.apimart.ai/v1/music/generations/downloadAudioFlowMusic","href":"/id/api-reference/audios/flow-music/download-audio"},{"title":"Rendering Video Musik","api":"POST https://api.apimart.ai/v1/music/generations/videoClipFlowMusic","href":"/id/api-reference/audios/flow-music/video-clip"},{"title":"Melihat Tugas","api":"GET https://api.apimart.ai/v1/music/tasks/{task_id}","href":"/id/api-reference/audios/flow-music/query"}]},{"group":"Suno","icon":"music","pages":[{"title":"Aturan umum Suno V6 dan kueri tugas","api":"GET https://api.apimart.ai/v1/music/tasks/{task_id}","href":"/id/api-reference/audios/suno/overview"},{"title":"Menghasilkan musik","api":"POST https://api.apimart.ai/v1/music/generations","href":"/id/api-reference/audios/suno/generation"},{"title":"Menghasilkan lirik","api":"POST https://api.apimart.ai/v1/music/generations/lyrics","href":"/id/api-reference/audios/suno/lyrics"},{"title":"Pembuatan inspirasi (inspo)","api":"POST https://api.apimart.ai/v1/music/generations/inspo","href":"/id/api-reference/audios/suno/inspo"},{"title":"Pembuatan efek suara","api":"POST https://api.apimart.ai/v1/music/generations/sounds","href":"/id/api-reference/audios/suno/sounds"},{"title":"Peningkatan tag","api":"POST https://api.apimart.ai/v1/music/generations/upsampleTags","href":"/id/api-reference/audios/suno/upsample-tags"},{"title":"Unggah audio","api":"POST https://api.apimart.ai/v1/music/generations/uploadTask","href":"/id/api-reference/audios/suno/upload"},{"title":"Unggah Audio dan Buat Cover","api":"POST https://api.apimart.ai/v1/music/generations/uploadCover","href":"/id/api-reference/audios/suno/upload-cover"},{"title":"Unggah dan Perpanjang Audio","api":"POST https://api.apimart.ai/v1/music/generations/uploadExtend","href":"/id/api-reference/audios/suno/upload-extend"},{"title":"Buat Model Kustom","api":"POST https://api.apimart.ai/v1/music/generations/createModel","href":"/id/api-reference/audios/suno/create-model"},{"title":"Melanjutkan dan memperpanjang","api":"POST https://api.apimart.ai/v1/music/generations/extend","href":"/id/api-reference/audios/suno/extend"},{"title":"Menyanyikan ulang dengan gaya lain","api":"POST https://api.apimart.ai/v1/music/generations/coverSong","href":"/id/api-reference/audios/suno/cover-song"},{"title":"Optimalisasi mastering","api":"POST https://api.apimart.ai/v1/music/generations/remaster","href":"/id/api-reference/audios/suno/remaster"},{"title":"Ekstraksi trek","api":"POST https://api.apimart.ai/v1/music/generations/stems","href":"/id/api-reference/audios/suno/stems"},{"title":"Pemisahan trek penuh","api":"POST https://api.apimart.ai/v1/music/generations/stemsAll","href":"/id/api-reference/audios/suno/stems-all"},{"title":"Menambahkan vokal","api":"POST https://api.apimart.ai/v1/music/generations/addVocals","href":"/id/api-reference/audios/suno/add-vocals"},{"title":"Menambahkan iringan musik","api":"POST https://api.apimart.ai/v1/music/generations/addInstrumental","href":"/id/api-reference/audios/suno/add-instrumental"},{"title":"Menambahkan trek (add stem)","api":"POST https://api.apimart.ai/v1/music/generations/addStem","href":"/id/api-reference/audios/suno/add-stem"},{"title":"Ekstrak Vox (tidak digunakan lagi)","api":"POST https://api.apimart.ai/v1/music/generations/vox","href":"/id/api-reference/audios/suno/vox"},{"title":"Membuat suara","api":"POST https://api.apimart.ai/v1/music/generations/createVoice","href":"/id/api-reference/audios/suno/create-voice"},{"title":"Persona","api":"POST https://api.apimart.ai/v1/music/generations/persona","href":"/id/api-reference/audios/suno/persona"},{"title":"Penggantian paragraf","api":"POST https://api.apimart.ai/v1/music/generations/replaceMusic","href":"/id/api-reference/audios/suno/replace-music"},{"title":"Menghapus segmen","api":"POST https://api.apimart.ai/v1/music/generations/removeSection","href":"/id/api-reference/audios/suno/remove-section"},{"title":"Memotong audio","api":"POST https://api.apimart.ai/v1/music/generations/crop","href":"/id/api-reference/audios/suno/crop"},{"title":"Fade in","api":"POST https://api.apimart.ai/v1/music/generations/fadeIn","href":"/id/api-reference/audios/suno/fade-in"},{"title":"Fade out","api":"POST https://api.apimart.ai/v1/music/generations/fadeOut","href":"/id/api-reference/audios/suno/fade-out"},{"title":"Menyesuaikan kecepatan","api":"POST https://api.apimart.ai/v1/music/generations/adjustSpeed","href":"/id/api-reference/audios/suno/adjust-speed"},{"title":"Sintesis / penggabungan lagu lengkap","api":"POST https://api.apimart.ai/v1/music/generations/concat","href":"/id/api-reference/audios/suno/concat"},{"title":"Menghasilkan mashup (mashup)","api":"POST https://api.apimart.ai/v1/music/generations/mashup","href":"/id/api-reference/audios/suno/mashup"},{"title":"Sampel menjadi lagu (sample)","api":"POST https://api.apimart.ai/v1/music/generations/sample","href":"/id/api-reference/audios/suno/sample"},{"title":"Menghasilkan MIDI","api":"POST https://api.apimart.ai/v1/music/generations/midi","href":"/id/api-reference/audios/suno/midi"},{"title":"Garis waktu lirik","api":"POST https://api.apimart.ai/v1/music/generations/alignedLyrics","href":"/id/api-reference/audios/suno/aligned-lyrics"},{"title":"Analisis BPM","api":"POST https://api.apimart.ai/v1/music/generations/bpm","href":"/id/api-reference/audios/suno/bpm"},{"title":"Menghasilkan video musik (MV)","api":"POST https://api.apimart.ai/v1/music/generations/generateMp4","href":"/id/api-reference/audios/suno/generate-mp4"},{"title":"Unduh File Audio","api":"POST https://api.apimart.ai/v1/music/generations/download","href":"/id/api-reference/audios/suno/wav"}]}]},{"group":"Seri Moderasi","icon":"shield-check","pages":[{"group":"omni-moderation-latest","icon":"shield-check","pages":[{"title":"omni-moderation-latest Moderasi Konten","api":"POST https://api.apimart.ai/v1/moderations","href":"/id/api-reference/moderations/omni-moderation-latest/generation"}]}]},{"group":"Manajemen Unggahan","icon":"cloud-arrow-up","pages":[{"title":"Unggah Gambar","api":"POST https://api.apimart.ai/v1/uploads/images","href":"/id/api-reference/uploads/images"}]},{"group":"Manajemen Tugas","icon":"list-check","pages":[{"title":"Dapatkan Status Tugas","api":"GET https://api.apimart.ai/v1/tasks/{task_id}","href":"/id/api-reference/tasks/status"},{"title":"Callback Penyelesaian Tugas (Webhook)","href":"/id/api-reference/tasks/webhook"}]},{"group":"Manajemen Akun","icon":"wallet","pages":[{"title":"Kueri Saldo Token","api":"GET https://api.apimart.ai/v1/balance","href":"/id/api-reference/account/token-balance"},{"title":"Kueri Saldo Pengguna","api":"GET https://api.apimart.ai/v1/user/balance","href":"/id/api-reference/account/user-balance"},{"title":"Kueri biaya dan penggunaan","api":"GET https://api.apimart.ai/v1/usage","href":"/id/api-reference/account/usage"}]}]},{"tab":"Integrasi","pages":[{"title":"Integrasi","href":"/id/integrations/chat/chatbox"}]},{"tab":"Panduan","pages":[{"title":"Panduan","href":"/id/quickstart"}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/id/faqs"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/images/gpt-image-2.6/generation"}]}]},"basePath":"","title":"GPT-Image-2.6 Pembuatan Gambar - APIMart","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DX1Meug0.js","utils-B_OMIQVC.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChxhRPMa.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CuKvD8Iv.js","snippetPresets-C5d7p2hp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CfHcE8m4.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C1zZV314.js","shallow-CmQhqCJn.js","getApiPlaygroundDisplay-YRo9s1O7.js","CodeSnippet-RN1MTdfk.js","CodeSnippets-DKLPHxJA.js","Page-BAvA99GL.js","getPastedJson-bz0M41mU.js","icon-CsmhpPrv.js","MethodPill-CNGsVE77.js","DuplicateIcon-DilfU_Z2.js","createIcon-BdsYzQck.js","DynamicMarkdown-CbqEDjbV.js","SectionHeading-O6hXpFCN.js","axios-vUo_bRtp.js"]}