Moving to the Model API
Switching from another OpenAI-compatible API or from Line Code.
- Can I plug the Model API into an app that supports "OpenAI-compatible" providers?Often yes, if the app lets you add a custom header for X-Clatter-Account. Without it, requests fail with 401.FAQ
- Can I use the Model API with LangChain or other AI frameworks?Frameworks that let you set an OpenAI-compatible base URL and extra headers should work. They aren't officially documented.FAQ
- How do I move my Model API code off Line Code?Replace line-code-fast, -ultra and -ultra-fast with supercosmos-flash, -max and -heavy. Line Code ids answer 410.How-to
- How do I switch existing OpenAI SDK code to the Model API?Change the base URL, the key, add X-Clatter-Account, and replace the model name. Check for unsupported features.How-to
- I use SuperCosmos in Line CLI. Is the Model API different?Same model and prices, but the Model API is paid from credits and you build the app yourself; Line CLI uses your plan.FAQ
- The Model API has no embeddings. What can I do?Embeddings aren't offered. Use keyword search, or ask SuperCosmos to judge relevance over a short list of candidates.FAQ
- What OpenAI features should I double-check when porting an app?Images, n, logprobs, response_format, embeddings, the Responses API and model names all need attention.Reference
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.