RL runs
Plan Run
A task spec from a plain-English description, with the reasoning behind it. Changes nothing: pass the
returned task and budget to POST /v1/rl_runs (after POST /v1/rl_runs/validate, ideally).
POST
/
v1
/
rl_runs
/
plan
Plan Run
curl --request POST \
--url https://api.kiteml.com/v1/rl_runs/plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"robot": "<string>",
"prompt": "<string>",
"items": [
{
"size": [
0.3025
],
"pos": [
0
],
"mass": 10.005,
"label": "<string>",
"color": [
0.5
],
"roll_friction": 0.025,
"spin_friction": 0.025
}
]
}
'import requests
url = "https://api.kiteml.com/v1/rl_runs/plan"
payload = {
"robot": "<string>",
"prompt": "<string>",
"items": [
{
"size": [0.3025],
"pos": [0],
"mass": 10.005,
"label": "<string>",
"color": [0.5],
"roll_friction": 0.025,
"spin_friction": 0.025
}
]
}
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({
robot: '<string>',
prompt: '<string>',
items: [
{
size: [0.3025],
pos: [0],
mass: 10.005,
label: '<string>',
color: [0.5],
roll_friction: 0.025,
spin_friction: 0.025
}
]
})
};
fetch('https://api.kiteml.com/v1/rl_runs/plan', 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://api.kiteml.com/v1/rl_runs/plan",
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([
'robot' => '<string>',
'prompt' => '<string>',
'items' => [
[
'size' => [
0.3025
],
'pos' => [
0
],
'mass' => 10.005,
'label' => '<string>',
'color' => [
0.5
],
'roll_friction' => 0.025,
'spin_friction' => 0.025
]
]
]),
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://api.kiteml.com/v1/rl_runs/plan"
payload := strings.NewReader("{\n \"robot\": \"<string>\",\n \"prompt\": \"<string>\",\n \"items\": [\n {\n \"size\": [\n 0.3025\n ],\n \"pos\": [\n 0\n ],\n \"mass\": 10.005,\n \"label\": \"<string>\",\n \"color\": [\n 0.5\n ],\n \"roll_friction\": 0.025,\n \"spin_friction\": 0.025\n }\n ]\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://api.kiteml.com/v1/rl_runs/plan")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"robot\": \"<string>\",\n \"prompt\": \"<string>\",\n \"items\": [\n {\n \"size\": [\n 0.3025\n ],\n \"pos\": [\n 0\n ],\n \"mass\": 10.005,\n \"label\": \"<string>\",\n \"color\": [\n 0.5\n ],\n \"roll_friction\": 0.025,\n \"spin_friction\": 0.025\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kiteml.com/v1/rl_runs/plan")
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 \"robot\": \"<string>\",\n \"prompt\": \"<string>\",\n \"items\": [\n {\n \"size\": [\n 0.3025\n ],\n \"pos\": [\n 0\n ],\n \"mass\": 10.005,\n \"label\": \"<string>\",\n \"color\": [\n 0.5\n ],\n \"roll_friction\": 0.025,\n \"spin_friction\": 0.025\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"robot": "<string>",
"planned_by": "model",
"task": {},
"budget": {},
"object": "rl_plan",
"title": "<string>",
"reasoning": "<string>",
"feasibility": "<string>",
"feasibility_note": "<string>",
"notes": [
"<string>"
]
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}Authorizations
A Kite API key (kite_...), from Platform API → Keys in the dashboard.
Headers
The dated contract your code was written against. Without it you get 2026-09-27; every response says which version served it.
Available options:
2026-09-27 Body
application/json
Response
Successful Response
defaults when the planner was unavailable: the robot's verified defaults
Available options:
model, defaults Pass as task to POST /v1/rl_runs
Available options:
rl_plan Allowed value:
"rl_plan"full, partial or unsupported
⌘I
Plan Run
curl --request POST \
--url https://api.kiteml.com/v1/rl_runs/plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"robot": "<string>",
"prompt": "<string>",
"items": [
{
"size": [
0.3025
],
"pos": [
0
],
"mass": 10.005,
"label": "<string>",
"color": [
0.5
],
"roll_friction": 0.025,
"spin_friction": 0.025
}
]
}
'import requests
url = "https://api.kiteml.com/v1/rl_runs/plan"
payload = {
"robot": "<string>",
"prompt": "<string>",
"items": [
{
"size": [0.3025],
"pos": [0],
"mass": 10.005,
"label": "<string>",
"color": [0.5],
"roll_friction": 0.025,
"spin_friction": 0.025
}
]
}
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({
robot: '<string>',
prompt: '<string>',
items: [
{
size: [0.3025],
pos: [0],
mass: 10.005,
label: '<string>',
color: [0.5],
roll_friction: 0.025,
spin_friction: 0.025
}
]
})
};
fetch('https://api.kiteml.com/v1/rl_runs/plan', 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://api.kiteml.com/v1/rl_runs/plan",
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([
'robot' => '<string>',
'prompt' => '<string>',
'items' => [
[
'size' => [
0.3025
],
'pos' => [
0
],
'mass' => 10.005,
'label' => '<string>',
'color' => [
0.5
],
'roll_friction' => 0.025,
'spin_friction' => 0.025
]
]
]),
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://api.kiteml.com/v1/rl_runs/plan"
payload := strings.NewReader("{\n \"robot\": \"<string>\",\n \"prompt\": \"<string>\",\n \"items\": [\n {\n \"size\": [\n 0.3025\n ],\n \"pos\": [\n 0\n ],\n \"mass\": 10.005,\n \"label\": \"<string>\",\n \"color\": [\n 0.5\n ],\n \"roll_friction\": 0.025,\n \"spin_friction\": 0.025\n }\n ]\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://api.kiteml.com/v1/rl_runs/plan")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"robot\": \"<string>\",\n \"prompt\": \"<string>\",\n \"items\": [\n {\n \"size\": [\n 0.3025\n ],\n \"pos\": [\n 0\n ],\n \"mass\": 10.005,\n \"label\": \"<string>\",\n \"color\": [\n 0.5\n ],\n \"roll_friction\": 0.025,\n \"spin_friction\": 0.025\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kiteml.com/v1/rl_runs/plan")
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 \"robot\": \"<string>\",\n \"prompt\": \"<string>\",\n \"items\": [\n {\n \"size\": [\n 0.3025\n ],\n \"pos\": [\n 0\n ],\n \"mass\": 10.005,\n \"label\": \"<string>\",\n \"color\": [\n 0.5\n ],\n \"roll_friction\": 0.025,\n \"spin_friction\": 0.025\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"robot": "<string>",
"planned_by": "model",
"task": {},
"budget": {},
"object": "rl_plan",
"title": "<string>",
"reasoning": "<string>",
"feasibility": "<string>",
"feasibility_note": "<string>",
"notes": [
"<string>"
]
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {}
}
}