Belake.ai icon

Belake.ai

Belake.ai API operations

Language Model → Create Language Model

AI-generated

Summary

Registers a new language model configuration in Belake.ai for providers such as OpenAI, Anthropic, Azure OpenAI, Azure Foundry, Gemini (Vertex), or AWS Bedrock.

Inputs

  • llmName (required) — The display name for the language model in Belake.ai.
  • llmDescription (required) — A short description describing the purpose or use case of the language model.
  • llmPlatform (required) — The hosting AI provider/platform. Choices are OpenAI, Anthropic, Bedrock, AzureFoundry, Microsoft (Azure OpenAI), or Vertex.
  • llmType (required) — The capability type of the model (Chat Completion, Embedding, Multimodal, OCR, Translation, or Web Search).
  • llmIsDefault (required) — Whether to mark this model as the default model for the workspace.
  • llmApiModel (required) — The model identifier specified by the provider (e.g., gpt-4o, claude-3-5-sonnet, gemini-1.5-pro).
  • llmApiKey (required) — The API key for authenticating with OpenAI, Anthropic, Azure OpenAI, Azure Foundry, or Vertex.
  • llmEndpoint (required) — The base endpoint URL required when using Azure OpenAI or Azure Foundry.
  • llmApiVersion (required) — The API version string required for Azure OpenAI or Azure Foundry integrations.
  • llmModelName (required) — The deployment or model name specific to Azure OpenAI.
  • llmMaxTokens (required) — The maximum token limit supported by the model. Required for Anthropic, AWS Bedrock, Azure OpenAI, and Azure Foundry.
  • llmRegion (required) — The AWS region where the Bedrock model is deployed.
  • llmAccessKey (required) — The AWS access key used for AWS Bedrock authentication.
  • llmSecretKey (required) — The AWS secret key used for AWS Bedrock authentication.
  • llmBearerToken (required) — The bearer token used for AWS Bedrock authentication.

Output shape

a single record

Returns a JSON object representing the newly created language model resource.

Examples

Example 1: Register an OpenAI chat model as default

Set Name to 'GPT-4o Main', Platform to 'OpenAI', Type to 'Chat Completion', API Model to 'gpt-4o', API Key, and set Is Default to true.

Example 2: Register an Anthropic Claude 3.5 Sonnet model

Set Name to 'Claude 3.5', Platform to 'Anthropic', Type to 'Chat Completion', API Model to 'claude-3-5-sonnet-20241022', Max Tokens to 8192, and provide the API Key.

Links

Discussion