Endpoint Version: 1.1.0 | Cost: ₹0.50 per call
Generate fluid text responses using the system standard small language model.
| Header Name | Value / Type | Description |
|---|---|---|
| Content-Type | string |
application/json |
| X-API-Key | string |
your_api_key |
| Parameter Name | Required Type | Constraint |
|---|---|---|
| prompt | string |
The prompt to complete |
| max_tokens | string |
Maximum text length to output (integer) |
| Header | Sample Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| X-Execution-Time-Ms | 45.82 ms |
| Error Code | Description / Scenario |
|---|---|
| LIMIT_EXCEEDED | Tokens count exceeded the threshold. |
{
"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!"
}
}
{
"status": "error",
"message": "Max tokens out of bounds"
}