Get started
API Endpoint https://api-okeymeta.vercel.app/
The OkeyAI API provides programmatic access to integrate our AI model (OkeyAI) into your web app and mobile applications. Retrieve OkeyAI's responses in your app, unleash the power of AI in your app, showcase the power of OkeyAI in your apps, create a powerful AI chatbot using the OkeyAI API, create AI powered applications using OkeyAI API.
API KEY: The API key is used to make OkeyAI conversational that means using only the API without the API key still works but OkeyAI will not be able to conversate.
To use this API and integrate OkeyAI 2.0 Basic into your app or web app with high conversational abilities, you'll need an API key. To generate your API key visit OkeyMeta AI Studio and generate your API key for free. Or Please contact us at okechukwunwaozor9@gmail.com to get your own API key.
Get and retrieve OkeyAI responses
# Here is a curl example with
API key making the AI model conversational.
curl -G "https://api-okeymeta.vercel.app/api/ssailm/model/okeyai2.0-basic/okeyai" \
--data-urlencode "ask=What is the capital of France?" \
--data-urlencode "apiKey=okeymeta-uniqueApiKey"
# Here is a curl example without API key
(AI Not Conversational)
curl -G "https://api-okeymeta.vercel.app/api/ssailm/model/okeyai2.0-basic/okeyai" \
--data-urlencode "ask=What is the capital of france?"
To get your specified OkeyAI model response, you need to make a Get call to the following url :
https://api-okeymeta.vercel.app/api/ssailm/model/okeyai2.0-basic/okeyai
Result example with API key :
{
"status": "200",
"model": "OkeyAI 2.0 Basic",
"description": "A standard AI model, providing essential conversational
abilities and good for everyday tasks.",
"max_token": "6050",
"max_context_length": "9010 Context Length",
"version": "Version 2.0",
"team": "OkeyMeta Programming Team",
"developer": "Okechukwu Nwaozor",
"response": "The capital of France is Paris.",
"API_KEY": "okeymeta-YourGeneratedApiKey"
}
QUERY PARAMETERS
Field | Type | Description |
---|---|---|
ask | String | Your Message or Question. |
apiKey | String | (optional) If used along with the API it will make OkeyAI to be conversational on your app or site. |
Errors
The OkeyAI API uses the following error codes:
Error Code | Meaning |
---|---|
200 | The response was retrieved successfully and in good condition. |
500 | Internal Server Error. |
X001 |
Unknown or unvalid apiKey . This error appears if you use an unknow API key or if your API key expired, But as for now OkeyAI API key is free and can't expire.
|
X002 |
Unvalid apikey for this domain. This error appears if you use an API key non specified for your domain. Developper or Universal API keys doesn't have domain checker.
|