cloadyDocs
API ReferenceEndpointsPlatform

Try a model

Ask any chat model of the catalog a short question and get its answer with the tokens, cost and time it took, as the AI page's demo does. Public, and free within Ask AI's allowance, which it shares: 7 answers a day per IP address signed out, 60 an hour per account.

POST
/api/ai/try
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/ai/try" \  -H "Content-Type: application/json" \  -d '{    "q": "string",    "model": "string"  }'
{  "answer": "string",  "usage": {    "model": "string",    "provider": "string",    "input": 0,    "output": 0,    "costMicros": 0,    "ms": 0  }}