> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spojit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Your own AI providers

> Run workflow steps, Miraxa and Control Center on models from your own AI accounts: Anthropic, Google Gemini, Amazon Bedrock, Google Cloud Agent Platform, OpenAI, Azure OpenAI, DeepSeek, Moonshot (Kimi), OpenRouter, Mistral, xAI, Groq, Together AI, Fireworks AI, Ollama or any OpenAI-compatible server.

Spojit's own models cover most work. When you want a model we don't offer, or want a step to run on an account you already pay for, add that account as a **provider** and type the **models** you want under it. They then appear in the workflow model picker and in Miraxa's, next to Spojit's.

> [!NOTE]
>
> Your own providers are available on every paid plan. Workflow steps (agent steps, knowledge steps and sandbox agent steps), Miraxa and Control Center's checks and suggested next steps can use them.

## Providers you can add

| Provider | You need |
| - | - |
| [Anthropic](https://docs.spojit.com/ai-providers/anthropic.md) | An API key |
| [Google Gemini](https://docs.spojit.com/ai-providers/gemini.md) | A Google AI Studio API key |
| [Amazon Bedrock](https://docs.spojit.com/ai-providers/bedrock.md) | A long-term Bedrock API key, and its region |
| [Google Cloud Agent Platform](https://docs.spojit.com/ai-providers/google-cloud.md) | A Google Cloud project, and a short setup there (no key) |
| [OpenAI](https://docs.spojit.com/ai-providers/openai.md) | An API key |
| [DeepSeek](https://docs.spojit.com/ai-providers/deepseek.md) | An API key |
| [Moonshot (Kimi)](https://docs.spojit.com/ai-providers/moonshot.md) | An API key, and the region your account is in |
| [OpenRouter](https://docs.spojit.com/ai-providers/openrouter.md) | An API key |
| [Mistral](https://docs.spojit.com/ai-providers/mistral.md) | An API key |
| [xAI](https://docs.spojit.com/ai-providers/xai.md) | An API key |
| [Groq](https://docs.spojit.com/ai-providers/groq.md) | An API key |
| [Together AI](https://docs.spojit.com/ai-providers/together.md) | An API key |
| [Fireworks AI](https://docs.spojit.com/ai-providers/fireworks.md) | An API key |
| [Azure OpenAI](https://docs.spojit.com/ai-providers/azure-openai.md) | Your resource's endpoint and key, and the names of your deployments |
| [Ollama](https://docs.spojit.com/ai-providers/ollama.md) | Your Ollama server at a public https address |
| [Custom (OpenAI-compatible)](https://docs.spojit.com/ai-providers/custom.md) | The server's https address, and a key or headers if it needs them |

You can add more than one of each, for example two OpenRouter accounts. Each provider gets its own name so you can tell them apart.

## Add a provider

1. Open **Settings → AI providers**. You need permission to manage billing.
2. Select **Add provider** and choose one.
3. Enter what it asks for and select **Add provider**. Spojit checks the key with the provider before saving it.

Keys and headers are stored encrypted and are never shown again. The card shows the last four characters of the key so you know which one is in use. To change the key, edit the provider and paste the new one.

> [!NOTE]
>
> If you change a provider's address or region, enter its key and headers again. Spojit never sends a saved key to a new address.

## Add a model

1. On the provider's card, select **Add model**.
2. Type the model id exactly as the provider names it (each provider's page says where to find it), a display name, and the company that makes the model.
3. Optionally, enter its **context window**: how many tokens it takes in. Type it as a number of tokens or with K for thousands and M for millions, so `200000`, `200,000`, `200K`, `1M` and `1.5M` all work. When you pick a model from your account's list and the provider lists it, it's filled in for you.
4. Select **Add and test**. Spojit runs a short **Test**: a few small requests that check the model answers, can call tools, accepts images and accepts a temperature setting. On OpenAI-compatible providers (OpenAI, DeepSeek, Moonshot, OpenRouter, Mistral, xAI, Groq, Together AI, Fireworks AI, Azure OpenAI, Ollama and Custom) it also checks the model can call tools while streaming its answer.

A model whose Test fails is kept, with the provider's message, so you can fix the id and test again. A model that can't call tools is marked as such: agent steps need tools, so use it for steps that only write text.

Select **Test** on a model at any time, for example after the provider updates it.

## Use a model in a workflow

In the workflow editor, open a step's **Model** picker. Your models are listed under the name you gave their provider. A model whose last Test failed, or that can't call tools, says so. Different steps can use different models, yours or Spojit's.

## Use a model in Miraxa

Choose one of your models in Miraxa's model picker, or make it your default under **Settings → Profile**. Miraxa then runs on your account. Miraxa is tuned on Spojit's Claude models, so it may build workflows less well on other models.

The model's card in Settings, the picker and the chat box say what Miraxa can't do with it, from what its Test found and what your provider lists:

| What was found | What it means |
| - | - |
| It can't call tools | Miraxa can only chat with it, without building, editing or running anything. |
| It can't call tools while streaming | Miraxa's replies appear all at once, not as it writes. |
| Its context is under 128K tokens | Long chats and large workflows may be cut short. |
| It can't read images | No screenshots or image attachments. |

Image attachments work on models whose Test found they read images. PDFs work on Claude models only. With Spojit's own models, attachments work on Claude.

## Use a model in Control Center

Monitors can run on your own models too. Open **Control Center → Settings** and choose a model for **Checks** (AI checks, questions asked about a web page or a broadcast, and values read from a page) and for **Suggested next steps**. See [Which AI models monitors use](https://docs.spojit.com/control-center/access-and-limits.md#which-ai-models-monitors-use).

## Billing

* The provider bills you for the model's use, at your rate with them. It doesn't use your Spojit AI credits, and a step or a Miraxa chat on your own model keeps running when your credits are used up.
* Spojit's own models, Claude included, always use your AI credits, even if you have added your own Anthropic account.
* The run still counts as an execution, and its steps count toward execution minutes, as every workflow does. A slow model uses more minutes.
* Steps, chats and monitor checks on your own models are recorded in your usage at no credit cost. Web searches they make are Spojit's and still use AI credits; once your credits run out, they aren't offered. Miraxa chats and monitor checks don't count toward execution minutes.

## When something goes wrong

Errors from your provider name it as you named it, so you can tell them from a problem in Spojit. For example, "Moonshot rejected the key" or "Ollama didn't answer". Check the key, your account's balance and limits, and the provider's status page.

## Remove a provider or model

Removing a model or provider shows how many workflows use it first. Workflow steps that use a removed model fail until you choose another model for them.

> [card] [Try this on the free plan](https://miraxa.spojit.com/signup)
>
> 500 AI credits and 200 workflow runs a month, no card needed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.