Urgent.News

What's breaking now, across hundreds of outlets.

AI

How to call Mark 1x-27B with the OpenAI Python SDK

I'm Saathwik, founder of Saanora, and I'm building Mark. This post is a short setup guide for Mark 1x-27B, our latest model, using the OpenAI Python SDK you probably already have. You can try the model in the browser with no signup at saanora.com . The rest of this article is about calling it from code. What you get The API is OpenAI-compatible. Point the client at https://api.saanora.com/v1 and…

I interviewed Saathwik, founder of Saanora, about their new model Mark 1x-27B. The conversation focused on how to interact with this model using the OpenAI Python Software Development Kit (SDK). Saathwik mentioned that the model can be tried out directly in a browser without signing up at saanora.com. The main details about calling Mark 1x-27B programmatically were provided.

The API is compatible with OpenAI standards, so it works with existing OpenAI clients. You simply need to point the client at https://api.saanora.com/v1 and set the model parameter to mark-1x-27b. Standard features like chat completions, streaming, tool calling, and image input are available through the usual request format. The context window for the model is quite large at 262K tokens.

You can control the reasoning effort the model puts into its answers by setting the reasoning_effort parameter to low, medium (default), or high. Medium effort is recommended as it gets the best results for the given model size. Pricing is $0.10 per 1 million input tokens and $0.60 per 1 million output tokens, with a free credit balance initially.

A minimal working example was given, showing how to install the openai package and use it to call the model from Python code. The key to the API is set in the SAANORA_API_KEY environment variable. The example demonstrated how to ask a question, such as "How many prime numbers are there below 100?", and print out the model's generated answer.

For more complex problems that require deeper thinking, Saathwik suggested using higher reasoning effort levels like high. This incurs more cost in terms of time and output tokens, but is necessary for tasks like proofs, debugging, and planning. The model returns additional reasoning alongside its answer, which can be accessed via the reasoning field in the response.

One gotcha mentioned was that the first request after a period of inactivity might fail with a 503 status code, indicating the model is starting up. This is free, but subsequent requests should succeed. The code example included a retry loop to handle this initial failure after a quiet period.

Overall, the guide shows how to get up and running with the new Mark 1x-27B model using familiar OpenAI SDK code, with guidance on handling higher effort tasks and handling the initial latency after periods of inactivity.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

Preventing State Drift at Turn 15 in LLM Interactive Fiction: Architecture Notes & MCP Server

When we ran our reproducible 2026 10-App AI Story Benchmark (open data at Harvard Dataverse DOI 10.7910/DVN/YEBHQR and preprint at CERN Zenodo DOI 10.5281/zenodo.24549412 ), one engineering failure…

  • State drift is primary flaw in open-ended chatbot architectures at Turn 15
  • Structured story engines prevent issue by maintaining canonical state separate from raw chat history
  • Three-Layer Architecture for Stateful Interactive Fiction developed to address problem

More from Friday 27 November →