Connect DeepSeek Harness
Connect DeepSeek Harness to this API using Anthropic Messages.
On this page
Create a platform key and set the client’s base URL to https://api.saveapi.cc. The gateway accepts paths with and without /v1.
In Settings → Models, add a custom model API. Enter these settings, fetch available models or enter the ID manually, then select it in a new conversation.
For manual setup, export AI_API_KEY and edit ~/.dsh/profiles/web/cordis.patch.yml. Use the matching profile for headless. Preserve other providers in llm-pi-ai and indent YAML with spaces.
For Chat Completions, create a separate provider with api set to openai-completions and baseURL set to https://api.saveapi.cc/v1. Set the model input to [text].
- id: llm-pi-ai
config:
providers:
saveapi:
displayName: "SaveAPI"
apiKeyEnv: AI_API_KEY
api: anthropic-messages
baseURL: "https://api.saveapi.cc"
models:
- id: "claude-sonnet-5-5"
input: [text]
- id: "deepseek-v4.1-flash"
input: [text]
- id: agent-default-model
config:
provider: saveapi
model: "claude-sonnet-5-5"| API format | Base URL | Configuration location |
|---|---|---|
| Anthropic Messages | https://api.saveapi.cc | ~/.dsh/profiles/web/cordis.patch.yml |
| OpenAI Chat Completions | https://api.saveapi.cc/v1 | ~/.dsh/profiles/web/cordis.patch.yml |
The DeepSeek connection supports model inference. The /v1/tools/search and /v1/tools/fetch paths are unavailable here. Configure a separate endpoint and credentials if you use DeepSeek’s standalone tools.
- If the default model is missing, check that
agent-default-modelpoints to an existingproviderandmodel. Start a new session after changing model options. - For YAML errors, check model indentation. Keep existing providers under
providerswhen overridingllm-pi-ai.
Set AI_API_KEY to your platform key and run the example. HTTP 200 confirms that the key and request URL work. When switching models, use an ID from GET /v1/models.
curl -sS "https://api.saveapi.cc/v1/messages" \
-H "x-api-key: $AI_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5-5",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'| Status | What to do |
|---|---|
401 | Check that the request carries an active platform key in the correct header. |
402 | Check your wallet balance and top up before retrying. |
404 | Check the API format, path, and model ID. Use the ID from GET /v1/models. |
429 | Reduce request rate or concurrency. Wait for Retry-After when present, or back off between attempts. |
5xx | The service may be unavailable or timed out. Check the original call and usage history before retrying with bounded backoff. |
Include the x-request-id response header when reporting an issue, if available. It identifies the request on this platform.
Should the base URL end in /v1?
Follow the API format table above. The client appends the request path. Avoid repeating /v1 or using the full request path as the base URL.
Can I use another model?
Yes. Choose an enabled model that works with your API format and use its exact ID from GET /v1/models.
Can the client send images?
This platform’s model endpoints accept text input only. Select text if the client lets you set the input type.