Skip to main content
The Evergreen Ai API is a RESTful API that allows you to interact with the Evergreen Ai platform programmatically. It provides endpoints for managing resources, retrieving data, and performing various operations.

Base URL

The base URL for all API requests is:
Base URL
https://api.evergreens.ai

How to Use the API

To use the Evergreen Ai API, you need to authenticate your requests using an API key. You can obtain an API key from your Evergreen Ai account dashboard.
Api Key Pn

How to create an API Key

Log in to your Evergreen account

Login to your Evergreen Ai account and navigate to the API Keys section in your dashboard.

Create API Key

  1. Visit the API Keys section and click on + New API Key
  2. Name your API key and set the desired permissions.
  3. Click Create to generate your API key.
  4. Copy the generated API key and store it securely. You will need it to authenticate your API requests.
API Keys are shown only once. Make sure to copy and store it securely.

Make your first request

To make your first request, you can use the following curl command:
Request Example
curl -X POST https://api.evergreens.ai/v1/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer tedi_cg8660kt822rXXXXXXXXXXXXXXXXX" \
  -d '{
    "messages": [
        {
            "role": "user",
            "content": "Hi Tedi, how are you?"
        }
    ]
}'
The API will respond with a JSON object containing the generated text and usage information.
Response Example
{
    "status": true,
    "data": {
        "text": "I am good, thank you! How can I assist you with your SEO needs today? What is your name?",
        "output": {},
        "usage": {
            "promptTokens": 32223,
            "completionTokens": 24,
            "totalTokens": 32247
        }
    }
}

Rate Limits

To protect the stability of the API and keep it available to all users, Evergreen enforces multiple kinds of rate limiting. Requests that hit any of our rate limits will receive a 429 Too Many Requests response, which contains the standard Retry-After header indicating how many seconds the client should wait before retrying the request. Limits are allocated per authorization token. Different tokens will have independent limits.

Standard rate limits

Our standard rate limiter imposes a quota on how many requests can be made in a given window of time. Our limits are based on minute-long windows. We may change these quotas or add new quotas (such as maximum requests per minutes) in the future.
Rate Limit TypeMaximum requests per minute
Ai Resources (Applied to all Tedi resources)60
Dashboard Resources (Account, Logs Observations)300
All other resources450
If you anticipate a higher read volume, we recommend using a caching proxy.

Concurrent request limits

In addition to limiting the total number of requests in a given time window, we also limit the number of requests being handled at any given instant. We may change these limits or add new limits in the future.
HTTP MethodMaximum concurrent requests
GETNo limit
POST5
PUT & DELETE20
For example, if you make 10 concurrent POST requests, 1 will be processed immediately, and the other 9 will receive a 429 Too Many Requests response. Responses for requests rejected by this concurrent request limiter will contain a Retry-After header, which specifies a duration long enough (in seconds) such that the other in-flight requests are guaranteed to have either completed or timed out.

Request timeout

To ensure optimal performance and resource management, the Evergreen Ai API enforces server-side timeouts on requests. The maximum allowed processing time for a request is 20 minutes. If a request exceeds this duration, the server will terminate the connection and return a 504 Gateway Timeout response.