/v1/ adalah base URL untuk OpenAI SDK. Endpoint native Claude memakai /v1/messages, sedangkan endpoint native Gemini memakai /v1beta dan path modelnya.
Jangan mengganti https://kiosapi.com/v1/ dengan host provider lain ketika menggunakan API key KiosAPI. Kesalahan host, /v1, /v1/messages, atau /v1beta dapat menghasilkan 401 atau 404.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"KiosAPI","description":"KiosAPI developer documentation","colors":{"primary":"#2563EB","light":"#3B82F6","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/kiosapi/bkx8tFSdZ73RVr2i/logo/kiosapi.png?fit=max\u0026auto=format\u0026n=bkx8tFSdZ73RVr2i\u0026q=85\u0026s=1190189459ace97346a5c0f6ad71bca7","dark":"https://mintcdn.com/kiosapi/bkx8tFSdZ73RVr2i/logo/kiosapi.png?fit=max\u0026auto=format\u0026n=bkx8tFSdZ73RVr2i\u0026q=85\u0026s=1190189459ace97346a5c0f6ad71bca7"},"favicon":"https://mintcdn.com/kiosapi/bkx8tFSdZ73RVr2i/favicon.png?fit=max\u0026auto=format\u0026n=bkx8tFSdZ73RVr2i\u0026q=85\u0026s=a745a3f6b3ff7bdaaed25b2778454254","navbar":{"links":[{"href":"https://kiosapi.com/pricing","label":"Models \u0026 Pricing"},{"href":"https://github.com/kiosapi","label":"GitHub"}],"primary":{"type":"button","label":"Open Dashboard","href":"https://kiosapi.com"}},"footer":{"socials":{"github":"https://github.com/kiosapi","website":"https://kiosapi.com"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://kiosapi.com"},{"anchor":"Models \u0026 Pricing","icon":"credit-card","href":"https://kiosapi.com/pricing"},{"anchor":"GitHub","icon":"github","href":"https://github.com/kiosapi"}]},"languages":[{"language":"en","default":true,"href":"introduction"},{"language":"id","href":"id/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kiosapi","hasAudioNarration":false,"actualSubdomain":"kiosapi","customDomains":["docs.kiosapi.com"],"gitSource":{"type":"github","owner":"kiosapi","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ab1a9d9bbfbf5b292b2f15f","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"en","tag":"SDKs \u0026 Tools","count":11},{"language":"id","tag":"SDK \u0026 Alat","count":11},{"language":"en","tag":"API Reference","count":10},{"language":"id","tag":"Referensi API","count":10},{"language":"en","tag":"Quick Start","count":8},{"language":"id","tag":"Mulai Cepat","count":8},{"language":"en","tag":"Troubleshooting","count":1},{"language":"id","tag":"Pemecahan Masalah","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"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":"editor-metadata","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},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"id/api-base-url","slug":"/id/api-base-url","pageMetadata":{"title":"API Base URL","description":"Konfigurasikan host dan path API KiosAPI dengan benar.","href":"/id/api-base-url"},"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: \"Konfigurasikan host dan path API KiosAPI dengan benar.\"\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`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`api-base-url`,children:`API Base URL`}),`\n`,_jsx(_components.p,{children:`Host KiosAPI adalah:`}),`\n`,_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:`https://kiosapi.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Untuk OpenAI-compatible SDK, gunakan base URL berikut:`}),`\n`,_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:`https://kiosapi.com/v1/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`path-berdasarkan-format-api`,children:`Path berdasarkan format API`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Kebutuhan`}),_jsx(_components.th,{children:`URL lengkap`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`OpenAI Chat Completions`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://kiosapi.com/v1/chat/completions`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`OpenAI Responses`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://kiosapi.com/v1/responses`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Claude native`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://kiosapi.com/v1/messages`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Gemini native`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://kiosapi.com/v1beta/models/{model}:generateContent`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`/v1/`}),` adalah base URL untuk OpenAI SDK. Endpoint native Claude memakai `,_jsx(_components.code,{children:`/v1/messages`}),`, sedangkan endpoint native Gemini memakai `,_jsx(_components.code,{children:`/v1beta`}),` dan path modelnya.`]}),`\n`,_jsx(Heading,{level:`2`,id:`contoh-konfigurasi`,children:`Contoh konfigurasi`}),`\n`,_jsx(Heading,{level:`3`,id:`python-openai-sdk`,children:`Python OpenAI SDK`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,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:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` openai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OpenAI`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` OpenAI(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"KIOSAPI_API_KEY\"`}),_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:` base_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://kiosapi.com/v1/\"`}),_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:`node-js-openai-sdk`,children:`Node.js OpenAI SDK`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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\":`#9CDCFE`},children:` OpenAI`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"openai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\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:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` OpenAI`}),_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:` apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`KIOSAPI_API_KEY`}),_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:` baseURL:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://kiosapi.com/v1/\"`}),_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:`permintaan-http-langsung`,children:`Permintaan HTTP langsung`}),`\n`,_jsxs(_components.p,{children:[`Untuk HTTP langsung, gabungkan host dengan endpoint yang dituju dan pilih header autentikasi sesuai `,_jsx(_components.a,{href:`/id/authentication`,children:`panduan autentikasi`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://kiosapi.com/v1/chat/completions\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"Authorization: Bearer ${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`KIOSAPI_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_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:` -H`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"model\":\"gpt-5.5\",\"messages\":[{\"role\":\"user\",\"content\":\"Halo!\"}]}'`})]}),`\n`]})})}),`\n`,_jsx(Warning,{title:`Periksa path sebelum mengubah kode`,children:_jsxs(_components.p,{children:[`Jangan mengganti `,_jsx(_components.code,{children:`https://kiosapi.com/v1/`}),` dengan host provider lain ketika menggunakan API key KiosAPI. Kesalahan host, `,_jsx(_components.code,{children:`/v1`}),`, `,_jsx(_components.code,{children:`/v1/messages`}),`, atau `,_jsx(_components.code,{children:`/v1beta`}),` dapat menghasilkan `,_jsx(_components.code,{children:`401`}),` atau `,_jsx(_components.code,{children:`404`}),`.`]})})]})}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":"API Base URL","description":"Konfigurasikan host dan path API KiosAPI dengan benar.","href":"/id/api-base-url"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API Base URL","slug":"api-base-url","depth":1,"children":[]},{"title":"Path berdasarkan format API","slug":"path-berdasarkan-format-api","depth":2,"children":[]},{"title":"Contoh konfigurasi","slug":"contoh-konfigurasi","depth":2,"children":[{"title":"Python OpenAI SDK","slug":"python-openai-sdk","depth":3,"children":[]},{"title":"Node.js OpenAI SDK","slug":"node-js-openai-sdk","depth":3,"children":[]},{"title":"Permintaan HTTP langsung","slug":"permintaan-http-langsung","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"kiosapi","siteName":"KiosAPI","title":"API Base URL - KiosAPI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-base-url","matchLevel":1},"id":{"href":"/id/api-base-url","matchLevel":0}}},"lastModified":"2026-09-21T22:03:01.072Z","originalFileLocation":"id/api-base-url.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=\"Konfigurasikan host dan path API KiosAPI dengan benar.\">\u003cmeta data-mint-head name=\"application-name\" content=\"KiosAPI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kiosapi/wCf4JAT8Lwu3i0Gd/_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/kiosapi/wCf4JAT8Lwu3i0Gd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kiosapi/wCf4JAT8Lwu3i0Gd/_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/kiosapi/wCf4JAT8Lwu3i0Gd/_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/kiosapi/wCf4JAT8Lwu3i0Gd/_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/kiosapi/wCf4JAT8Lwu3i0Gd/_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/kiosapi/wCf4JAT8Lwu3i0Gd/_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/kiosapi/wCf4JAT8Lwu3i0Gd/_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/kiosapi/wCf4JAT8Lwu3i0Gd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API Base URL - KiosAPI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Konfigurasikan host dan path API KiosAPI dengan benar.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"KiosAPI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kiosapi.com/id/api-base-url\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kiosapi.mintlify.site/_mintlify/api/og/v2?division=Mulai+Cepat\u0026amp;title=API+Base+URL\u0026amp;description=Konfigurasikan+host+dan+path+API+KiosAPI+dengan+benar.\u0026amp;theme=4c2ae8f7e71edf79d2a17a80\u0026amp;signature=77764cba3167baa78e1746aefe5b4d8bbac180532e7a5ad6c28ade34ef5845f6\">\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=\"API Base URL - KiosAPI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Konfigurasikan host dan path API KiosAPI dengan benar.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kiosapi.mintlify.site/_mintlify/api/og/v2?division=Mulai+Cepat\u0026amp;title=API+Base+URL\u0026amp;description=Konfigurasikan+host+dan+path+API+KiosAPI+dengan+benar.\u0026amp;theme=4c2ae8f7e71edf79d2a17a80\u0026amp;signature=77764cba3167baa78e1746aefe5b4d8bbac180532e7a5ad6c28ade34ef5845f6\">\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/kiosapi/wCf4JAT8Lwu3i0Gd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"KiosAPI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kiosapi.com/id/api-base-url\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/id/api-base-url.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://docs.kiosapi.com/id/api-base-url\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.kiosapi.com/api-base-url\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.kiosapi.com/api-base-url\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kiosapi.com/#organization\",\"name\":\"KiosAPI\",\"url\":\"https://docs.kiosapi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kiosapi/bkx8tFSdZ73RVr2i/logo/kiosapi.png?fit=max\u0026auto=format\u0026n=bkx8tFSdZ73RVr2i\u0026q=85\u0026s=1190189459ace97346a5c0f6ad71bca7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kiosapi.com#website\",\"name\":\"KiosAPI\",\"url\":\"https://docs.kiosapi.com\",\"publisher\":{\"@id\":\"https://docs.kiosapi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kiosapi.com/id/api-base-url#webpage\",\"url\":\"https://docs.kiosapi.com/id/api-base-url\",\"name\":\"API Base URL\",\"description\":\"Konfigurasikan host dan path API KiosAPI dengan benar.\",\"dateModified\":\"2026-09-21T22:03:01.072Z\",\"isPartOf\":{\"@id\":\"https://docs.kiosapi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kiosapi.com/id/api-base-url#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kiosapi.com/id/api-base-url#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Mulai Cepat\",\"item\":\"https://docs.kiosapi.com/id/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Base URL\",\"item\":\"https://docs.kiosapi.com/id/api-base-url\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.kiosapi.com/id/api-base-url#article\",\"headline\":\"API Base URL\",\"name\":\"API Base URL\",\"description\":\"Konfigurasikan host dan path API KiosAPI dengan benar.\",\"url\":\"https://docs.kiosapi.com/id/api-base-url\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kiosapi.com/id/api-base-url#webpage\"},\"dateModified\":\"2026-09-21T22:03:01.072Z\",\"publisher\":{\"@id\":\"https://docs.kiosapi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kiosapi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"KiosAPI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"KiosAPI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/id/api-base-url.md","siteName":"KiosAPI","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://kiosapi.com"},{"anchor":"Models \u0026 Pricing","icon":"credit-card","href":"https://kiosapi.com/pricing"},{"anchor":"GitHub","icon":"github","href":"https://github.com/kiosapi"}]},"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/api-base-url"}]},{"language":"id","groups":[{"group":"Mulai Cepat","pages":[{"title":"Pendahuluan","href":"/id/introduction"},{"title":"Akun dan API Key","href":"/id/getting-started/register"},{"title":"Memilih Grup Token","href":"/id/getting-started/token-groups"},{"title":"Model Gratis dan Verifikasi Telegram","href":"/id/getting-started/free-models"},{"title":"Autentikasi","description":"Gunakan API key KiosAPI pada endpoint OpenAI, Claude, dan Gemini.","href":"/id/authentication"},{"title":"API Base URL","href":"/id/api-base-url"},{"title":"Quickstart","description":"Kirim permintaan pertama ke KiosAPI menggunakan OpenAI SDK.","href":"/id/getting-started/quickstart"},{"title":"Prinsip Konfigurasi","href":"/id/getting-started/configuration-principles"}]},{"group":"SDK \u0026 Alat","pages":[{"title":"OpenAI SDK","href":"/id/getting-started/openai-sdk"},{"title":"Concurrency","href":"/id/getting-started/concurrency"},{"title":"CC Switch","href":"/id/tools/cc-switch"},{"title":"Claude Code","href":"/id/tools/claude-code"},{"title":"OpenAI Codex CLI","href":"/id/tools/codex"},{"title":"Gemini CLI","href":"/id/tools/gemini-cli"},{"title":"OpenCode","href":"/id/tools/opencode"},{"title":"OpenClaw","href":"/id/tools/openclaw"},{"title":"Trae","href":"/id/tools/trae"},{"title":"Hermes Agent","href":"/id/tools/hermes-agent"},{"title":"curl","href":"/id/tools/curl"}]},{"group":"Referensi API","pages":[{"title":"Daftar Model yang Tersedia","href":"/id/api-reference/models/list-models"},{"title":"Daftar Model Tunggal","href":"/id/api-reference/models/list-single-model"},{"title":"Penyelesaian Obrolan (Umum)","href":"/id/api-reference/chat/general"},{"title":"Obrolan - Analisis Gambar (Visi)","href":"/id/api-reference/chat/vision"},{"title":"Obrolan - Fungsi Memanggil","href":"/id/api-reference/chat/function-calling"},{"title":"Claude (Format OpenAI) - Analisis PDF","href":"/id/api-reference/chat/claude-openai"},{"title":"Claude (Format Asli) - Analisis PDF","href":"/id/api-reference/chat/claude-native"},{"title":"Gemini (Format OpenAI) - Analisis File","href":"/id/api-reference/chat/gemini-openai"},{"title":"Gemini (Format Asli) - Analisis File","href":"/id/api-reference/chat/gemini-native"},{"title":"Obrolan - Penyelesaian (Warisan)","href":"/id/api-reference/chat/completions"}]},{"group":"Pemecahan Masalah","pages":[{"title":"Kode Error dan Pemecahan Masalah","href":"/id/troubleshooting/errors"}]}]}]},"basePath":"","title":"API Base URL - KiosAPI","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":[],"chunks":[]}