Store API key
Store API key for direct authentication with a specific provider
Store API key for direct authentication with a specific provider
api_keystring
API key for authentication
providerstring
Provider name (anthropic, openai, openrouter, gemini, brave)
Value in
"anthropic" | "openai" | "openrouter" | "gemini" | "brave"
Response Body
from mix_python_sdk import Mixwith Mix() as mix: res = mix.authentication.store_api_key(api_key="<value>", provider="brave") # Handle response print(res)
{
"message": "string",
"provider": "string",
"status": "string"
}
{
"error": {
"code": 0,
"message": "string",
"type": "bad_request"
}
}
{
"error": {
"code": 0,
"message": "string",
"type": "bad_request"
}
}