Create Client Model
Register a client model that holds your provider credentials and return the created record with status 201. The organisation is taken from your authenticated API key, never the request body. The api_key, vertex_credentials, and aws_credentials fields are write-only: stored encrypted and never echoed back.
Authorizations
Your SLNG consumer API key.
Body
The client model to create, including its write-only provider credentials.
The writable fields of a client model (a bring-your-own model provider credential). The organisation is taken from the authenticated request. The api_key, vertex_credentials, and aws_credentials fields are write-only and are never returned.
Your alias for the model. Sent upstream as-is unless model_id is set.
1 - 255The kind of model: llm for text generation, stt for speech-to-text, or tts for text-to-speech.
llm, stt, tts 1 - 2000The upstream provider API key. Write-only: stored encrypted and never returned. Required for openai-compat, openai-responses, and azure; rejected for vertex.
1The upstream provider-facing model id when it differs from model_name. Empty or null sends model_name as-is.
255The bring-your-own model provider. openai-compat targets an OpenAI-compatible Chat Completions endpoint; openai-responses targets the OpenAI /v1/responses endpoint with the same config as openai-compat; azure is Azure OpenAI; vertex is Google Vertex AI.
openai-compat, openai-responses, azure, vertex 100Azure OpenAI deployment name. Azure only.
255Azure OpenAI API version. Azure only.
100openai-compat and openai-responses only: a custom credential header name that replaces the default Authorization Bearer scheme. Rejected for azure and vertex.
64Vertex only: the GCP service-account key JSON. Write-only; stored encrypted and never returned (responses expose has_vertex_credentials).
100100Speech BYOK only: AWS SigV4 credentials (access_key_id, secret_access_key, region). Write-only; stored encrypted and never returned (responses expose has_aws_credentials).
Speech BYOK only: the API key id this credential is scoped to. Null means the organisation default. Rejected on llm rows. Non-secret.
2Response
The created client model.
A client model as returned by the API. Credential values are never included; has_api_key, has_vertex_credentials, and has_aws_credentials report whether each secret is stored, and fallbacks lists the configured fallback cascade.
The kind of model: llm, stt, or tts.
llm, stt, tts The configured provider. May be a legacy free-form label on records created before the current provider set.
Whether an upstream API key is stored. The key value is write-only and never returned.
The custom credential header name, or null for the default Authorization Bearer scheme. The credential value itself is never returned.
The configured alias for the model.
The upstream provider-facing model id, or null when model_name is sent as-is.
The configured Azure OpenAI deployment name (Azure only).
The configured Azure OpenAI API version (Azure only).
Whether Vertex service-account credentials are stored. The value is write-only and never returned.
Whether AWS SigV4 credentials are stored. The value is write-only and never returned.
Speech BYOK only: the API key id this credential is scoped to, or null for the organisation default. Non-secret.