Skip to main content
POST
/
api
/
v1
/
models
Create Model
curl --request POST \
  --url https://control-plane.kubiya.ai/api/v1/models \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": "<string>",
  "label": "<string>",
  "provider": "<string>",
  "model_type": "text-generation",
  "logo": "<string>",
  "description": "<string>",
  "enabled": true,
  "recommended": false,
  "compatible_runtimes": [
    "<string>"
  ],
  "capabilities": {},
  "pricing": {},
  "display_order": 1000
}
'
import requests

url = "https://control-plane.kubiya.ai/api/v1/models"

payload = {
"value": "<string>",
"label": "<string>",
"provider": "<string>",
"model_type": "text-generation",
"logo": "<string>",
"description": "<string>",
"enabled": True,
"recommended": False,
"compatible_runtimes": ["<string>"],
"capabilities": {},
"pricing": {},
"display_order": 1000
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
value: '<string>',
label: '<string>',
provider: '<string>',
model_type: 'text-generation',
logo: '<string>',
description: '<string>',
enabled: true,
recommended: false,
compatible_runtimes: ['<string>'],
capabilities: {},
pricing: {},
display_order: 1000
})
};

fetch('https://control-plane.kubiya.ai/api/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://control-plane.kubiya.ai/api/v1/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'value' => '<string>',
'label' => '<string>',
'provider' => '<string>',
'model_type' => 'text-generation',
'logo' => '<string>',
'description' => '<string>',
'enabled' => true,
'recommended' => false,
'compatible_runtimes' => [
'<string>'
],
'capabilities' => [

],
'pricing' => [

],
'display_order' => 1000
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://control-plane.kubiya.ai/api/v1/models"

payload := strings.NewReader("{\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"provider\": \"<string>\",\n \"model_type\": \"text-generation\",\n \"logo\": \"<string>\",\n \"description\": \"<string>\",\n \"enabled\": true,\n \"recommended\": false,\n \"compatible_runtimes\": [\n \"<string>\"\n ],\n \"capabilities\": {},\n \"pricing\": {},\n \"display_order\": 1000\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://control-plane.kubiya.ai/api/v1/models")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"provider\": \"<string>\",\n \"model_type\": \"text-generation\",\n \"logo\": \"<string>\",\n \"description\": \"<string>\",\n \"enabled\": true,\n \"recommended\": false,\n \"compatible_runtimes\": [\n \"<string>\"\n ],\n \"capabilities\": {},\n \"pricing\": {},\n \"display_order\": 1000\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://control-plane.kubiya.ai/api/v1/models")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"value\": \"<string>\",\n \"label\": \"<string>\",\n \"provider\": \"<string>\",\n \"model_type\": \"text-generation\",\n \"logo\": \"<string>\",\n \"description\": \"<string>\",\n \"enabled\": true,\n \"recommended\": false,\n \"compatible_runtimes\": [\n \"<string>\"\n ],\n \"capabilities\": {},\n \"pricing\": {},\n \"display_order\": 1000\n}"

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "value": "<string>",
  "label": "<string>",
  "provider": "<string>",
  "model_type": "<string>",
  "logo": "<string>",
  "description": "<string>",
  "enabled": true,
  "recommended": true,
  "compatible_runtimes": [
    "<string>"
  ],
  "capabilities": {},
  "pricing": {},
  "display_order": 123,
  "created_at": "<string>",
  "updated_at": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

Enter your Kubiya API token (format: Bearer )

Body

application/json

Schema for creating a new LLM model

value
string
required

Model identifier (e.g., 'kubiya/claude-sonnet-4')

label
string
required

Display name (e.g., 'Claude Sonnet 4')

provider
string
required

Provider name (e.g., 'Anthropic', 'OpenAI')

model_type
string
default:text-generation

Model type: 'text-generation', 'embedding', 'multimodal'

logo
string | null

Logo path or URL

description
string | null

Model description

enabled
boolean
default:true

Whether model is enabled

Whether model is recommended by default

compatible_runtimes
string[]

List of compatible runtime IDs (e.g., ['default', 'claude_code'])

capabilities
Capabilities · object

Model capabilities (e.g., {'vision': true, 'max_tokens': 4096})

pricing
Pricing · object | null

Pricing information

display_order
integer
default:1000

Display order (lower = shown first)

Response

Successful Response

Schema for LLM model responses

id
string
required
value
string
required
label
string
required
provider
string
required
model_type
string
required
logo
string | null
required
description
string | null
required
enabled
boolean
required
compatible_runtimes
string[]
required
capabilities
Capabilities · object
required
pricing
Pricing · object | null
required
display_order
integer
required
created_at
string
required
updated_at
string
required