{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"bd79936e-7973-4e24-9425-573ab004bb4d","name":"Ishushka API","description":"StartFragment\n\n**Ishushka** is a high-performance unified API gateway providing seamless access to a diverse range of Artificial Intelligence models, including Text-to-Text, Chat-with-Context, and Image Generation.\n\n### 🛠️ Core Architecture\n\nThe API is organized into four functional modules:\n\n1. **Account**: Balance management and real-time model capability discovery.\n    \n2. **Request**: Single-turn AI interactions with automatic multi-modal routing.\n    \n3. **Chat**: Stateful conversations with session management and history retention.\n    \n4. **Image**: Dedicated endpoints for visual content synthesis and modification.\n    \n\n---\n\n## 📋 Key Endpoints\n\n### 1\\. Model Discovery & Account\n\n- **GET** `/info/{api_key}`: Returns the dynamic list of available models, their pricing, and capabilities (`isImageModel`).\n    \n- **GET** `/getBalance/{api_key}`: Returns the current real-time balance and bonus credits.\n    \n\n### 2\\. Intelligent Request Handling\n\n- **POST** `/request/{api_key}`: The primary interface for single-turn AI tasks.\n    \n    - **Smart Selection**: This collection includes scripts that automatically toggle between `{{modelText}}` and `{{modelImage}}` depending on whether a file is attached to the `form-data`.\n        \n\n### 3\\. Contextual Chat Mode\n\n- **POST** `/chat/request/{api_key}/{conversation_id}`: Continue a dialogue. If `conversation_id` is omitted, a new default session is used.\n    \n- **POST** `/chat/new/{api_key}`: Explicitly starts a new session, returning a unique `conversation_id`.\n    \n\n---\n\n## ⚠️ Error Codes & Troubleshooting\n\nAll modules utilize a standardized error reporting system. Most errors return a **402** code with a specific machine-readable `title`:\n\n| **Code** | **Title** | **Description** |\n| **402** | `apiKeyInvalid` | Your API Key is incorrect or expired. |\n| **402** | `insufficientFunds` | Request blocked due to influent funds. Check your balance. |\n| **402** | `WrongTypeModel` | You tried to send a file to a text-only model or vice versa. |\n| **402** | `MESSAGE_EMPTY` | The `message` parameter is missing or empty. |\n| **500** | `serviceUnavailable` | Temporary backend or upstream provider issue. |\n\n---\n\n## ⚡ Quick Start Guide\n\n1. **Select Environment**: Ensure a Postman Environment is active with your `base_url` and `api_key`.\n    \n2. **Sync Models**: Run the **GET Info** request first. This populates your local variables with the latest pricing and model IDs.\n    \n3. **Visualize**: After any request, click the **Visualize** tab in the Response section to see a formatted summary of the model used and the logic applied.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":true,"owner":"46694733","team":8806574,"collectionId":"bd79936e-7973-4e24-9425-573ab004bb4d","publishedId":"2sBXihqY4D","public":true,"publicUrl":"https://documenter-api.postman.tech/view/46694733/2sBXihqY4D","privateUrl":"https://go.postman.co/documentation/46694733-bd79936e-7973-4e24-9425-573ab004bb4d","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"Ishushka AI Gateway: Unified API for LLMs &amp; Image Generation. Access multiple text &amp; vision models via a single integration. Features: Smart multi-modal routing, stateful chat sessions, and high-fidelity image synthesis. Simplify your AI stack, manage balances, and scale faster. \nhttps://ishushka.com"},{"name":"title","value":"???? Ishushka AI Gateway | Unified API for LLMs &amp; Image Generation"}],"appearance":{"default":"system_default","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.11.5","publishDate":"2026-03-18T17:22:36.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"???? Ishushka AI Gateway | Unified API for LLMs &amp; Image Generation","description":"Ishushka AI Gateway: Unified API for LLMs &amp; Image Generation. Access multiple text &amp; vision models via a single integration. Features: Smart multi-modal routing, stateful chat sessions, and high-fidelity image synthesis. Simplify your AI stack, manage balances, and scale faster. \nhttps://ishushka.com"},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[{"name":"Production","id":"e8ae30d6-4541-4550-8844-d13a4ba116af","owner":"46694733","values":[{"key":"base_url","value":"https://api.ishushka.com","enabled":true,"type":"default"},{"key":"api_key","value":"","enabled":true,"type":"default"},{"key":"models","value":"","enabled":true,"type":"default"},{"key":"modelText","value":"","enabled":true,"type":"any"},{"key":"modelImage","value":"","enabled":true,"type":"default"},{"key":"refCode","value":"","enabled":true,"type":"default"},{"key":"models_raw","value":"","enabled":true,"type":"any"},{"key":"models_text_list","value":"","enabled":true,"type":"any"},{"key":"models_image_list","value":"","enabled":true,"type":"any"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/1642b813d88ffd9c78fd775b18b3c54bc2f1f01014ba847a58ec1f08b32a7af8","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Production","value":"46694733-e8ae30d6-4541-4550-8844-d13a4ba116af"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sBXihqY4D"}