Free JSON to TOON Converter API

Convert your JSON into lightweight TOON format instantly. Use this free API JSON→TOON converter to optimize data, reduce LLM token count, and make AI & automation workflows faster.

Test the API Live

⚡ Rate limit: 5 requests per second per API key

{ "output": "..." }

API Description & Usage

The FlowsAI TOON API allows you to programmatically convert JSON into TOON format, which is compact, human-readable, and optimized for AI/LLM applications.

Rate limit: 5 requests per second per API key.

Request

POST https://api.flowsai.cloud/jsontotoon/convert
  Headers:
    Content-Type: application/json
    X-API-KEY: YOUR_API_KEY
  Body (JSON example):
  {
    "id": "0001",
    "type": "donut",
    "name": "Cake"
  }

Response

{
    "output": "id,0001\ntype,donut\nname,Cake"
  }

Use Cases

  • Reduce token usage for LLMs.
  • Optimize JSON storage and transmission.
  • Integrate with AI or automation workflows.

Embed / Integration Examples

⚡ Rate limit: 5 requests per second per API key

1️⃣ cURL

curl -X POST https://api.flowsai.cloud/jsontotoon/convert \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: hello_world" \
  -d '{ "id": "0001", "type": "donut", "name": "Cake" }'

2️⃣ JavaScript (Fetch API)

fetch("https://api.flowsai.cloud/jsontotoon/convert", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      "X-API-KEY": "hello_world"
    },
    body: JSON.stringify({ id: "0001", type: "donut", name: "Cake" })
  })
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

3️⃣ Java (HttpClient)

import java.net.URI;
  import java.net.http.HttpClient;
  import java.net.http.HttpRequest;
  import java.net.http.HttpResponse;

  String json = "{ \"id\": \"0001\", \"type\": \"donut\", \"name\": \"Cake\" }";
  HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.flowsai.cloud/jsontotoon/convert"))
    .header("Content-Type", "application/json")
    .header("X-API-KEY", "hello_world")
    .POST(HttpRequest.BodyPublishers.ofString(json))
    .build();
  HttpClient client = HttpClient.newHttpClient();
  HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString());
  System.out.println(response.body());