Loading...
Loading...
Use the Anthropic SDK with the same API key at https://api.aisays.ai/anthropic/v1
| PARAM | VALUE |
|---|---|
| ANTHROPIC_BASE_URL | https://api.aisays.ai/anthropic/v1 |
| ANTHROPIC_API_KEY | Your sk-or-v1-... key |
| OpenAI base (alternative) | https://api.aisays.ai/v1 |
import anthropic
client = anthropic.Anthropic(
base_url="https://api.aisays.ai/anthropic/v1",
api_key="sk-or-v1-...",
)
message = client.messages.create(
model="deepseek/deepseek-v4-pro",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello!"},
],
)
print(message.content[0].text)| Field | Status |
|---|---|
| x-api-key | Fully Supported |
| anthropic-version | Ignored (accepted) |
| model | Use AisaysAI model slug (provider/model-id) |
| max_tokens | Fully Supported |
| system | Fully Supported |
| messages (text) | Fully Supported |
| messages (image) | Not Supported |
| stream | Fully Supported |
| temperature | Fully Supported (0.0–2.0) |
| top_p | Fully Supported |
| stop_sequences | Fully Supported |
| tools / tool_choice | Basic Support |
See also Model Selection Guide and the model catalog.