Skip to main content
POST
ANSI Terminal Color Code Generator

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ioText
string

Sample Text

ioForeground
enum<string>

Foreground Color

Available options:
,
30,
31,
32,
33,
34,
35,
36,
37,
90,
91,
92,
93,
94,
95,
96,
97
ioBackground
enum<string>

Background Color

Available options:
,
40,
41,
42,
43,
44,
45,
46,
47,
100,
101,
102,
103,
104,
105,
106,
107
ioBold
boolean

Bold (1)

ioDim
boolean

Dim / Faint (2)

ioItalic
boolean

Italic (3)

ioUnderline
boolean

Underline (4)

Blink (5)

ioReverse
boolean

Reverse video (7)

ioStrike
boolean

Strikethrough (9)

Response

Tool output

tool
string
required
tool_version
string
required

Output-contract version for this tool. Currently "1" for all tools.

outputs
object
required
credits_used
integer
required

Credits this call consumed, after any settlement refund. 0 when metering is disabled.

request_id
string
credits_remaining
integer | null

Credits left in the current monthly allowance, or null when metering is disabled.