How do I Filter Text from something thats not a player?

I would like to filter text from an AI API called Brain Shop AI.
I am trying to create an AI game
I have tried

local HttpService = game:GetService("HttpService")
local URL = 'My Url'
local TextService = game:GetService("TextService")
response = HttpService:GetAsync(URL)
data = HttpService:JSONDecode(response)
local filter = data.cnt:GetNonChatStringForBroadcastAsync() --Issue
print(filter) -- Print out filterd text

But this returns the following error:

 Workspace.Script:6: attempt to call missing method 'GetNonChatStringForBroadcastAsync' of string

I have tried

local HttpService = game:GetService("HttpService")

local URL = 'My Url'

local TextService = game:GetService("TextService")

response = HttpService:GetAsync(URL)

data = HttpService:JSONDecode(response)

local filter = TextService:FilterStringAsync(data.cnt)

print(filter)

but it returns the following error:

Argument 2 missing or nil

I have tried local filter = TextService:FilterStringAsync(data.cnt, 1) as the filtering code also, but it says it requires a player to be in the server.
Does anyone have a solution to this?