Skip to main content
POST
/
api
/
v2
/
config
/
resources
/
language_models
Add Language Model Endpoint
curl --request POST \
  --url http://localhost:8080/api/v2/config/resources/language_models \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "provider": "openai-responses",
  "config": {}
}
'
{
  "success": true,
  "status": "ready",
  "error": "<string>"
}

Body

application/json

Specification for adding a new language model.

name
string
required
Unique name/identifier for the language model.
provider
enum<string>
required
The language model provider type (e.g., 'openai-responses', 'openai-chat-completions', 'amazon-bedrock').
Available options:
openai-responses,
openai-chat-completions,
amazon-bedrock
config
Config · object
required
Provider-specific configuration settings.

Response

Successful Response

Response model for resource update operations.

success
boolean
required
Whether the operation succeeded.
status
enum<string>
required
Current status of the resource after the operation.
Available options:
ready,
failed,
pending
error
string | null
Error message if the operation failed.