convert
Transform text between JSON, YAML, TOML, and CSV formats. Returns the converted text and input/output character metrics. Note some conversions can be lossy (e.g. JSON to CSV flattens nested structures). Requires a valid API key (Bearer token); billing is per input character — insufficient balance returns HTTP 402. For removing comments use prune, for generating llms.txt use generate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Text to convert (1 char min, 10 MiB max). | |
| to_format | Yes | Target format to convert into. | |
| from_format | Yes | Source format of the input payload. |