Categories
Utility APIs
  • No APIs yet
WhatsApp APIs
  • No APIs yet
SMS APIs
  • No APIs yet
Email APIs
  • No APIs yet
Business APIs
  • No APIs yet
Payment APIs
  • No APIs yet
BANKING SERVICES
Recharge APIs
  • No APIs yet
Electricity Service
  • No APIs yet
AI APIs

AI Text Completion

Endpoint Version: 1.1.0 | Cost: ₹0.50 per call

Endpoint Route
POST https://api.rsprint.site/api/v1/gateway/ai-complete
Description

Generate fluid text responses using the system standard small language model.

Request Headers
Header Name Value / Type Description
Content-Type string application/json
X-API-Key string your_api_key
Request Parameters (JSON Body)
Parameter Name Required Type Constraint
prompt string The prompt to complete
max_tokens string Maximum text length to output (integer)
Response Headers
Header Sample Value
Content-Type application/json; charset=utf-8
X-Execution-Time-Ms 45.82 ms
Error Codes mapping
Error Code Description / Scenario
LIMIT_EXCEEDED Tokens count exceeded the threshold.
Code Integration
cURL Request Shell

            
Sample Success Response
{
    "status": "success",
    "data": {
        "completion": "An API is like a waiter in a restaurant. You look at the menu, tell the waiter what you want, the waiter goes to the kitchen and gets it for you, then brings it back. You do not need to know how the kitchen cooks it!"
    }
}
Sample Error Response
{
    "status": "error",
    "message": "Max tokens out of bounds"
}